Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2015-11-16 07:04:06

Fotomac
Member
Registered: 2015-10-25
Post 74/297

Focus Energy and Freeze done properly?

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

#2 2015-11-16 11:19:54

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 341/437
Website

Re: Focus Energy and Freeze done properly?

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

#3 2015-11-16 11:34:25

Fotomac
Member
Registered: 2015-10-25
Post 75/297

Re: Focus Energy and Freeze done properly?

Crystal_ wrote:

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

#4 2015-11-16 12:17:41

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 342/437
Website

Re: Focus Energy and Freeze done properly?

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

#5 2015-11-16 21:52:24

Fotomac
Member
Registered: 2015-10-25
Post 76/297

Re: Focus Energy and Freeze done properly?

Crystal_ wrote:

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

Board footer

Powered by FluxBB