Added "get_terrain_name" script function

Updated documents for the function.
Minor edits to other code.
This commit is contained in:
NovaRain
2022-06-14 21:04:51 +08:00
parent 7015db2414
commit 85e5da660b
15 changed files with 192 additions and 135 deletions
@@ -936,6 +936,12 @@ sfall_funcX metarule functions
`void sfall_func3("set_terrain_name", int x, int y, string name)`
- Overrides the terrain type name for the sub-tile on the world map by the specified coordinates
----
#### get_terrain_name
`string sfall_func0("get_terrain_name")`\
`string sfall_func2("get_terrain_name", int x, int y)`
- Returns the terrain type name for the sub-tile on the world map by the specified coordinates, or by the player's current position if called without arguments
----
#### get_window_attribute
`int sfall_func1("get_window_attribute", int winType)`\