summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-01 17:54:52 +0000
committerJesusaves <cpntb1@ymail.com>2020-02-01 17:54:52 +0000
commitbae7e9a5430c0df68cc7172995ddfde47169b484 (patch)
tree7e5cffabab48694b4af3202726312ec406e479c4
parent63068d47650898f292aea877ce797e11c3f3404f (diff)
downloadevol-hercules-bae7e9a5430c0df68cc7172995ddfde47169b484.tar.gz
evol-hercules-bae7e9a5430c0df68cc7172995ddfde47169b484.tar.bz2
evol-hercules-bae7e9a5430c0df68cc7172995ddfde47169b484.tar.xz
evol-hercules-bae7e9a5430c0df68cc7172995ddfde47169b484.zip
Extend SI table as needed for serverdata!222
(Original code from ML - Please blame Saulc if anything breaks)
-rw-r--r--src/ecommon/init.c2
-rw-r--r--src/emap/enum/esitype.h11
-rw-r--r--src/emap/status.c11
-rwxr-xr-xtools/vars.sh4
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}"