Added "add_trait" script function

This commit is contained in:
NovaRain
2019-10-20 19:29:19 +08:00
parent 1f156d39ae
commit 9f27c160ff
7 changed files with 29 additions and 3 deletions
+1
View File
@@ -250,6 +250,7 @@
// sfall_funcX macros
#define add_extra_msg_file(name) sfall_func1("add_extra_msg_file", name)
#define add_iface_tag sfall_func0("add_iface_tag")
#define add_trait(traitId) sfall_func1("add_trait", traitId)
#define art_cache_clear sfall_func0("art_cache_clear")
#define attack_is_aimed sfall_func0("attack_is_aimed")
#define car_gas_amount sfall_func0("car_gas_amount")
@@ -627,6 +627,9 @@ optional argument:
- can take off player's equipped item when the inventory is opened, or the player is in the barter screen
- slot: 0 - armor slot, 1 - right slot, 2 - left slot (see INVEN_TYPE_* in define.h)
> void sfall_func1("add_trait", int traitId)
- adds the specified trait to the player
------------------------
------ MORE INFO -------
------------------------