feat(magicmap): ornaments and creatures #404

Merged
jqueuniet merged 5 commits from feat/402-magicmap-ornaments into main 2026-10-29 21:09:37 +01:00
Owner

Second of four stacked PRs for #402; based on the terrain PR.

  • Wall and floor ornaments: random wall ornaments, actuator and text decorations, default animated floor ornaments, animation frames. Secret ornaments show (reveal mode). graphics.dat lookups go through a narrow GdatQuery trait.
  • Creatures at their new-game positions: the last qualifying creature per cell, animated frames and rotation, the map-item blip for creatures without a map chip, and the creature-rune gate.

Refs #402

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Second of four stacked PRs for #402; based on the terrain PR. - Wall and floor ornaments: random wall ornaments, actuator and text decorations, default animated floor ornaments, animation frames. Secret ornaments show (reveal mode). `graphics.dat` lookups go through a narrow `GdatQuery` trait. - Creatures at their new-game positions: the last qualifying creature per cell, animated frames and rotation, the map-item blip for creatures without a map chip, and the creature-rune gate. Refs #402 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Wall sides (random ornaments, actuator and text decorations) and
floor ornaments (tileset default, actuators, texts) in reveal mode,
with their animation frames, through a GdatQuery attached by
MapView::with_gdat.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
creature_chips returns the chip the magic map draws for a cell's last
creature: its map chip (static or animated, mirrored by facing), else
the map item's blip unless static or AI flag 0x2000. GdatQuery gains
creature_ai_flags; the 0x2000 descriptors come from skull.exe.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Without the rune, the engine still draws types with the
(0x0f, t, 0x0b, 0xf9) word and static creatures; the rune adds the
rest.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Catches x/y, width/height and map-index term errors the 3x3 map-0 test misses.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
fix(magicmap): require a non-zero creature map-chip word
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 44s
CI / audit (pull_request) Successful in 12s
CI / stable (pull_request) Successful in 1m29s
CI / python bindings (3.11) (pull_request) Successful in 33s
CI / msrv (1.90) (push) Successful in 44s
CI / audit (push) Successful in 13s
CI / stable (push) Successful in 1m28s
CI / python bindings (3.11) (push) Successful in 32s
9085a9e29a
The engine tests the (0x0f, type, 0x0b, 0xf9) word != 0.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet changed target branch from feat/402-magicmap-terrain to main 2026-10-29 21:06:31 +01:00
jqueuniet deleted branch feat/402-magicmap-ornaments 2026-10-29 21:09:37 +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!404
No description provided.