Модификаторы отдают 0, если пустые.

This commit is contained in:
lopar 2020-08-29 15:42:08 +03:00
parent 68ec1c117f
commit 6fd015058c
2 changed files with 8 additions and 7 deletions

View File

@ -79,14 +79,15 @@ abstract class Item
case self::ITEM_TYPE_BELT:
$this->typename = 'Пояс';
break;
case 9:
case 10:
case 11:
case self::ITEM_TYPE_RING:
$this->typename = 'Кольцо';
break;
case 12:
case self::ITEM_TYPE_AMULET:
$this->typename = 'Амулет';
break;
case self::ITEM_TYPE_CONSUMABLE:
$this->typename = 'Расходуемый предмет';
break;
default:
$this->typename = 'Хлам';
}

View File

@ -743,9 +743,9 @@ try {
<?php endif; ?>
<br>
Здоровье: <?= $showUser->getHealth() ?><br>
Уворот: ?? + <?= $getItemsBonuses->getEvasionBonus() ?><br>
Точность: ?? + <?= $getItemsBonuses->getAccuracyBonus() ?><br>
Шанс крита: ?? + <?= $getItemsBonuses->getCriticalsBonus() ?><br>
Уворот: <?= $getItemsBonuses->getEvasionBonus() ?><br>
Точность: <?= $getItemsBonuses->getAccuracyBonus() ?><br>
Шанс крита: <?= $getItemsBonuses->getCriticalsBonus() ?><br>
Урон: <?= $showUser->minDamage + $getItemsBonuses->getMinPhysDamage() ?> - <?= $showUser->maxDamage + $getItemsBonuses->getMaxPhysDamage()?> <br>
<br>
<div style="color: gray;">