feat(dungeon): expose map w12 bits 11:8 #395

Merged
jqueuniet merged 1 commit from feat/392-map-w12 into main 2026-10-28 21:34:42 +01:00
Owner

Adds Map::num_leading_creature_types() for w12 bits 11:8 (engine unknown1).

  • No known reader: SKWINSPX's DOS-derived code never reads these bits.
  • Observed: across all 614 fixture maps, the value (0–5) never exceeds the length of allowed_creature_types. On 510 maps it counts the leading entries that have no creature placed at load. The meaning is still unknown; the format doc records the pattern.

Refs #392

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Adds `Map::num_leading_creature_types()` for `w12` bits 11:8 (engine `unknown1`). - No known reader: SKWINSPX's DOS-derived code never reads these bits. - Observed: across all 614 fixture maps, the value (0–5) never exceeds the length of `allowed_creature_types`. On 510 maps it counts the leading entries that have no creature placed at load. The meaning is still unknown; the format doc records the pattern. Refs #392 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(dungeon): expose map w12 bits 11:8
All checks were successful
CI / audit (push) Successful in 18s
CI / stable (push) Successful in 52s
CI / python bindings (3.11) (push) Successful in 23s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 53s
CI / msrv (1.90) (pull_request) Successful in 28s
CI / python bindings (3.11) (pull_request) Successful in 24s
CI / msrv (1.90) (push) Successful in 28s
6f0649f227
No known engine code reads them; the format doc records the observed
pattern against allowed_creature_types.

Refs #392

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/392-map-w12 2026-10-28 21:34:42 +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!395
No description provided.