diff options
author | YamaArashi <shadow962@live.com> | 2017-01-05 20:43:28 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2017-01-05 20:44:28 -0800 |
commit | eeacf2f835460ce922d53fb5f663fc9831a2c1d3 (patch) | |
tree | d0a6ae7f8b5410ac1f0faea914f3c896af968555 /src | |
parent | c1b2c31a4a935f6c452596d5f2fad2e2cb588d4d (diff) |
lottery prize data
Diffstat (limited to 'src')
-rw-r--r-- | src/lottery_corner.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lottery_corner.c b/src/lottery_corner.c index 4d80f86c2..c18aeef48 100644 --- a/src/lottery_corner.c +++ b/src/lottery_corner.c @@ -4,17 +4,25 @@ #include "string_util.h" #include "event_data.h" #include "species.h" +#include "items.h" extern u16 gScriptResult; extern u16 gSpecialVar_0x8004; extern struct Pokemon gPlayerParty[6]; extern struct PokemonStorage gPokemonStorage; extern u16 gSpecialVar_0x8005; -extern u16 gUnknown_0840CB04[]; extern u16 gSpecialVar_0x8006; static EWRAM_DATA u16 sWinNumberDigit = 0; static EWRAM_DATA u16 sOtIdDigit = 0; +static const u16 sLotteryPrizes[] = +{ + ITEM_PP_UP, + ITEM_EXP_SHARE, + ITEM_MAX_REVIVE, + ITEM_MASTER_BALL, +}; + static u8 GetMatchingDigits(u16, u16); void ResetLotteryCorner(void) @@ -103,7 +111,7 @@ void PickLotteryCornerTicket(void) if(gSpecialVar_0x8004 != 0) { - gSpecialVar_0x8005 = gUnknown_0840CB04[gSpecialVar_0x8004 - 1]; + gSpecialVar_0x8005 = sLotteryPrizes[gSpecialVar_0x8004 - 1]; if(box == 14) { |