From 87ec1de891625e9dc68924c570ede0fe23b4b6b7 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 13 May 2012 13:58:41 +0400 Subject: Improve lua api for tile biome access. --- Lua API.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 846299a3..3e023ebd 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1026,7 +1026,7 @@ Returns false in case of error.

  • dfhack.maps.getTileBlock(coords), or getTileBlock(x,y,z)

    Returns a map block object for given df::coord or x,y,z in local tile coordinates.

  • -
  • dfhack.maps.getRegionBiome(region_coord2d)

    +
  • dfhack.maps.getRegionBiome(region_coord2d), or getRegionBiome(x,y)

    Returns the biome info struct for the given global map region.

  • dfhack.maps.enableBlockUpdates(block[,flow,temperature])

    @@ -1038,6 +1038,9 @@ Returns false in case of error.

  • dfhack.maps.getLocalInitFeature(region_coord2d,index)

    Returns the local feature object with the given region coords and index.

  • +
  • dfhack.maps.getTileBiomeRgn(coords), or getTileBiomeRgn(x,y,z)

    +

    Returns x, y for use with getRegionBiome.

    +
  • dfhack.maps.canWalkBetween(pos1, pos2)

    Checks if a dwarf may be able to walk between the two tiles, using a pathfinding cache maintained by the game. Note that -- cgit v1.2.1