Skip to content

Commit 02188d9

Browse files
committed
Merge "Render correct model for TCG Keys when they're not shuffled and unique key models are enabled" (OoTRandomizer#2466)
# Conflicts: # ASM/build/asm_symbols.txt # ASM/build/bundle.o # ASM/build/c_symbols.txt # data/generated/patch_symbols.json # data/generated/rom_patch.txt # data/generated/symbols.json
2 parents 0b2d730 + 7fd3c8d commit 02188d9

10 files changed

Lines changed: 13248 additions & 13205 deletions

File tree

ASM/build/asm_symbols.txt

Lines changed: 441 additions & 441 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: 420 additions & 420 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;

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Fix a bug where the starting health capacity in game might be miscalculated when starting with a heart piece.
1616
* Fix the Chicken (child trade quest item) using the same get item text box as the Pocket Cucco (adult trade quest item).
1717
* Fix a vanilla bug where playing the ocarina with vibrato before recording the Scarecrow's Song could prevent Pierre from spawning.
18+
* Fix unshuffled treasure box shop keys showing the wrong item model while inside the chests if `Key Appearance Matches Dungeon` is enabled.
1819

1920
# 9.0
2021

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)