diff --git a/docs/reveal-hidden-sites.rst b/docs/reveal-hidden-sites.rst index bf994db8ad..b0891094ac 100644 --- a/docs/reveal-hidden-sites.rst +++ b/docs/reveal-hidden-sites.rst @@ -3,12 +3,12 @@ reveal-hidden-sites .. dfhack-tool:: :summary: Reveal all sites in the world. - :tags: adventure fort armok map + :tags: adventure embark fort armok map This tool reveals all sites in the world that have yet to be discovered by the player (camps, lairs, shrines, vaults, etc), making them visible on the map. -It is usable in both fortress and adventure mode. +It is usable in both fortress and adventure mode, or on the embark map. Please see `reveal-adv-map` if you also want to expose hidden world map tiles in adventure mode. diff --git a/reveal-hidden-sites.lua b/reveal-hidden-sites.lua index 85c455afae..77e87f5129 100644 --- a/reveal-hidden-sites.lua +++ b/reveal-hidden-sites.lua @@ -1,26 +1,7 @@ --- Expose all undiscovered sites. --- author: Atomic Chicken - ---[====[ - -reveal-hidden-sites -=================== -This script reveals all sites in the world -that have yet to be discovered by the player -(camps, lairs, shrines, vaults, etc) -thus making them visible on the map. - -Usable in both fortress and adventure mode. - -See `reveal-adv-map` if you also want to expose -hidden world map tiles in adventure mode. - -]====] - local count = 0 for _, site in ipairs(df.global.world.world_data.sites) do - if site.flags.Undiscovered then - site.flags.Undiscovered = false + if site.flag.HIDDEN then + site.flag.HIDDEN = false count = count + 1 end end