ref: a22343d32c9f81b9cd2a4f2ff49725cfbed6671d
parent: e8bc86d1fedfc6be5a99d426ffc236c4fcf494f4
author: mid-kid <esteve.varela@gmail.com>
date: Thu Feb 22 13:12:43 EST 2018
Fix TRUE/FALSE constants for CalcMonStats
--- a/engine/breeding.asm
+++ b/engine/breeding.asm
@@ -288,7 +288,7 @@
push hl
ld bc, MON_STAT_EXP - 1
add hl, bc
- ld b, $0
+ ld b, FALSE
predef CalcMonStats
pop bc
ld hl, MON_MAXHP
--- a/engine/events/battle_tower/battle_tower.asm
+++ b/engine/events/battle_tower/battle_tower.asm
@@ -483,7 +483,7 @@
push de
ld hl, MON_STAT_EXP - 1
add hl, bc
- ld b, $1
+ ld b, TRUE
predef CalcMonStats
pop de
pop hl
--- a/engine/events/daycare.asm
+++ b/engine/events/daycare.asm
@@ -566,7 +566,7 @@
ld e, l
pop hl
push bc
- ld b, $0
+ ld b, FALSE
predef CalcMonStats
pop bc
ld hl, MON_HP
--- a/engine/evolve.asm
+++ b/engine/evolve.asm
@@ -264,7 +264,7 @@
ld hl, wTempMonExp + 2
ld de, wTempMonMaxHP
- ld b, $1
+ ld b, TRUE
predef CalcMonStats
ld a, [wCurPartyMon]
--- a/engine/item_effects.asm
+++ b/engine/item_effects.asm
@@ -1282,7 +1282,7 @@
ld e, l
ld a, MON_STAT_EXP - 1
call GetPartyParamLocation
- ld b, $1
+ ld b, TRUE
predef_jump CalcMonStats
; ee9f
--- a/engine/routines/correcterrorsinplayerparty.asm
+++ b/engine/routines/correcterrorsinplayerparty.asm
@@ -89,7 +89,7 @@
ld e, l
ld hl, MON_STAT_EXP - 1
add hl, bc
- ld b, $1
+ ld b, TRUE
predef CalcMonStats
pop hl
ld bc, PARTYMON_STRUCT_LENGTH
--- a/engine/tempmon.asm
+++ b/engine/tempmon.asm
@@ -50,7 +50,7 @@
ld hl, MON_STAT_EXP - 1
add hl, bc
push bc
- ld b, $1
+ ld b, TRUE
predef CalcMonStats
pop bc
ld hl, MON_HP
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -7145,7 +7145,7 @@
add hl, de
pop de
push de
- ld b, OTPARTYMON
+ ld b, TRUE
predef CalcMonStats
pop de
ld h, d
@@ -7564,7 +7564,7 @@
ld hl, $c60d + MON_STAT_EXP - 1
ld de, $c60d + MON_MAXHP
- ld b, $1
+ ld b, TRUE
predef CalcMonStats
ld de, $c60d + MON_MAXHP
ld hl, $c60d + MON_HP
--- a/mobile/mobile_5f.asm
+++ b/mobile/mobile_5f.asm
@@ -2441,7 +2441,7 @@
ld d, h
ld e, l
push hl
- ld b, $0
+ ld b, FALSE
farcall CalcMonStats
ld a, [wPartyCount]
dec a