summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-19 03:52:47 +0100
committerHaru <haru@dotalux.com>2013-11-19 03:52:47 +0100
commit972caf240b4b6a0f53f5ae74bde306678fab3d5e (patch)
treeb8fd53f8241d5eea866582ed51a4b199b68d534a
parent385e1e599f03703329e8b9114e8001ce19f15fa5 (diff)
downloadhercules-972caf240b4b6a0f53f5ae74bde306678fab3d5e.tar.gz
hercules-972caf240b4b6a0f53f5ae74bde306678fab3d5e.tar.bz2
hercules-972caf240b4b6a0f53f5ae74bde306678fab3d5e.tar.xz
hercules-972caf240b4b6a0f53f5ae74bde306678fab3d5e.zip
Added support for Max EquipLv in Pre-Renewal
- Follow-up to ed72a947a6c97804c1eef5b80bfa49d99f7d7586 - Max EquipLv is now observed, rather than ignored, in pre-renewal mode. Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/pc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a7cee80ee..02b4d0692 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -938,12 +938,10 @@ int pc_isequip(struct map_session_data *sd,int n)
clif->msg(sd, 0x6ED);
return 0;
}
-#ifdef RENEWAL
if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax){
clif->msg(sd, 0x6ED);
return 0;
}
-#endif
if(item->sex != 2 && sd->status.sex != item->sex)
return 0;
@@ -4317,12 +4315,10 @@ int pc_isUseitem(struct map_session_data *sd,int n)
return 0;
}
-#ifdef RENEWAL
if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax){
clif->msg(sd, 0x6EE);
return 0;
}
-#endif
//Not equipable by class. [Skotlex]
if (!(
@@ -5883,7 +5879,6 @@ int pc_checkbaselevelup(struct map_session_data *sd) {
}
void pc_baselevelchanged(struct map_session_data *sd) {
-#ifdef RENEWAL
int i;
for( i = 0; i < EQI_MAX; i++ ) {
if( sd->equip_index[i] >= 0 ) {
@@ -5891,9 +5886,8 @@ void pc_baselevelchanged(struct map_session_data *sd) {
pc->unequipitem(sd, sd->equip_index[i], 3);
}
}
-#endif
-
}
+
int pc_checkjoblevelup(struct map_session_data *sd)
{
unsigned int next = pc->nextjobexp(sd);