Skip to content

Fix World::getAdventurer for adventure arena - #5991

Open
Bumber64 wants to merge 3 commits into
DFHack:developfrom
Bumber64:get-adventurer
Open

Bumber64 wants to merge 3 commits into
DFHack:developfrom
Bumber64:get-adventurer

Conversation

@Bumber64

@Bumber64 Bumber64 commented Oct 4, 2026

Copy link
Copy Markdown
Member

Make getAdventurer apply to adventure arena by checking for adventure gamemode instead of isAdventureMode. Also make dwarfmode.lua respect the adventure look cursor for arena.

Tidied up an unnecessary check in createitem.ccp. Units::getProfessionName misbehavior is fixed as a result of the getAdventure change. No visible change to World::GetCurrentSiteId because arena mode always contains 0 sites.

Update docs to clarify that isAdventureMode doesn't cover arena mode.

reveal.cpp remains unavailable in arena mode, as swapping back to dwarf arena doesn't trigger SC_WORLD_UNLOADED to reset state.

* Update World.cpp - Fix getAdventurer in arena
* Update createitem.cpp - Simplify adventurer check
* Update dwarfmode.lua - Fix adventure arena look cursor
* Update Lua API.rst - Improve isAdventureMode doc
* Update changelog.txt
* Update Lua API.rst
* Update dwarfmode.lua
@Bumber64
Bumber64 marked this pull request as ready for review October 5, 2026 18:32
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