From 60bb486abac5d79f0fc9053739b6ec52dfa8519f Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 12 May 2012 20:12:09 +0400 Subject: Add api for enabling liquid and temperature updates for blocks. Now updates also have to be enabled for the z level to work. --- Lua API.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 7aa8e651..b6242712 100644 --- a/Lua API.html +++ b/Lua API.html @@ -912,6 +912,12 @@ The is_bright boolean actually seems to invert the brightness.

  • dfhack.job.getWorker(job)

    Returns the unit performing the job.

  • +
  • dfhack.job.checkBuildingsNow()

    +

    Instructs the game to check buildings for jobs next frame and assign workers.

    +
  • +
  • dfhack.job.checkDesignationsNow()

    +

    Instructs the game to check designations for jobs next frame and assign workers.

    +
  • dfhack.job.is_equal(job1,job2)

    Compares important fields in the job and nested item structures.

  • @@ -1023,6 +1029,9 @@ Returns false in case of error.

  • dfhack.maps.getRegionBiome(region_coord2d)

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

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

    +

    Enables updates for liquid flow or temperature, unless already active.

    +
  • dfhack.maps.getGlobalInitFeature(index)

    Returns the global feature object with the given index.

  • -- cgit v1.2.1