summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlipp <mysteriousragnarok@hotmail.com>2013-10-27 07:10:20 -0700
committerFlipp <mysteriousragnarok@hotmail.com>2013-10-27 07:10:20 -0700
commite6a1225802e01ad5390c033ca7a4653c1a976c24 (patch)
tree1f23c3d7c4a1ba72604d097840aa1e990eb6cf69 /src
parent5dc1c33df515eac4eca7a7d8525ed67f4bda4af3 (diff)
parentda1f16b2b5f42006c252496f2ffa02266008a833 (diff)
downloadhercules-e6a1225802e01ad5390c033ca7a4653c1a976c24.tar.gz
hercules-e6a1225802e01ad5390c033ca7a4653c1a976c24.tar.bz2
hercules-e6a1225802e01ad5390c033ca7a4653c1a976c24.tar.xz
hercules-e6a1225802e01ad5390c033ca7a4653c1a976c24.zip
Merge pull request #208 from Jedzkie/master
Added full support on Moon Star and Super Star items Thanks to Jedzkie and idathena
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c7
-rw-r--r--src/map/status.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 70cc3bccf..9e98b2801 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -906,6 +906,8 @@ void initChangeTables(void) {
status->IconChangeTable[SC_REBOUND] = SI_REBOUND;
status->IconChangeTable[SC_ALL_RIDING] = SI_ALL_RIDING;
status->IconChangeTable[SC_MONSTER_TRANSFORM] = SI_MONSTER_TRANSFORM;
+ status->IconChangeTable[SC_MOONSTAR] = SI_MOONSTAR;
+ status->IconChangeTable[SC_SUPER_STAR] = SI_SUPER_STAR;
//Other SC which are not necessarily associated to skills.
status->ChangeFlagTable[SC_ATTHASTE_POTION1] = SCB_ASPD;
@@ -995,6 +997,9 @@ void initChangeTables(void) {
status->ChangeFlagTable[SC_MTF_MATK] = SCB_MATK;
status->ChangeFlagTable[SC_MTF_MLEATKED] |= SCB_ALL;
+ status->ChangeFlagTable[SC_MOONSTAR] |= SCB_NONE;
+ status->ChangeFlagTable[SC_SUPER_STAR] |= SCB_NONE;
+
/* status->DisplayType Table [Ind/Hercules] */
status->DisplayType[SC_ALL_RIDING] = true;
status->DisplayType[SC_PUSH_CART] = true;
@@ -1019,6 +1024,8 @@ void initChangeTables(void) {
status->DisplayType[SC__SHADOWFORM] = true;
status->DisplayType[SC__MANHOLE] = true;
status->DisplayType[SC_MONSTER_TRANSFORM] = true;
+ status->DisplayType[SC_MOONSTAR] = true;
+ status->DisplayType[SC_SUPER_STAR] = true;
#ifdef RENEWAL_EDP
// renewal EDP increases your weapon atk
diff --git a/src/map/status.h b/src/map/status.h
index 9edf29d2c..254f3bfab 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -677,6 +677,9 @@ typedef enum sc_type {
SC_MTF_MLEATKED,
SC_MTF_CRIDAMAGE,
+ SC_MOONSTAR,
+ SC_SUPER_STAR,
+
SC_MAX, //Automatically updated max, used in for's to check we are within bounds.
} sc_type;
// Official status change ids, used to display status icons on the client.