From 972caf240b4b6a0f53f5ae74bde306678fab3d5e Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 19 Nov 2013 03:52:47 +0100 Subject: 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 --- src/map/pc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/map/pc.c') 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); -- cgit v1.2.3-60-g2f50