This file contains 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
-- changes from advmode to fort safely (hopefully) | |
if df.global.gamemode==df.game_mode.ADVENTURE then | |
local adv=df.global.world.units.active[0] | |
local ui=df.global.ui | |
function advGlobalPos() | |
local wd=df.global.world.world_data | |
return wd.adv_region_x*16+wd.adv_emb_x,wd.adv_region_y*16+wd.adv_emb_y | |
end | |
function inSite() | |
local tx,ty=advGlobalPos() |