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:29:54 +08:00
parent 37e3ccb410
commit 9e79b01a27
10 changed files with 147 additions and 4 deletions
+11 -3
View File
@@ -234,8 +234,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)
@@ -249,7 +249,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_global_timer_event(time, fixedParam) sfall_func2("add_g_timer_event", time, fixedParam)
#define add_iface_tag sfall_func0("add_iface_tag")
#define add_trait(traitID) sfall_func1("add_trait", traitID)
+1 -1
View File
@@ -1,6 +1,6 @@
[sfall]
SaveInCombat=Momentan kein Speichern möglich.
KarmaGain=Du gewinnst %d Karma.
KarmaGain=Du erhältst %d Karma.
KarmaLoss=Du verlierst %d Karma.
HighlightFail1=Du trägst keinen Bewegungssensor.
HighlightFail2=Dein Bewegungssensor ist entladen.