mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
WorldMapHealingRatePatch & set_world_map_heal_time metarule (#539)
Fixes bug: healing time on worldmap is tied to real time clock, instead of game time.
This commit is contained in:
@@ -1427,6 +1427,14 @@
|
||||
detail: void set_rest_heal_time(int time)
|
||||
doc: 'Sets the time interval in minutes for healing during resting. The default is 180. Note: The interval will be reset each time the player reloads the game.'
|
||||
macro: sfall.h
|
||||
- name: set_worldmap_heal_time
|
||||
detail: void set_worldmap_heal_time(int time)
|
||||
doc: |
|
||||
Sets the time interval in minutes for healing during worldmap travel.
|
||||
- passing 0 will revert to 1 second per real time (vanilla behavior)
|
||||
- passing -1 will disable healing during travel
|
||||
- the interval will be reset each time the player reloads the game
|
||||
macro: sfall.h
|
||||
- name: set_rest_mode
|
||||
detail: void set_rest_mode(int flags)
|
||||
doc: 'Sets the bit flags for the rest mode (see `RESTMODE_*` constants in **sfall.h**). Passing 0 will reset the rest mode. It will also be reset each time the player reloads the game.'
|
||||
|
||||
@@ -395,6 +395,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")
|
||||
|
||||
Reference in New Issue
Block a user