Skip to content

Commit 41fc234

Browse files
committed
add tower to dungeon_entry_t
1 parent 3c3b204 commit 41fc234

9 files changed

Lines changed: 37756 additions & 37684 deletions

File tree

ASM/build/asm_symbols.txt

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

ASM/build/bundle.o

336 Bytes
Binary file not shown.

ASM/build/c_symbols.txt

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

ASM/c/dungeon_info.c

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,23 @@
1111
int dungeon_count = 13;
1212

1313
dungeon_entry_t dungeons[] = {
14-
{ 0, 0, 0, 0, 1, 0x0F, "Deku", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
15-
{ 1, 0, 0, 0, 1, 0x1F, "Dodongo", {-1, -1, -1, -1}, { 0, -1, -1, -1} },
16-
{ 2, 0, 0, 0, 1, 0x0F, "Jabu", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
17-
18-
{ 3, 1, 1, 0, 1, 0x1F, "Forest", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
19-
{ 4, 1, 1, 0, 1, 0x1F, "Fire", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
20-
{ 5, 1, 1, 0, 1, 0x1F, "Water", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
21-
{ 7, 1, 1, 0, 1, 0x1F, "Shadow", { 4, 6, 7, -1}, { 4, 5, 6, 7} },
22-
{ 6, 1, 1, 0, 1, 0x1F, "Spirit", {11, 14, 12, -1}, {13, 15, -1, -1} },
23-
24-
{ 8, 1, 0, 0, 1, 0x07, "BotW", { 3, -1, -1, -1}, {-1, -1, -1, -1} },
25-
{ 9, 0, 0, 0, 1, 0x07, "Ice", { 1, 2, -1, -1}, {-1, -1, -1, -1} },
26-
{ 12, 1, 0, 1, 0, 0x00, "Hideout", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
27-
{ 11, 1, 0, 0, 0, 0x00, "GTG", { 8, 9, 10, -1}, { 8, 9, 10, -1} },
28-
{ 13, 1, 1, 0, 0, 0x00, "Ganon", {16, 17, 18, 21}, {18, 19, 20, -1} },
29-
{ 16, 1, 0, 0, 0, 0x00, "Chest Game",{-1, -1, -1, -1}, {-1, -1, -1, -1 }},
14+
{ 0, 0, 0, 0, 1, 0x0F, "Deku", "Deku Tree", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
15+
{ 1, 0, 0, 0, 1, 0x1F, "Dodongo", "Dodongo's Cavern", {-1, -1, -1, -1}, { 0, -1, -1, -1} },
16+
{ 2, 0, 0, 0, 1, 0x0F, "Jabu", "Jabu Jabu's Belly", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
17+
18+
{ 3, 1, 1, 0, 1, 0x1F, "Forest", "Forest Temple", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
19+
{ 4, 1, 1, 0, 1, 0x1F, "Fire", "Fire Temple", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
20+
{ 5, 1, 1, 0, 1, 0x1F, "Water", "Water Temple", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
21+
{ 7, 1, 1, 0, 1, 0x1F, "Shadow", "Shadow Temple", { 4, 6, 7, -1}, { 4, 5, 6, 7} },
22+
{ 6, 1, 1, 0, 1, 0x1F, "Spirit", "Spirit Temple", {11, 14, 12, -1}, {13, 15, -1, -1} },
23+
24+
{ 8, 1, 0, 0, 1, 0x07, "BotW", "Bottom of the Well", { 3, -1, -1, -1}, {-1, -1, -1, -1} },
25+
{ 9, 0, 0, 0, 1, 0x07, "Ice", "Ice Cavern", { 1, 2, -1, -1}, {-1, -1, -1, -1} },
26+
{ 12, 1, 0, 1, 0, 0x00, "Hideout", "Thieves' Hideout", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
27+
{ 11, 1, 0, 0, 0, 0x00, "GTG", "Gerudo Training Ground", { 8, 9, 10, -1}, { 8, 9, 10, -1} },
28+
{ 10, 0, 0, 0, 0, 0x00, "Tower", "Ganon's Tower", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
29+
{ 13, 1, 1, 0, 0, 0x00, "Ganon", "Ganon's Castle", {16, 17, 18, 21}, {18, 19, 20, -1} },
30+
{ 16, 1, 0, 0, 0, 0x00, "Chest Game", "Treasure Box Shop", {-1, -1, -1, -1}, {-1, -1, -1, -1} },
3031
};
3132

3233
boss_entry_t bosses[] = {
@@ -283,7 +284,7 @@ void draw_world_info(z64_disp_buf_t* db) {
283284
gDPPipeSync(db->p++);
284285
dungeon_entry_t dungeon = dungeons[i];
285286
top += font_height + padding;
286-
text_print_size(db, dungeon.name, left, top, font_width, font_height);
287+
text_print_size(db, dungeon.short_name, left, top, font_width, font_height);
287288
}
288289

289290
// Draw the list of dungeons interiors.
@@ -358,7 +359,7 @@ void draw_world_info(z64_disp_buf_t* db) {
358359
gDPPipeSync(db->p++);
359360
dungeon_entry_t dungeon = dungeons[i];
360361
top += font_height + padding;
361-
text_print_size(db, dungeon.name, left, top, font_width, font_height);
362+
text_print_size(db, dungeon.short_name, left, top, font_width, font_height);
362363
}
363364
// List of bosses, located in CFG_BOSSES after the first list of 12 for the dpad left menu.
364365
for (uint8_t i = 0; i < rows - 1; i++) {
@@ -437,7 +438,7 @@ void draw_world_info(z64_disp_buf_t* db) {
437438
}
438439
dungeon_entry_t dungeon = dungeons[i];
439440
top += font_height + padding;
440-
text_print_size(db, dungeon.name, left, top, font_width, font_height);
441+
text_print_size(db, dungeon.short_name, left, top, font_width, font_height);
441442
}
442443
// Draw the area each dungeon is located in.
443444
for (uint8_t i = 0; i < rows - 1; i++) {

ASM/c/dungeon_info.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ typedef struct {
1313
uint8_t has_map : 1;
1414
};
1515
uint8_t skulltulas;
16-
char name[11];
16+
char short_name[11];
17+
char name[22];
1718
uint8_t silver_rupee_puzzles_vanilla[4];
1819
uint8_t silver_rupee_puzzles_mq[4];
1920
} dungeon_entry_t;
@@ -25,7 +26,7 @@ typedef struct {
2526
} boss_entry_t;
2627

2728
extern int dungeon_count;
28-
extern dungeon_entry_t dungeons[14];
29+
extern dungeon_entry_t dungeons[15];
2930

3031
void draw_dungeon_info(z64_disp_buf_t* db);
3132
void draw_world_info(z64_disp_buf_t* db);

ASM/c/message.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ bool Message_Decode_Additional_Control_Codes(uint8_t currChar, uint32_t* pDecode
187187
break;
188188
}
189189
case 0x41B:
190+
case 0x427: {
191+
// Ganon's Tower
192+
Message_AddString(msgCtx, pFont, pDecodedBufPos, pCharTexIdx, dungeons[12].name);
193+
break;
194+
}
190195
case 0x467:
191196
case 0x534:
192197
case 0x538:
@@ -195,8 +200,8 @@ bool Message_Decode_Additional_Control_Codes(uint8_t currChar, uint32_t* pDecode
195200
case 0x544:
196201
case 0x548:
197202
case 0x54C: {
198-
// Ganon
199-
Message_AddString(msgCtx, pFont, pDecodedBufPos, pCharTexIdx, dungeons[12].name);
203+
// Ganon's Castle
204+
Message_AddString(msgCtx, pFont, pDecodedBufPos, pCharTexIdx, dungeons[13].name);
200205
break;
201206
}
202207
default: {

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)