Added a function extension for vanilla metarule3 function

Added SET_HORRIGAN_ENCOUNTER function to metarule3.
Updated German translation.
This commit is contained in:
NovaRain
2020-07-24 21:20:48 +08:00
parent 29da941582
commit deaaf6a137
10 changed files with 165 additions and 4 deletions
+11 -3
View File
@@ -262,8 +262,8 @@
#define party_member_list_all party_member_list(1)
// fake perks/traits add mode flags
#define ADD_PERK_MODE_TRAIT (1) // add to the player's traits
#define ADD_PERK_MODE_PERK (2) // add to the player's perks
#define ADD_PERK_MODE_TRAIT (1) // add to the player's traits list
#define ADD_PERK_MODE_PERK (2) // add to the player's perks list
#define ADD_PERK_MODE_REMOVE (4) // remove from the list of selectable perks (after added to the player)
// instantly apply the item to dude_obj (w/o animation)
@@ -277,7 +277,15 @@
if (get_flags(obj1) bwand FLAG_MULTIHEX) distance--; \
if (get_flags(obj2) bwand FLAG_MULTIHEX) distance--
// sfall_funcX macros
/* sfall metalure3 function macros */
#define SET_HORRIGAN_ENCOUNTER (200)
// sets the number of days (range 1...127) for the Frank Horrigan encounter, or disable the encounter if days is set to 0
#define set_horrigan_days(day) metarule3(SET_HORRIGAN_ENCOUNTER, day, 0, 0)
/* sfall_funcX macros */
#define add_extra_msg_file(name) sfall_func1("add_extra_msg_file", name)
#define add_global_timer_event(time, fixedParam) sfall_func2("add_g_timer_event", time, fixedParam)
#define add_iface_tag sfall_func0("add_iface_tag")