diff options
author | YamaArashi <shadow962@live.com> | 2017-01-04 20:16:15 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2017-01-04 20:16:15 -0800 |
commit | af4845a4a1db74dfdb3668944fc77e3fb4983052 (patch) | |
tree | c1552f88c75c0a80100283f04251730720481d4c /src/lottery_corner.c | |
parent | 8c02b87c326e5baf0d8674f359fe3eccff7d3a32 (diff) |
add some vars
Diffstat (limited to 'src/lottery_corner.c')
-rw-r--r-- | src/lottery_corner.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lottery_corner.c b/src/lottery_corner.c index 54ba3c46d..4d80f86c2 100644 --- a/src/lottery_corner.c +++ b/src/lottery_corner.c @@ -22,7 +22,7 @@ void ResetLotteryCorner(void) u16 rand = Random(); SetLotteryNumber((Random() << 16) | rand); - VarSet(0x4045, 0); + VarSet(VAR_POKELOT_PRIZE, 0); } void SetRandomLotteryNumber(u16 i) @@ -147,14 +147,14 @@ void SetLotteryNumber(u32 lotteryNum) u16 lowNum = lotteryNum >> 16; u16 highNum = lotteryNum; - VarSet(0x404B, highNum); - VarSet(0x404C, lowNum); + VarSet(VAR_POKELOT_RND1, highNum); + VarSet(VAR_POKELOT_RND2, lowNum); } u32 GetLotteryNumber(void) { - u16 highNum = VarGet(0x404B); - u16 lowNum = VarGet(0x404C); + u16 highNum = VarGet(VAR_POKELOT_RND1); + u16 lowNum = VarGet(VAR_POKELOT_RND2); return (lowNum << 16) | highNum; } |