summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-04-16 11:20:48 +0300
committerTal Hayon <talhayon1@gmail.com>2022-04-16 11:20:48 +0300
commitf4ab2b02b699604f93fefc5fcec91fab24e9b5da (patch)
tree581435cf4e91043c58287fbbd518606d6e9e2bfe /src
parentcf3fff2805dfec477708a772636755d0df051db1 (diff)
Put const data in mama
Diffstat (limited to 'src')
-rw-r--r--src/npc/mama.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/npc/mama.c b/src/npc/mama.c
index 974aa58f..11f291d2 100644
--- a/src/npc/mama.c
+++ b/src/npc/mama.c
@@ -3,9 +3,11 @@
#include "save.h"
#include "npc.h"
-extern Dialog gUnk_08113760[];
-
-extern SpriteLoadData gUnk_08113754;
+static const SpriteLoadData gUnk_08113754[] = {
+ { 0x101, 0x4e, 0x4 },
+ { 0x2101, 0x4e, 0x4 },
+ { 0, 0, 0 },
+};
bool32 sub_0806C454(Entity* this);
@@ -44,7 +46,7 @@ void Mama(Entity* this) {
}
bool32 sub_0806C454(Entity* this) {
- if (LoadExtraSpriteData(this, &gUnk_08113754) == 0) {
+ if (LoadExtraSpriteData(this, gUnk_08113754) == 0) {
return FALSE;
} else {
SetDefaultPriority(this, PRIO_MESSAGE);
@@ -75,7 +77,13 @@ void sub_0806C4A8(Entity* this, ScriptExecutionContext* context) {
}
void sub_0806C4DC(Entity* this) {
- ShowNPCDialogue(this, &gUnk_08113760[gSave.global_progress]);
+ static const Dialog dialogs[] = {
+ { 1, 0, 3, 1, { 0x4f03, 0x4f02 } }, { 1, 0, 3, 1, { 0x4f03, 0x4f02 } }, { 1, 0, 3, 1, { 0x4f03, 0x4f02 } },
+ { 1, 0, 3, 1, { 0x4f03, 0x4f02 } }, { 1, 0, 3, 1, { 0x4f0d, 0x4f0c } }, { 1, 0, 3, 1, { 0x4f1b, 0x4f1a } },
+ { 1, 0, 3, 1, { 0x4f27, 0x4f26 } }, { 1, 0, 3, 1, { 0x4f33, 0x4f32 } }, { 1, 0, 3, 1, { 0x4f3f, 0x4f3e } },
+ { 1, 0, 3, 1, { 0x4f49, 0x4f48 } },
+ };
+ ShowNPCDialogue(this, &dialogs[gSave.global_progress]);
}
void sub_0806C4F8(Entity* this) {