JustRegularLuna / pokered-clean

This will cleanup various nonsense code or junk data from Red, and make some things more flexible.
10 stars 3 forks source link

Removing Badge Boosts? #4

Open GBC-OG opened 2 years ago

GBC-OG commented 2 years ago

Hey Luna, sorry to bother you once again, I was wondering if you could tell me which lines of code need to be deleted to remove badge stat boosts? I tried to follow the guide on the official pokered disassembly wiki but those files and codes don't correspond to your pokered clean.

I don't really understand the code so when you have time if you could please tell me what to delete/type in which files I'd really appreciate it.

JustRegularLuna commented 2 years ago

the pokered wiki doesn't even have a tutorial for that either, at least not one that I can find. pokecrystal does, but obviously the code is very different between red and crystal. But if I remember correctly, all you'll have to do is comment out line 1658 in engine/battle/core.asm (the line should say "call ApplyBadgeStatBoosts" by commenting it out, it won't apply the boosts.

GBC-OG commented 2 years ago

There's also mention of "ApplyBadgeStatBoosts" in line 6523 should I comment that out too? It looks like it's for link battles is that correct? Do badge stats apply to link battles? It's also present in the effects.asm and experience.asm files, should I comment those out as well? And there's also ".applyBadgeBoostsAndStatusPenalties"

JustRegularLuna commented 2 years ago

the last one about badge boosts and status penalties you'd want to keep but you can try commenting out the others

GBC-OG commented 2 years ago

Gotcha, thanks!