From 45e50b871d9a9e3d389b0eb1536a597d511e4f77 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 5 Nov 2016 12:24:14 -0700 Subject: introduce flag constants --- src/wild_encounter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wild_encounter.c') diff --git a/src/wild_encounter.c b/src/wild_encounter.c index fc1776d07..8c7cfe80c 100644 --- a/src/wild_encounter.c +++ b/src/wild_encounter.c @@ -766,9 +766,9 @@ bool8 RepelCheck(bool8 level) void ApplyFluteEncounterRateMod(u32 *a1) { - if(FlagGet(0x84D) == 1) + if(FlagGet(SYS_ENC_UP_ITEM) == 1) *a1 = *a1 + *a1 / 2; - else if(FlagGet(0x84E) == 1) + else if(FlagGet(SYS_ENC_DOWN_ITEM) == 1) *a1 = *a1 / 2; } -- cgit v1.2.3