Skip to content

Commit

Permalink
Update Lua API.rst - maps.isPlantInBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumber64 authored Sep 20, 2024
1 parent b725fad commit 79364de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,11 @@ Maps module

Returns the plant struct that owns the tile at the specified position.

* ``dfhack.maps.isPlantInBox(plant,x1,y1,z1,x2,y2,z2)``

Returns true if the plant is within a box defined by the specified
coordinates, accounting for trees.

* ``dfhack.maps.getWalkableGroup(pos)``

Returns the walkability group for the given tile position. A return value
Expand Down

0 comments on commit 79364de

Please sign in to comment.