Skip to content

Commit 7fd3c8d

Browse files
committed
Fix for when TCG keys are vanilla but unique key models is enabled the keys seen by the LoT are incorrectly rendered as generic small keys. [OoTRandomizer#2464]
1 parent ebd32f9 commit 7fd3c8d

8 files changed

Lines changed: 12942 additions & 12900 deletions

File tree

ASM/build/asm_symbols.txt

Lines changed: 429 additions & 429 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/build/bundle.o

320 Bytes
Binary file not shown.

ASM/build/c_symbols.txt

Lines changed: 410 additions & 410 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/c/models.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,79 +238,79 @@ void item_etcetera_draw(z64_actor_t* actor, z64_game_t* game) {
238238
.flag = 0x0A,
239239
};
240240
override = lookup_override_by_key(key);
241-
} else if (actor->variable == 0x0008 && SHUFFLE_CHEST_GAME) {
241+
} else if (actor->variable == 0x0008 && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
242242
//Chest Game Room 1 Bottom Chest item inside chest
243243
override_key_t key = {
244244
.scene = 0x10,
245245
.type = OVR_CHEST,
246246
.flag = 0x00,
247247
};
248248
override = lookup_override_by_key(key);
249-
} else if (actor->variable == 0x010D && SHUFFLE_CHEST_GAME) {
249+
} else if (actor->variable == 0x010D && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
250250
//Chest Game Room 1 Top Chest item inside chest
251251
override_key_t key = {
252252
.scene = 0x10,
253253
.type = OVR_CHEST,
254254
.flag = 0x01,
255255
};
256256
override = lookup_override_by_key(key);
257-
} else if (actor->variable == 0x0208 && SHUFFLE_CHEST_GAME) {
257+
} else if (actor->variable == 0x0208 && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
258258
//Chest Game Room 2 Bottom Chest item inside chest
259259
override_key_t key = {
260260
.scene = 0x10,
261261
.type = OVR_CHEST,
262262
.flag = 0x02,
263263
};
264264
override = lookup_override_by_key(key);
265-
} else if (actor->variable == 0x030D && SHUFFLE_CHEST_GAME) {
265+
} else if (actor->variable == 0x030D && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
266266
//Chest Game Room 2 Top Chest item inside chest
267267
override_key_t key = {
268268
.scene = 0x10,
269269
.type = OVR_CHEST,
270270
.flag = 0x03,
271271
};
272272
override = lookup_override_by_key(key);
273-
} else if (actor->variable == 0x0409 && SHUFFLE_CHEST_GAME) {
273+
} else if (actor->variable == 0x0409 && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
274274
//Chest Game Room 3 Bottom Chest item inside chest
275275
override_key_t key = {
276276
.scene = 0x10,
277277
.type = OVR_CHEST,
278278
.flag = 0x04,
279279
};
280280
override = lookup_override_by_key(key);
281-
} else if (actor->variable == 0x050D && SHUFFLE_CHEST_GAME) {
281+
} else if (actor->variable == 0x050D && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
282282
//Chest Game Room 3 Top Chest item inside chest
283283
override_key_t key = {
284284
.scene = 0x10,
285285
.type = OVR_CHEST,
286286
.flag = 0x05,
287287
};
288288
override = lookup_override_by_key(key);
289-
} else if (actor->variable == 0x0609 && SHUFFLE_CHEST_GAME) {
289+
} else if (actor->variable == 0x0609 && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
290290
//Chest Game Room 4 Bottom Chest item inside chest
291291
override_key_t key = {
292292
.scene = 0x10,
293293
.type = OVR_CHEST,
294294
.flag = 0x06,
295295
};
296296
override = lookup_override_by_key(key);
297-
} else if (actor->variable == 0x070D && SHUFFLE_CHEST_GAME) {
297+
} else if (actor->variable == 0x070D && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
298298
//Chest Game Room 4 Top Chest item inside chest
299299
override_key_t key = {
300300
.scene = 0x10,
301301
.type = OVR_CHEST,
302302
.flag = 0x07,
303303
};
304304
override = lookup_override_by_key(key);
305-
} else if (actor->variable == 0x080A && SHUFFLE_CHEST_GAME) {
305+
} else if (actor->variable == 0x080A && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
306306
//Chest Game Room 5 Bottom Chest item inside chest
307307
override_key_t key = {
308308
.scene = 0x10,
309309
.type = OVR_CHEST,
310310
.flag = 0x08,
311311
};
312312
override = lookup_override_by_key(key);
313-
} else if (actor->variable == 0x090D && SHUFFLE_CHEST_GAME) {
313+
} else if (actor->variable == 0x090D && (SHUFFLE_CHEST_GAME || CUSTOM_KEY_MODELS)) {
314314
//Chest Game Room 5 Top Chest item inside chest
315315
override_key_t key = {
316316
.scene = 0x10,

ASM/c/models.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include "override.h"
66
#include <stdint.h>
77

8+
extern uint8_t CUSTOM_KEY_MODELS;
9+
810
typedef struct model_t {
911
uint16_t object_id;
1012
uint8_t graphic_id;

data/generated/patch_symbols.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)