Skip to content

Commit 8f561a9

Browse files
committed
ajust code to use new field names
1 parent 3d79df3 commit 8f561a9

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

docs/reveal-hidden-sites.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ reveal-hidden-sites
33

44
.. dfhack-tool::
55
:summary: Reveal all sites in the world.
6-
:tags: adventure fort armok map
6+
:tags: adventure embark fort armok map
77

88
This tool reveals all sites in the world that have yet to be discovered by the
99
player (camps, lairs, shrines, vaults, etc), making them visible on the map.
1010

11-
It is usable in both fortress and adventure mode.
11+
It is usable in both fortress and adventure mode, or on the embark map.
1212

1313
Please see `reveal-adv-map` if you also want to expose hidden world map tiles in
1414
adventure mode.

reveal-hidden-sites.lua

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
1-
-- Expose all undiscovered sites.
2-
-- author: Atomic Chicken
3-
4-
--[====[
5-
6-
reveal-hidden-sites
7-
===================
8-
This script reveals all sites in the world
9-
that have yet to be discovered by the player
10-
(camps, lairs, shrines, vaults, etc)
11-
thus making them visible on the map.
12-
13-
Usable in both fortress and adventure mode.
14-
15-
See `reveal-adv-map` if you also want to expose
16-
hidden world map tiles in adventure mode.
17-
18-
]====]
19-
201
local count = 0
212
for _, site in ipairs(df.global.world.world_data.sites) do
22-
if site.flags.Undiscovered then
23-
site.flags.Undiscovered = false
3+
if site.flag.HIDDEN then
4+
site.flag.HIDDEN = false
245
count = count + 1
256
end
267
end

0 commit comments

Comments
 (0)