diff --git a/classes/DressedItems.php b/classes/DressedItems.php
index a1e0b4e..75d0dc9 100644
--- a/classes/DressedItems.php
+++ b/classes/DressedItems.php
@@ -104,15 +104,23 @@ SQL;
}
public function getAccuracyBonus()
{
- return self::getBonuses()['sum_accuracy'];
+ return self::getBonuses()['sum_accuracy'] ?? 0;
}
public function getEvasionBonus()
{
- return self::getBonuses()['sum_evasion'];
+ return self::getBonuses()['sum_evasion'] ?? 0;
}
public function getCriticalsBonus()
{
- return self::getBonuses()['sum_criticals'];
+ return self::getBonuses()['sum_criticals'] ?? 0;
+ }
+ public function getMinPhysDamage()
+ {
+ return self::getBonuses()['sum_min_phys_damage'];
+ }
+ public function getMaxPhysDamage()
+ {
+ return self::getBonuses()['sum_max_phys_damage'];
}
/**
diff --git a/main.php b/main.php
index 49842a8..f627c8c 100644
--- a/main.php
+++ b/main.php
@@ -745,7 +745,7 @@ try {
Уворот: ?? + = $getItemsBonuses->getEvasionBonus() ?>
Точность: ?? + = $getItemsBonuses->getAccuracyBonus() ?>
Шанс крита: ?? + = $getItemsBonuses->getCriticalsBonus() ?>
- Урон: = $showUser->minDamage ?> - = $showUser->maxDamage ?>
+ Урон: = $showUser->minDamage + $getItemsBonuses->getMinPhysDamage() ?> - = $showUser->maxDamage + $getItemsBonuses->getMaxPhysDamage()?>