Skip to content

Commit b1e7a98

Browse files
committed
Rebase and use new model for pots drops
1 parent b52a584 commit b1e7a98

10 files changed

Lines changed: 24337 additions & 62940 deletions

File tree

ASM/build/asm_symbols.txt

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

ASM/build/bundle.o

652 Bytes
Binary file not shown.

ASM/build/c_symbols.txt

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

ASM/c/get_items.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,11 @@ uint8_t item_give_collectible(uint8_t item, z64_link_t* link, z64_actor_t* from_
926926
uint16_t resolved_item_id = resolve_upgrades(collectible_override);
927927
item_row_t* item_row = get_item_row(resolved_item_id);
928928

929+
// If we picked an ice trap, show the ice model instead of the fake item model.
930+
if (item_id == GI_ICE_TRAP) {
931+
pItem->model.graphic_id = 0xA4;
932+
}
933+
929934
// Set the collectible flag
930935
Set_NewFlag(&flag);
931936
//if (item == ITEM00_HEART_PIECE || item == ITEM00_SMALL_KEY) { // Don't allow heart pieces or small keys to be collected a second time. This is really just for the "Drop" types.

ASM/c/item_draw_functions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ void draw_gi_nothing(z64_game_t* game, uint32_t draw_id);
5252
void draw_gi_medallions(z64_game_t* game, uint32_t draw_id);
5353
void draw_gi_stones(z64_game_t* game, uint32_t draw_id);
5454
void draw_gi_magic_meter(z64_game_t* game, uint32_t draw_id);
55-
<<<<<<< HEAD
5655
void draw_gi_flame(z64_disp_buf_t* dl, z64_game_t *game, colorRGBA8_t prim, colorRGBA8_t env, z64_xyzf_t translation, z64_xyzf_t scale);
5756
void draw_gi_xlu_with_flame(z64_game_t *game, uint32_t draw_id);
5857
void draw_gi_deku_nut_with_flame(z64_game_t* game, uint32_t draw_id);
59-
=======
6058
void draw_ice_trap(z64_game_t* game, uint32_t draw_id);
61-
>>>>>>> 04e5195c (Ice trap model)
6259

6360
#endif

ASM/c/item_draw_table.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,12 @@ item_draw_table_entry_t item_draw_table[] = {
174174
[0x9C] = { draw_gi_stones, { 0x06000b00, 0x060012f0, 0x32ffffff, 0x320096ff } }, // Zora Sapphire
175175
[0x9D] = { draw_gi_fairy, { 0x06000EF0 } }, // Fairy (not in a bottle but uses the fairy from the bottle)
176176
[0x9E] = { draw_gi_nothing, {} },
177-
<<<<<<< HEAD
178177
[0x9F] = { draw_gi_magic_meter, { 0x06000000, 0x060007B0, 0x060009F8, 0x06000FD8, 0x286428FF, 0x000000FF } }, // Magic Meter Scroll
179178
[0xA0] = { draw_gi_xlu_with_flame, { 0x060004D0, 0xC0C0C0FF, 0xC0C0C0FF } }, // Deku Stick Upgrade w/ Smoke Effect
180179
[0xA1] = { draw_gi_deku_nut_with_flame, { 0x06000E90, 0xC0C0C0FF, 0xC0C0C0FF } }, // Deku Nut Upgrade w/ Smoke Effect
181180
[0xA2] = { draw_gi_magic_meter, { 0x06000000, 0x06000CC0, 0x06000F08, 0x060014E8, 0x286428FF, 0x000000FF } }, // Magic Meter Scroll 2
181+
[0xA3] = { draw_ice_trap, { 0x04034380 } }, // Ice trap
182182
};
183-
=======
184-
[0x9F] = { draw_gi_magic_meter, { 0x06000000, 0x060007B0, 0x06000FD8, 0x060009F8, 0x06001438, 0x286428FF, 0x000000FF } }, // Magic Meter Scroll
185-
[0xA0] = { draw_ice_trap, { 0x04034380 } }, // Ice trap
186-
};
187-
>>>>>>> 04e5195c (Ice trap model)
188183

189184
void base_draw_gi_model(z64_game_t* game, uint32_t draw_id) {
190185
item_draw_table[draw_id].draw_func(game, draw_id);

ASM/c/item_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ item_row_t item_table[GI_RANDO_MAX] = {
154154
[GI_DEKU_NUT_UPGRADE_30] = ITEM_ROW(0x53, BROWN_CHEST, 0x9A, -1, 0x00A7, 0x00BB, 0xA2, no_upgrade, no_effect, -1, -1, NULL), // Deku Nut Upgrade (30)
155155
[GI_DEKU_NUT_UPGRADE_40] = ITEM_ROW(0x53, BROWN_CHEST, 0x9B, -1, 0x00A8, 0x00BB, 0xA2, no_upgrade, no_effect, -1, -1, NULL), // Deku Nut Upgrade (40)
156156
[GI_BULLET_BAG_50] = ITEM_ROW(0x53, GILDED_CHEST, 0x49, -1, 0x006C, 0x017B, 0x73, no_upgrade, no_effect, -1, -1, NULL), // Bullet Bag (50)
157-
[GI_ICE_TRAP] = ITEM_ROW(0x53, GILDED_CHEST, 0x41, -1, 0x9002, 0x0000, 0xA1, no_upgrade, ice_trap_effect, -1, -1, NULL), // Ice Trap
157+
[GI_ICE_TRAP] = ITEM_ROW(0x53, GILDED_CHEST, 0x41, -1, 0x9002, 0x0000, 0xA4, no_upgrade, ice_trap_effect, -1, -1, NULL), // Ice Trap
158158

159159
[GI_CAPPED_PIECE_OF_HEART] = ITEM_ROW(0x3E, HEART_CHEST_SMALL, 0x41, -1, 0x90C2, 0x00BD, 0x14, no_upgrade, full_heal, -1, -1, NULL), // Capped Piece of Heart
160160
[GI_CAPPED_HEART_CONTAINER] = ITEM_ROW(0x3E, HEART_CHEST_SMALL, 0x41, -1, 0x90C6, 0x00BD, 0x13, no_upgrade, full_heal, -1, -1, NULL), // Capped Heart Container

data/generated/patch_symbols.json

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

0 commit comments

Comments
 (0)