Turn some magic numbers into named constants

This commit is contained in:
Thomas Winwood
2019-11-20 16:37:14 +00:00
committed by huderlem
parent 215bb31d67
commit e3f7f47321
3 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -30,6 +30,7 @@
#include "wild_encounter.h"
#include "constants/bg_event_constants.h"
#include "constants/event_objects.h"
#include "constants/field_poison.h"
#include "constants/map_types.h"
#include "constants/maps.h"
#include "constants/songs.h"
@@ -647,11 +648,11 @@ static bool8 UpdatePoisonStepCounter(void)
{
switch (DoPoisonFieldEffect())
{
case 0:
case FLDPSN_NONE:
return FALSE;
case 1:
case FLDPSN_PSN:
return FALSE;
case 2:
case FLDPSN_FNT:
return TRUE;
}
}