Skip to content

Commit 79364de

Browse files
authored
Update Lua API.rst - maps.isPlantInBox
1 parent b725fad commit 79364de

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/dev/Lua API.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,11 @@ Maps module
22982298

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

2301+
* ``dfhack.maps.isPlantInBox(plant,x1,y1,z1,x2,y2,z2)``
2302+
2303+
Returns true if the plant is within a box defined by the specified
2304+
coordinates, accounting for trees.
2305+
23012306
* ``dfhack.maps.getWalkableGroup(pos)``
23022307

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

0 commit comments

Comments
 (0)