Created
August 27, 2018 17:24
-
-
Save billw2012/a140887360c1c01de97b9a39f4740a5b to your computer and use it in GitHub Desktop.
Reveal all undiscovered caves after embark.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Reveal all cave sites after embark | |
-- by billw | |
--[====[ | |
reveal-caves | |
========= | |
Reveal all undiscovered cave sites. | |
]====] | |
local sites = df.global.world.world_data.sites | |
for _,site in ipairs(sites) do | |
if site.type == df.world_site_type.Cave then | |
local name = dfhack.TranslateName(site.name) | |
if site.flags.Undiscovered then | |
print(name .. " is now known to your people.") | |
site.flags.Undiscovered = false | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment