summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2021-04-18 07:10:48 -0400
committerIdain <luiscarlosholguinperez@outlook.com>2021-04-18 07:10:48 -0400
commit99a215b7675738c5ab708ae3764fd531b480f31a (patch)
tree9913c4efe9454db4ed6c54396f53252f2686dd33
parent1396b14afe04814ab9b6fc79c86dc703dd8ab3f8 (diff)
Updated Make the Lottery Corner generate a lucky number daily instead of weekly (markdown)
-rw-r--r--Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md b/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md
index a44f086..91fcb79 100644
--- a/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md
+++ b/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md
@@ -29,8 +29,8 @@ CheckDailyResetTimer::
With this change, the contents of `wLuckyNumberShowFlag` will get reset every day. So now, let's go to the next part.
-## 2. Change the behavior of both `CheckLuckyNumberShowFlag` and `ResetLuckyNumberShowFlag`
+## 2. Change the behavior of both `CheckLuckyNumberShowFlag` and `ResetLuckyNumberShowFlag`
In [maps/RadioTower1F.asm](../blob/master/maps/RadioTower1F.asm), there are two special event commands that get called whenever we either talk to the recepcionist or listen to the Lucky Number Show: `CheckLuckyNumberShowFlag` and `ResetLuckyNumberShowFlag`. The first one checks if the flag is set or not and how many days are left until the next Friday; the second resets the flag when it's Friday again and also generates the random number. Since we managed to reset `wLuckyNumberShowFlag` daily, we need to modify `ResetLuckyNumberShowFlag` so that it only generates our desired random number. Go to
[engine/events/specials.asm](../blob/engine/events/specials.asm):
@@ -68,7 +68,7 @@ RadioTower1FLuckyNumberManScript:
- special CheckLuckyNumberShowFlag
- iffalse .skip
+ checkflag ENGINE_LUCKY_NUMBER_SHOW
-+ iftrue, .skip
++ iftrue .skip
special ResetLuckyNumberShowFlag
.skip
...