summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-08-30 16:50:11 -0400
committerscnorton <scnorton@biociphers.org>2017-08-30 16:50:11 -0400
commitd26e349392d745b4b7d12fedb08559b636b4ac09 (patch)
treee9ab51987d9bbe20f1251f1406367526563defef /src
parent01f37837b1b56efa4db862a3a742f4c6034ea363 (diff)
through sp0B9_daycare_relationship_comment
Diffstat (limited to 'src')
-rw-r--r--src/daycare.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/daycare.c b/src/daycare.c
index e0dc83962..4f6d2e1d1 100644
--- a/src/daycare.c
+++ b/src/daycare.c
@@ -1440,3 +1440,26 @@ u8 daycare_relationship_score(struct DayCareData *dayCareData)
"\tbx r1");
}
#endif
+
+u8 daycare_relationship_score_from_savegame(void)
+{
+ return daycare_relationship_score(&gSaveBlock1.daycareData);
+}
+
+void sp0B9_daycare_relationship_comment(void)
+{
+ u8 whichString;
+ u8 relationshipScore;
+
+ relationshipScore = daycare_relationship_score_from_savegame();
+ whichString = 0;
+ if (relationshipScore == 0)
+ whichString = 3;
+ if (relationshipScore == 20)
+ whichString = 2;
+ if (relationshipScore == 50)
+ whichString = 1;
+ if (relationshipScore == 70)
+ whichString = 0;
+ StringCopy(gStringVar4, gUnknown_08209AC4[whichString]);
+}