Skip to content

magic: import and decompile hadoho, shaku, re_do - #315

Draft
j3lee wants to merge 6 commits into
Xeeynamo:mainfrom
j3lee:spells-hadoho
Draft

j3lee wants to merge 6 commits into
Xeeynamo:mainfrom
j3lee:spells-hadoho

Conversation

@j3lee

@j3lee j3lee commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Three spell overlays built from the same code, imported and fully decompiled (48 functions, no assembly left). One commit per overlay, then the names.

  • hadoho and shaku differ in one call argument and one frame number
  • re_do has the same structure with more differences
  • the file named HADOHO (波動砲, Wave Artillery) is loaded for Dragon Cannon, and Wave Artillery itself uses SHAKU; the header of hadoho.c says so

The files are written to read alike, so a diff between two of them shows only the real code differences.

Each file opens with the attack it belongs to, in the form the other magic files use; an effect several attacks share lists them. Functions are named <Overlay><Thing><Verb> after what they draw or do (the sprite frames were decoded from each overlay to check the words); data keeps its D_ names. No shared header is changed.

j3lee added 6 commits October 12, 2026 12:07
Names from the label walker's table (labels-quest/NAMES-bundles.tsv, sure rows only); renames only.
Cites functions that exist on origin/main (or in this PR); comments that named draft-only functions are repointed or dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant