Fewer uses of 'Thing2 - Thing1' for sizeof(Thing)

This commit is contained in:
Rangi
2018-07-16 15:58:07 -04:00
parent d9b44d4423
commit b23f0b2bda
6 changed files with 22 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ Function_LoadRandomBattleTowerMon:
ld a, [wBTChoiceOfLvlGroup]
dec a
ld hl, BattleTowerMons
ld bc, BattleTowerMons2 - BattleTowerMons1
ld bc, BattleTowerMons2 - BattleTowerMons1 ; size of one level group
call AddNTimes
ld a, [hRandomAdd]

View File

@@ -39,7 +39,7 @@ _GiveOddEgg:
.done
ld hl, OddEggs
ld a, OddEgg2 - OddEgg1
ld a, OddEgg1End - OddEgg1
call AddNTimes
ld de, wOddEggSpecies