From 5bf4908a9fbf4a5e4dbf6ee2bfcaeff4eb8f2766 Mon Sep 17 00:00:00 2001 From: Idain Date: Mon, 8 Mar 2021 01:46:57 -0400 Subject: Updated Don't lose HP from poisoning in the overworld (markdown) --- Don't-lose-HP-from-poisoning-in-the-overworld.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Don't-lose-HP-from-poisoning-in-the-overworld.md b/Don't-lose-HP-from-poisoning-in-the-overworld.md index 0695130..56824d0 100644 --- a/Don't-lose-HP-from-poisoning-in-the-overworld.md +++ b/Don't-lose-HP-from-poisoning-in-the-overworld.md @@ -20,6 +20,7 @@ CountStep: inc [hl] ; Every 256 steps, increase the happiness of all your Pokemon. jr nz, .skip_happiness + ... ``` ## 2. Get rid of useless routines @@ -44,7 +45,8 @@ In the same file: -.skip_poison farcall DoBikeStep +... ``` Since wPoisonStepCounter has stopped counting our steps, we no longer need to check how many steps we've taken to determine whether to take poison damage or not. -And that's it! Our Pokémon will no longer lose HP while walking in the overworld. Optionally, you can safely delete [engine/events/poisonstep.asm](https://github.com/pret/pokecrystal/blob/master/engine/events/poisonstep.asm), since this was the only instance where DoPoisonStep was called. \ No newline at end of file +And that's it! Our Pokémon will no longer lose HP while walking in the overworld. Optionally, you can safely delete [poisonstep.asm](https://github.com/pret/pokecrystal/blob/master/engine/events/poisonstep.asm), since this was the only instance where DoPoisonStep was called. \ No newline at end of file -- cgit v1.2.3