Added "add_trait" script function

Replaced some C-style casting with pre-defined ptr_* variables.
This commit is contained in:
NovaRain
2019-10-20 19:31:08 +08:00
parent ac10bce231
commit 3ef6056a77
12 changed files with 45 additions and 20 deletions
+1
View File
@@ -224,6 +224,7 @@
#define ADD_PERK_MODE_REMOVE (4) // remove from the list of selectable perks
// sfall_funcX macros
#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 create_win(winName, x, y, w, h) sfall_func5("create_win", winName, x, y, w, h)