diff options
author | xCrystal <rgr.crystal@gmail.com> | 2019-07-23 21:03:39 +0200 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2019-07-23 21:03:39 +0200 |
commit | b7ee18f262b1d88582fdc55879f1abaad17cc5ce (patch) | |
tree | b3ccca487812143478c8369fa810abe00ef3efef /src/wram.asm | |
parent | 0d2dce27ff7ad77a12f5182bbb8618d871446aa4 (diff) |
Disassemble and document code related to knocking out Pokemon and taking prizes
Diffstat (limited to 'src/wram.asm')
-rw-r--r-- | src/wram.asm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wram.asm b/src/wram.asm index 38ebd4a..7399551 100644 --- a/src/wram.asm +++ b/src/wram.asm @@ -780,6 +780,8 @@ wcbfa:: ; cbfa wcbfb:: ; cbfb ds $1 +; used by Func_5805 to store the remaining Prizes, so that if more than that +; amount would be taken, only the remaining amount is taken wcbfc:: ; cbfc ds $1 @@ -959,7 +961,12 @@ wSelectedMoveIndex:: ; ccc6 ; if affected by a no damage or effect substatus, this flag indicates what the cause was wNoDamageOrEffect:: ; ccc7 - ds $2 + ds $1 + +; used by CountKnockedOutPokemon and Func_5805 to store the amount +; of prizes to take (equal to the number of Pokemon knocked out) +wccc8:: ; ccc8 + ds $1 ; set to 1 if the coin toss in the confusion check is heads (CheckSelfConfusionDamage) wGotHeadsFromConfusionCheck:: ; ccc9 |