From bae7e9a5430c0df68cc7172995ddfde47169b484 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Feb 2020 17:54:52 +0000 Subject: Extend SI table as needed for serverdata!222 (Original code from ML - Please blame Saulc if anything breaks) --- src/ecommon/init.c | 2 +- src/emap/enum/esitype.h | 11 +++++++++++ src/emap/status.c | 11 +++++++++++ tools/vars.sh | 4 ++-- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/ecommon/init.c b/src/ecommon/init.c index 753fcf1..bcd68d1 100644 --- a/src/ecommon/init.c +++ b/src/ecommon/init.c @@ -52,7 +52,7 @@ void common_online(void) checkVar(MAX_SKILL_DB, 1532); checkVar(MAX_SKILL_ID, 20022); checkVar(SC_MAX, 658); - checkVar(SI_MAX, 971); + checkVar(SI_MAX, 991); checkVar(OLD_MAX_SKILL_DB, 1510); checkVar(MAX_EVOL_SKILLS, 22); checkVar(EVOL_FIRST_SKILL, 20000); diff --git a/src/emap/enum/esitype.h b/src/emap/enum/esitype.h index d1213ad..2791bd4 100644 --- a/src/emap/enum/esitype.h +++ b/src/emap/enum/esitype.h @@ -7,6 +7,17 @@ enum esi_type { SI_PHYSICAL_SHIELD = 966, + //SI_EVOL_INCSTR = 970, + SI_EVOL_INCAGI = 971, + SI_EVOL_INCVIT = 972, + SI_EVOL_INCINT = 973, + SI_EVOL_INCDEX = 974, + SI_EVOL_INCLUK = 975, + SI_EVOL_INCHIT = 976, + SI_EVOL_INCFLEE = 977, + SI_EVOL_WALKSPEED = 978, + SI_EVOL_INCMHPRATE = 979, + SI_EVOL_INCMSPRATE = 980, }; #endif // EVOL_MAP_ENUM_ESITYPE diff --git a/src/emap/status.c b/src/emap/status.c index 636a620..8dafaab 100644 --- a/src/emap/status.c +++ b/src/emap/status.c @@ -46,6 +46,17 @@ void eInitChangeTables(void) SI_PHYSICAL_SHIELD, SCB_DEF | SCB_DEF2 | SCB_ASPD); + status->dbs->IconChangeTable[SC_INCAGI] = SI_EVOL_INCAGI; + status->dbs->IconChangeTable[SC_INCVIT] = SI_EVOL_INCVIT; + status->dbs->IconChangeTable[SC_INCINT] = SI_EVOL_INCINT; + status->dbs->IconChangeTable[SC_INCDEX] = SI_EVOL_INCDEX; + status->dbs->IconChangeTable[SC_INCLUK] = SI_EVOL_INCLUK; + + status->dbs->IconChangeTable[SC_INCHIT] = SI_EVOL_INCHIT; + status->dbs->IconChangeTable[SC_INCFLEE] = SI_EVOL_INCFLEE; + status->dbs->IconChangeTable[SC_WALKSPEED] = SI_EVOL_WALKSPEED; + status->dbs->IconChangeTable[SC_INCMHPRATE] = SI_EVOL_INCMHPRATE; + status->dbs->IconChangeTable[SC_INCMSPRATE] = SI_EVOL_INCMSPRATE; // status->dbs->DisplayType[SC_PHYSICAL_SHIELD] = true; } diff --git a/tools/vars.sh b/tools/vars.sh index f232eca..30cb07a 100755 --- a/tools/vars.sh +++ b/tools/vars.sh @@ -3,7 +3,7 @@ # MAX_SKILL_DB 1510 + 22 = 1532 # MAX_SKILL_ID 10015 + 22 + 9963 = 20022 # SC_MAX 653 + 5 = 658 -# SI_MAX 966 + 5 = 971 +# SI_MAX 966 + 25 = 991 # MAX_EVOL_SKILLS 22 # EVOL_FIRST_SKILL 20000 # OLD_MAX_SKILL_DB 1510 @@ -11,5 +11,5 @@ # can be used for custom skill id: 10016 - 10036 -export VARS=" -DOLD_MAX_SKILL_DB=1510 -DMAX_SKILL_DB=1532 -DMAX_SKILL_ID=20022 -DMAX_EVOL_SKILLS=22 -DEVOL_FIRST_SKILL=20000 -DMAX_SKILL_TREE=110 -DSC_MAX=658 -DSI_MAX=971 -DBASE_GUILD_SIZE=100 -DMIN_PACKET_DB=0x63 -DMAX_PACKET_DB=0x7531" +export VARS=" -DOLD_MAX_SKILL_DB=1510 -DMAX_SKILL_DB=1532 -DMAX_SKILL_ID=20022 -DMAX_EVOL_SKILLS=22 -DEVOL_FIRST_SKILL=20000 -DMAX_SKILL_TREE=110 -DSC_MAX=658 -DSI_MAX=991 -DBASE_GUILD_SIZE=100 -DMIN_PACKET_DB=0x63 -DMAX_PACKET_DB=0x7531" export CPPFLAGS="${VARS}" -- cgit v1.2.3-70-g09d2