Use percentages for AI scoring logic

Define MAX_DAY_CARE_EXP
This commit is contained in:
Remy Oukaour
2017-12-25 16:18:05 -05:00
parent 2e200ce85e
commit 85aa236c34
3 changed files with 46 additions and 44 deletions

View File

@@ -159,9 +159,9 @@ DayCareStep:: ; 7282
dec hl
inc [hl]
ld a, [hl]
cp HIGH($500000 >> 8)
cp HIGH(MAX_DAY_CARE_EXP >> 8)
jr c, .day_care_lady
ld a, HIGH($500000 >> 8)
ld a, HIGH(MAX_DAY_CARE_EXP >> 8)
ld [hl], a
.day_care_lady
@@ -181,9 +181,9 @@ DayCareStep:: ; 7282
dec hl
inc [hl]
ld a, [hl]
cp HIGH($500000 >> 8)
cp HIGH(MAX_DAY_CARE_EXP >> 8)
jr c, .check_egg
ld a, HIGH($500000 >> 8)
ld a, HIGH(MAX_DAY_CARE_EXP >> 8)
ld [hl], a
.check_egg
@@ -199,7 +199,7 @@ DayCareStep:: ; 7282
callfar CheckBreedmonCompatibility
ld a, [wd265]
cp 230
ld b, -1 + 32 percent
ld b, 32 percent - 1
jr nc, .okay
ld a, [wd265]
cp 170