From 1f2cdf0efd7543b50fcd6e04df495e82e860d6de Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 25 Apr 2020 14:45:24 -0400 Subject: expose the GENDER enum to the script engine --- src/emap/script.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/emap/script.c b/src/emap/script.c index 236461b..00d26e6 100644 --- a/src/emap/script.c +++ b/src/emap/script.c @@ -17,6 +17,8 @@ #include "plugins/HPMHooking.h" +#include "ecommon/enum/gender.h" + #include "emap/script.h" #include "emap/map.h" #include "emap/data/itemd.h" @@ -88,6 +90,12 @@ void escript_hardcoded_constants_pre(void) { script->constdb_comment("Evol constants"); script->set_constant("MAX_SLOTS", MAX_SLOTS, false, false); + + // genders: for use with the Sex param + script->set_constant("Gender", SP_SEX, true, false); + script->set_constant("GENDER_FEMALE", GENDER_FEMALE, false, false); + script->set_constant("GENDER_MALE", GENDER_MALE, false, false); + script->set_constant("GENDER_NONBINARY", GENDER_NONBINARY, false, false); script->constdb_comment(NULL); eskill_addskill_conststants(); } -- cgit v1.2.3-60-g2f50