You are not logged in.
Pages: 1
How do you fix them so that Focus Energy quadruples the critical hit chance instead of slashing it and Frozen Pokémon can thaw in the same amount of time it takes for an Asleep Pokémon to wake up?
Offline
Focus energy: http://www.pokecommunity.com/showthread.php?t=356265 (post 19 onwards)
You could make the sleep turns counter double up as a freeze turns counter while keeping the freeze status bit to differentiate between when the mon is asleep or when it's frozen.
Offline
You could make the sleep turns counter double up as a freeze turns counter while keeping the freeze status bit to differentiate between when the mon is asleep or when it's frozen.
I got the Focus Energy bit, but... how do you rewrite the SleepEffect section to accommodate Freeze? (BTW I renamed the section in question to SleepFreezeEffect.)
Offline
Actually it'd be easier if you used a different address to keep the freeze turns counter so that you don't have to worry about modifying how other stuff checks for the sleep status. Not a big deal but should be a little easier even though it takes up an extra byte (you can always pick up an unused one like the stats to double / halve addresses that are unused).
Basically initialize a freeze counter at https://github.com/pret/pokered/blob/ma … .asm#L7457 to whatever value you want, and make sure it's decremented on every turn like the sleep counter is (https://github.com/pret/pokered/blob/ma … .asm#L3396). When the counter hits 0, defrost the pokemon as if it had taken a fire attack (https://github.com/pret/pokered/blob/ma … .asm#L7526)
Offline
Basically initialize a freeze counter at https://github.com/pret/pokered/blob/ma … .asm#L7457 to whatever value you want, and make sure it's decremented on every turn like the sleep counter is (https://github.com/pret/pokered/blob/ma … .asm#L3396). When the counter hits 0, defrost the pokemon as if it had taken a fire attack (https://github.com/pret/pokered/blob/ma … .asm#L7526)
Right... so how would I write the code at each of the relevant places (i.e. line 7457 and so on)? That much I'm clueless about. I mean, I do get what to do and where to do it, it's how to do it I don't understand.
Offline
Pages: 1