summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-07 13:21:51 -0300
committershennetsind <ind@henn.et>2013-08-07 13:21:51 -0300
commit46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9 (patch)
treebd4c8c4bda9e95208eed294ad09a30e6fca37ba5 /src/common
parentc1dca647670c1b55bcd66c82958fcd8180115fac (diff)
downloadhercules-46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9.tar.gz
hercules-46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9.tar.bz2
hercules-46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9.tar.xz
hercules-46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9.zip
Fixed skill flagging (mostly related to SKILL_FLAG_REPLACED_LV_0 )
Adjusted value as to not conflict with the perm_granted flag Special Thanks to Wildcard, malufett. Also made pc_skillup rely on the change_level_2nd/3rd vars instead of hardcoded values, and added a pc_gainexp packetver check that'd otherwise cause map server warnings when within the range. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 34a79bbb2..a297d94d9 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -230,9 +230,11 @@ enum e_skill_flag
SKILL_FLAG_PERMANENT,
SKILL_FLAG_TEMPORARY,
SKILL_FLAG_PLAGIARIZED,
- SKILL_FLAG_REPLACED_LV_0, // Temporary skill overshadowing permanent skill of level 'N - SKILL_FLAG_REPLACED_LV_0',
+ SKILL_FLAG_UNUSED, /* needed to maintain the order since the values are saved, can be renamed and used if a new flag is necessary */
SKILL_FLAG_PERM_GRANTED, // Permanent, granted through someway (e.g. script).
- //...
+ /* */
+ /* MUST be the last, because with it the flag value stores a dynamic value (flag+lv) */
+ SKILL_FLAG_REPLACED_LV_0, // Temporary skill overshadowing permanent skill of level 'N - SKILL_FLAG_REPLACED_LV_0',
};
enum e_mmo_charstatus_opt {