diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-10 03:23:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-10 03:23:36 +0300 |
commit | 4fcb7d5f3bd12d99a1183bf16a23f6b1f22195f2 (patch) | |
tree | 0453c6a184b6b9812050f74e0d25c9e31a697060 /src/emap/status.c | |
parent | 7590c2d05be13837a7c46d271f500f637a3d555f (diff) | |
download | evol-hercules-4fcb7d5f3bd12d99a1183bf16a23f6b1f22195f2.tar.gz evol-hercules-4fcb7d5f3bd12d99a1183bf16a23f6b1f22195f2.tar.bz2 evol-hercules-4fcb7d5f3bd12d99a1183bf16a23f6b1f22195f2.tar.xz evol-hercules-4fcb7d5f3bd12d99a1183bf16a23f6b1f22195f2.zip |
Add bit field 0x100 into sc_config.txt for allow see sc effect for all players.
Also move status based enums into separate files.
And add sc shield into constants.
Diffstat (limited to 'src/emap/status.c')
-rw-r--r-- | src/emap/status.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/emap/status.c b/src/emap/status.c index ee45ab2..1e75161 100644 --- a/src/emap/status.c +++ b/src/emap/status.c @@ -34,6 +34,9 @@ #include "emap/struct/itemdext.h" #include "emap/struct/npcdext.h" +#include "emap/enum/esctype.h" +#include "emap/enum/esitype.h" + int class_move_speed[CLASS_COUNT]; void eInitChangeTables(void) @@ -42,6 +45,8 @@ void eInitChangeTables(void) (sc_type)SC_PHYSICAL_SHIELD, SI_PHYSICAL_SHIELD, SCB_DEF | SCB_DEF2 | SCB_ASPD); + +// status->dbs->DisplayType[SC_PHYSICAL_SHIELD] = true; } int estatus_init_post(int retVal, @@ -241,3 +246,24 @@ int estatus_change_end__post(int retVal, */ return retVal; } + +bool estatus_readdb_scconfig_post(bool retVal, + char* fields[], + int columns, + int current) +{ + if (retVal == true) + { + char *type = fields[0]; + int val = 0; + script->get_constant(type, &val); + // own field in sc_config.txt + if (status->dbs->sc_conf[val] & 0x100) + { + // allow show this sc always + status->dbs->DisplayType[val] = true; + } + } + + return retVal; +} |