Модификаторы отдают 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: case self::ITEM_TYPE_BELT:
$this->typename = 'Пояс'; $this->typename = 'Пояс';
break; break;
case 9: case self::ITEM_TYPE_RING:
case 10:
case 11:
$this->typename = 'Кольцо'; $this->typename = 'Кольцо';
break; break;
case 12: case self::ITEM_TYPE_AMULET:
$this->typename = 'Амулет'; $this->typename = 'Амулет';
break; break;
case self::ITEM_TYPE_CONSUMABLE:
$this->typename = 'Расходуемый предмет';
break;
default: default:
$this->typename = 'Хлам'; $this->typename = 'Хлам';
} }

View File

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