|
@@ -3045,7 +3045,12 @@ void pc_bonus(struct map_session_data *sd,int type,int val)
|
|
|
sd->bonus.weapon_matk_rate += val;
|
|
|
break;
|
|
|
default:
|
|
|
- ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
|
|
|
+ if (running_npc_stat_calc_event) {
|
|
|
+ ShowWarning("pc_bonus: unknown bonus type %d %d in OnPCStatCalcEvent!\n", type, val);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ShowWarning("pc_bonus: unknown bonus type %d %d in item #%d\n", type, val, current_equip_card_id ? current_equip_card_id : sd->inventory_data[current_equip_item_index]->nameid);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -3692,7 +3697,12 @@ void pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
|
|
|
sd->ignore_mdef_by_race2[type2] += val;
|
|
|
break;
|
|
|
default:
|
|
|
- ShowWarning("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);
|
|
|
+ if (running_npc_stat_calc_event) {
|
|
|
+ ShowWarning("pc_bonus2: unknown bonus type %d %d %d in OnPCStatCalcEvent!\n", type, type2, val);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ShowWarning("pc_bonus2: unknown bonus type %d %d %d in item #%d\n", type, type2, val, current_equip_card_id ? current_equip_card_id : sd->inventory_data[current_equip_item_index]->nameid);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -3807,7 +3817,12 @@ void pc_bonus3(struct map_session_data *sd,int type,int type2,int type3,int val)
|
|
|
sd->norecover_state_race[type2].tick = val;
|
|
|
break;
|
|
|
default:
|
|
|
- ShowWarning("pc_bonus3: unknown type %d %d %d %d!\n",type,type2,type3,val);
|
|
|
+ if (running_npc_stat_calc_event) {
|
|
|
+ ShowWarning("pc_bonus3: unknown bonus type %d %d %d %d in OnPCStatCalcEvent!\n", type, type2, type3, val);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ShowWarning("pc_bonus3: unknown bonus type %d %d %d %d in item #%d\n", type, type2, type3, val, current_equip_card_id ? current_equip_card_id : sd->inventory_data[current_equip_item_index]->nameid);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -3882,7 +3897,12 @@ void pc_bonus4(struct map_session_data *sd,int type,int type2,int type3,int type
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
- ShowWarning("pc_bonus4: unknown type %d %d %d %d %d!\n",type,type2,type3,type4,val);
|
|
|
+ if (running_npc_stat_calc_event) {
|
|
|
+ ShowWarning("pc_bonus4: unknown bonus type %d %d %d %d %d in OnPCStatCalcEvent!\n", type, type2, type3, type4, val);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ShowWarning("pc_bonus4: unknown bonus type %d %d %d %d %d in item #%d\n", type, type2, type3, type4, val, current_equip_card_id ? current_equip_card_id : sd->inventory_data[current_equip_item_index]->nameid);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -3923,7 +3943,12 @@ void pc_bonus5(struct map_session_data *sd,int type,int type2,int type3,int type
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
- ShowWarning("pc_bonus5: unknown type %d %d %d %d %d %d!\n",type,type2,type3,type4,type5,val);
|
|
|
+ if (running_npc_stat_calc_event) {
|
|
|
+ ShowWarning("pc_bonus5: unknown bonus type %d %d %d %d %d %d in OnPCStatCalcEvent!\n", type, type2, type3, type4, type5, val);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ShowWarning("pc_bonus5: unknown bonus type %d %d %d %d %d %d in item #%d\n", type, type2, type3, type4, type5, val, current_equip_card_id ? current_equip_card_id : sd->inventory_data[current_equip_item_index]->nameid);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|