diff --git a/classes/Battles/ShopItem.php b/classes/Battles/ShopItem.php index 253793f..f9eff70 100644 --- a/classes/Battles/ShopItem.php +++ b/classes/Battles/ShopItem.php @@ -23,28 +23,28 @@ class ShopItem extends Item image, weight, price) select ?, - ifnull(name,\'Неизвестный предмет\'), - ifnull(item_type,0), - ifnull(durability, 1), - ifnull(need_strength, 0), - ifnull(need_dexterity, 0), - ifnull(need_intuition, 0), - ifnull(need_endurance, 0), - ifnull(need_intelligence, 0), - ifnull(need_wisdom, 0), - ifnull(add_strength, 0), - ifnull(add_dexterity, 0), - ifnull(add_intuition, 0), - ifnull(add_endurance, 0), - ifnull(add_intelligence, 0), - ifnull(add_wisdom, 0), - ifnull(add_accuracy, 0), - ifnull(add_evasion, 0), - ifnull(add_criticals, 0), - ifnull(add_min_physical_damage, 0), - ifnull(add_max_physical_damage, 0), - ifnull(image, \'noitem.png\'), - ifnull(weight, 1), + name, + item_type, + durability, + need_strength, + need_dexterity, + need_intuition, + need_endurance, + need_intelligence, + need_wisdom, + add_strength, + add_dexterity, + add_intuition, + add_endurance, + add_intelligence, + add_wisdom, + add_accuracy, + add_evasion, + add_criticals, + add_min_physical_damage, + add_max_physical_damage, + image, + weight, greatest( ( (add_strength + add_dexterity + add_intuition + add_endurance + add_intelligence + add_wisdom) *