diff --git a/src/map/pc.cpp b/src/map/pc.cpp index f6d0044084..f0327b1e33 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3087,9 +3087,6 @@ static void pc_bonus_autospell(std::vector &spell, uint16 id, uint1 struct s_autospell entry = {}; - if (rate < -1000 || rate > 1000) - ShowWarning("pc_bonus_autospell: Item bonus rate %d exceeds -1000~1000 range, capping.\n", rate); - entry.id = id; entry.lv = lv; entry.rate = cap_value(rate, -1000, 1000); @@ -3124,9 +3121,6 @@ static void pc_bonus_autospell_onskill(std::vector &spell, uint16 s struct s_autospell entry = {}; - if (rate < -1000 || rate > 1000) - ShowWarning("pc_bonus_onskill: Item bonus rate %d exceeds -1000~1000 range, capping.\n", rate); - entry.trigger_skill = src_skill; entry.id = id; entry.lv = lv; @@ -3275,9 +3269,6 @@ static void pc_bonus_item_drop(std::vector &drop, t_itemid nameid, u struct s_add_drop entry = {}; - if (rate < -10000 || rate > 10000) - ShowWarning("pc_bonus_item_drop: Item bonus rate %d exceeds -10000~10000 range, capping.\n", rate); - entry.nameid = nameid; entry.group = group; entry.race = race; @@ -3485,9 +3476,6 @@ static void pc_bonus_addele(map_session_data* sd, unsigned char ele, short rate, struct s_addele2 entry = {}; - if (rate < -10000 || rate > 10000) - ShowWarning("pc_bonus_addele: Item bonus rate %d exceeds -10000~10000 range, capping.\n", rate); - entry.ele = ele; entry.rate = cap_value(rate, -10000, 10000); entry.flag = flag; @@ -3531,9 +3519,6 @@ static void pc_bonus_subele(map_session_data* sd, unsigned char ele, short rate, struct s_addele2 entry = {}; - if (rate < -10000 || rate > 10000) - ShowWarning("pc_bonus_subele: Item bonus rate %d exceeds -10000~10000 range, capping.\n", rate); - entry.ele = ele; entry.rate = cap_value(rate, -10000, 10000); entry.flag = flag; @@ -3575,9 +3560,6 @@ static void pc_bonus_subrace(map_session_data* sd, unsigned char race, short rat struct s_addrace2 entry = {}; - if (rate < -10000 || rate > 10000) - ShowWarning("pc_bonus_subrace: Item bonus rate %d exceeds -10000~10000 range, capping.\n", rate); - entry.race = race; entry.rate = cap_value(rate, -10000, 10000); entry.flag = flag; @@ -3605,13 +3587,8 @@ static void pc_bonus_itembonus(std::vector &bonus, uint16 id, int struct s_item_bonus entry = {}; - if (cap_rate && (val < -10000 || val > 10000)) { - ShowWarning("pc_bonus_itembonus: Item bonus val %d exceeds -10000~10000 range, capping.\n", val); - val = cap_value(val, -10000, 10000); - } - entry.id = id; - entry.val = val; + entry.val = cap_value(val, -10000, 10000); bonus.push_back(entry); } @@ -3650,9 +3627,6 @@ static void pc_bonus_addvanish(std::vector &bonus, int16 rate, i struct s_vanish_bonus entry = {}; - if (rate < -10000 || rate > 10000) - ShowWarning("pc_bonus_addvanish: Item bonus rate %d exceeds -10000~10000 range, capping.\n", rate); - entry.rate = cap_value(rate, -10000, 10000); entry.per = per; entry.flag = flag;