В базе больше нет null ячеек.

This commit is contained in:
lopar 2021-08-23 00:57:58 +03:00
parent 9adc63eae8
commit c3cfc4ff22
1 changed files with 22 additions and 22 deletions

View File

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