mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added patch for healing time on worldmap and set_world_map_heal_time
* the time interval check is tied to real time clock, instead of game time.
This commit is contained in:
@@ -392,6 +392,7 @@
|
||||
#define set_unique_id(obj) sfall_func1("set_unique_id", obj)
|
||||
#define set_unjam_locks_time(time) sfall_func1("set_unjam_locks_time", time)
|
||||
#define set_window_flag(winID, flag, value) sfall_func3("set_window_flag", winID, flag, value)
|
||||
#define set_worldmap_heal_time(time) sfall_func1("set_worldmap_heal_time", time)
|
||||
#define show_win sfall_func0("show_window")
|
||||
#define show_window(winName) sfall_func1("show_window", winName)
|
||||
#define signal_close_game sfall_func0("signal_close_game")
|
||||
|
||||
@@ -606,7 +606,7 @@ int ret0 - pass 1 at the start of turn to skip the turn, pass -1 at the end
|
||||
|
||||
#### `HOOK_CARTRAVEL (hs_cartravel.int)`
|
||||
|
||||
Runs continuously during worldmap travel on car.
|
||||
Runs continuously during world map travel by car.
|
||||
|
||||
```
|
||||
int arg0 - vanilla car speed (between 3 and 8 "steps")
|
||||
|
||||
@@ -1132,6 +1132,14 @@ sfall_funcX metarule functions
|
||||
- `frame`: frame number, the first frame starts from zero
|
||||
- `rotation`: rotation to get the frame for, useful when reading FRM files by path
|
||||
|
||||
----
|
||||
#### set_worldmap_heal_time
|
||||
`void sfall_func1("set_worldmap_heal_time", int minutes)`
|
||||
- Sets the time interval in minutes for healing during world map travel
|
||||
- Passing 0 will revert to 1 second in real time (vanilla engine behavior)
|
||||
- Passing -1 will disable healing during travel
|
||||
- The time interval will be reset each time the player reloads the game
|
||||
|
||||
|
||||
****
|
||||
_See other documentation files (arrays.md, hookscripts.md) for related functions reference._
|
||||
|
||||
Reference in New Issue
Block a user