File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Template for new versions:
28
28
29
29
## New Tools
30
30
- Updated for adventure mode: `gui/sandbox`, `gui/create-item`, `gui/reveal`
31
+ - `ghostly`: (reinstated) allow your adventurer to phase through walls
31
32
- `markdown`: (reinstated) export unit or item descriptions to a markdown text file
32
33
- `adaptation`: (reinstated) inspect or set unit cave adaptation levels
33
34
- `fix/engravings`: fix corrupt engraving tiles
Original file line number Diff line number Diff line change 3
3
4
4
.. dfhack-tool ::
5
5
:summary: Toggles an adventurer's ghost status.
6
- :tags: unavailable
6
+ :tags: adventure armok units
7
7
8
8
This is useful for walking through walls, avoiding attacks, or recovering after
9
9
a death.
Original file line number Diff line number Diff line change 1
- -- Turns an adventurer into a ghost or back
2
- --[====[
3
-
4
- ghostly
5
- =======
6
- Toggles an adventurer's ghost status. Useful for walking through walls, avoiding
7
- attacks, or recovering after a death.
8
-
9
- ]====]
10
-
11
- if df .global .gamemode ~= df .game_mode .ADVENTURE then
1
+ if not dfhack .world .isAdventureMode () then
12
2
qerror (' This script must be used in adventure mode' )
13
3
end
14
4
15
- local unit = df . global . world .units . active [ 0 ]
5
+ local unit = dfhack . world .getAdventurer ()
16
6
if unit then
17
7
if unit .flags1 .inactive then
18
8
unit .flags1 .inactive = false
You can’t perform that action at this time.
0 commit comments