|
@@ -1010,10 +1010,6 @@ bool pc_addfame(map_session_data &sd, int32 count)
|
|
{
|
|
{
|
|
enum e_rank ranktype;
|
|
enum e_rank ranktype;
|
|
|
|
|
|
- sd.status.fame += count;
|
|
|
|
- if (sd.status.fame > MAX_FAME)
|
|
|
|
- sd.status.fame = MAX_FAME;
|
|
|
|
-
|
|
|
|
switch(sd.class_&MAPID_UPPERMASK){
|
|
switch(sd.class_&MAPID_UPPERMASK){
|
|
case MAPID_BLACKSMITH: ranktype = RANK_BLACKSMITH; break;
|
|
case MAPID_BLACKSMITH: ranktype = RANK_BLACKSMITH; break;
|
|
case MAPID_ALCHEMIST: ranktype = RANK_ALCHEMIST; break;
|
|
case MAPID_ALCHEMIST: ranktype = RANK_ALCHEMIST; break;
|
|
@@ -1023,6 +1019,8 @@ bool pc_addfame(map_session_data &sd, int32 count)
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ sd.status.fame = cap_value( sd.status.fame + count, 0, MAX_FAME );
|
|
|
|
+
|
|
clif_update_rankingpoint(sd, ranktype, count);
|
|
clif_update_rankingpoint(sd, ranktype, count);
|
|
chrif_updatefamelist(sd, ranktype);
|
|
chrif_updatefamelist(sd, ranktype);
|
|
return true;
|
|
return true;
|