FF6 Hacking
Unhardcoded tintinabar bugfix - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Hacks, Resources and Tutorials (https://www.ff6hacking.com/forums/forum-1.html)
+--- Forum: Jidoor Auction House (https://www.ff6hacking.com/forums/forum-4.html)
+---- Forum: Patches, Bugfixes, Tweaks (https://www.ff6hacking.com/forums/forum-15.html)
+---- Thread: Unhardcoded tintinabar bugfix (/thread-3859.html)



Unhardcoded tintinabar bugfix - Subtraction - 07-25-2019

A few people reported that in Beyond Chaos EX, some characters get healed way too much by the tintinabar. I tracked it to a bug in Lenophis's Unhardcoded Tintinabar (solo version).

Basically, it does 16-bit ROL n+1 times, where n is the character id, to check the bit indicating whether the character is wearing a tintinabar. Then it does an 8-bit load to get the character's stamina, but does a 16-bit add to the character's HP, without clearing the high byte. The upshot is, Relm heals an extra 256 HP per step, Setzer an extra 512 HP, Mog 1024, etc.

Anyway, I fixed the asm by just inserting an AND #$00FF. Fixed asm and ips are attached. I haven't checked whether the party version of the patch has a similar bug, but I wouldn't think so.