Falsebound Archive
5 Bugs & quirks 5.14

Status cards never name their status

When a monster is poisoned, paralysed, confused or blinded, the battle shows the status’s name over it: POISON, PARALYZE, CONFUSION or BLIND. A status card never gets that name, although the status lands. The same goes for special attacks that only give a status.

Where
main.dol, battle_fx_skill_status and battle_fx_special_status; popup battle_popup_spawn
Popup missing
For every status card and status special attack
Popup shown
For damage and ATK cards that add a status, and for statuses a basic attack adds
Visible
Yes, in normal play
The status itself
Lands as it should; only the name is missing
Files
2 · 1.1 MB

The cards affected are the seven that give a bad status: Snake Fang and Germ Infection (poison), Shadow Spell, Swords of Revealing Light and Dragon Capture Jar (paralysis), Magic Jammer (confusion) and Yami (blind). Raimei is a damage card that paralyses as well, and the battle names the status for it. So does a monster whose basic attack can add a status.

The mistake is probably a plain slip. The code for damage cards, ATK cards and basic attacks builds a set of bits first and tests that. The two status functions run the same test on a plain status number.

Evidence

Every status has a number: 4 poison, 5 paralysis, 6 confusion and 7 blind have names to show (messages 0x45 to 0x48). After a status lands, the code goes through 4 to 7 and shows popup k + 3 for each k whose bit is set: value & (1 << k). The damage card code (battle_fx_damage), the ATK card code (battle_fx_buff) and the basic attack (battle_fx_attack_basic) first collect 1 << status for every status that landed and test that. The status card code (battle_fx_skill_status) and the status special attack (battle_fx_special_status) test the status number itself. The numbers 4 to 8 (8 stands for all statuses) have none of bits 4 to 7 set, so no popup is ever shown.

In the Dolphin emulator, the title’s demo battle was run twice with a patch that gives the demo’s monsters one card: Raimei in one run, Swords of Revealing Light in the other. The computer used each card on its own. Both paralysed the three enemies, and only Raimei’s showed PARALYZE.