From 46a6fdb7374f5fe9301b9d23289f563c6f7fb4f9 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 7 Aug 2013 13:21:51 -0300 Subject: 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 --- src/common/mmo.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/common') 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 { -- cgit v1.2.3-70-g09d2