feat(magicmap): name item and creature layers #427

Merged
jqueuniet merged 1 commit from feat/424-layer-names into main 2026-10-30 15:08:14 +01:00
Owner

Closes #424. Stacked on #423's branch.

  • Layer::objects: the records a layer draws; creatures list the cell's creature records, drawn one first.
  • Chip-report JSON takes a language and adds name, glyph_name and, for groups over one, count to item and creature layers. Fallbacks item #<cls2> / creature #<type>.
  • Creature names come from the untranslated PC-family bucket, so every language gets the same text.
  • Champion's bones (misc #0) keep the fallback name: meaningless outside a save. Rejecting them on build is #425.

Breaking: JS and C callers pass the new language argument; Python defaults it to en.

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Closes #424. Stacked on #423's branch. - `Layer::objects`: the records a layer draws; creatures list the cell's creature records, drawn one first. - Chip-report JSON takes a `language` and adds `name`, `glyph_name` and, for groups over one, `count` to item and creature layers. Fallbacks `item #<cls2>` / `creature #<type>`. - Creature names come from the untranslated PC-family bucket, so every language gets the same text. - Champion's bones (misc #0) keep the fallback name: meaningless outside a save. Rejecting them on build is #425. Breaking: JS and C callers pass the new `language` argument; Python defaults it to `en`. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
feat(magicmap): name item and creature layers
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 34s
CI / stable (pull_request) Successful in 57s
CI / audit (pull_request) Successful in 12s
CI / python bindings (3.11) (pull_request) Successful in 25s
CI / msrv (1.90) (push) Successful in 29s
CI / audit (push) Successful in 18s
CI / stable (push) Successful in 55s
CI / python bindings (3.11) (push) Successful in 24s
139b1e9fcd
Layers list the records they draw: an item's, or the cell's creature
group, the drawn one first. Chip-report JSON takes a language and gives
item and creature layers the game's name and glyph name, and a group's
count. Creature names come from (0x0f, type, 0x05, 0x00), which DOS and
Mac carry only in the untranslated PC-family bucket; bones drop their
hero macro, dungeon.dat having no party.

Closes #424

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet changed target branch from feat/423-unfilled-rock to main 2026-10-30 15:07:16 +01:00
jqueuniet deleted branch feat/424-layer-names 2026-10-30 15:08:14 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!427
No description provided.