Edited the description of the functions in the previous commit

Rewrote ASM code for tile_under_cursor script function.
This commit is contained in:
NovaRain
2019-12-14 00:35:05 +08:00
parent 5e704d206f
commit 3b82232b46
4 changed files with 21 additions and 30 deletions
+4 -4
View File
@@ -596,12 +596,12 @@ optional arguments:
> array sfall_func3("objects_in_radius", int tile, int radius, int elevation)
> array sfall_func4("objects_in_radius", int tile, int radius, int elevation, int type)
- returns an array of objects of a type (see OBJ_TYPE_* constants in define_extra.h) within the specified radius from the given tile
- The radius is limited to 50 hexes
- passing -1 to the type argument or not specifying it will return all types of objects
- passing -1 to the type argument or not specifying it will return all objects within the radius
- the radius is limited to 50 hexes
> int sfall_func2("tile_by_position", int x, int y)
- returns the tile number at the x/y position relative to the top-left corner of the screen
- returns -1 if the position is outside of the screen
- returns the tile number at the x, y position relative to the top-left corner of the screen
- if the position is outside of the range of tiles, it will return -1
------------------------
------ MORE INFO -------