Skip to content

Instantly share code, notes, and snippets.

@billw2012
Created August 27, 2018 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billw2012/a140887360c1c01de97b9a39f4740a5b to your computer and use it in GitHub Desktop.
Save billw2012/a140887360c1c01de97b9a39f4740a5b to your computer and use it in GitHub Desktop.
Reveal all undiscovered caves after embark.
-- 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