Skip to content

magic: import and decompile kaen, kaen2, gas, hakugek1, hakugek2 - #314

Draft
j3lee wants to merge 10 commits into
Xeeynamo:mainfrom
j3lee:spells-twins
Draft

j3lee wants to merge 10 commits into
Xeeynamo:mainfrom
j3lee:spells-twins

Conversation

@j3lee

@j3lee j3lee commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Five spell overlays that share most of their code, imported and fully decompiled (52 functions, no assembly left). One commit per overlay, then the names.

  • kaen, kaen2, gas: one family; kaen and gas differ in a loop count, a frame number and the order of one call, kaen2 differs more
  • hakugek1, hakugek2: a pair

The files are written to read alike: same local names, declaration order and comments, 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 10 commits October 12, 2026 12:13
Names from the label walker's table (labels-quest/NAMES-bundles.tsv, sure rows only); renames only.
Names from the label walker's table (labels-quest/NAMES-bundles.tsv, sure rows only); renames only.
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