fix errors

This commit is contained in:
Igor Barkov (iwork) 2020-07-20 16:51:23 +03:00
parent c689b6631c
commit ab947aace4

View File

@ -36,7 +36,7 @@ class DressedItems
try {
$query = <<<SQL
SELECT SUM(add_strength) as sum_strength,
SUM(add_dexterity)as sum_dexterity,
SUM(add_dexterity) as sum_dexterity,
SUM(add_intuition) as sum_intuition,
SUM(add_endurance) as sum_endurance,
SUM(add_intelligence) as sum_intelligence,
@ -57,7 +57,8 @@ SQL;
public function getItemsInSlots()
{
if (!$this->DB) {
$this->getDressedItems();
//$this->getDressedItems();
self::getDressedItems();
}
while ($row = $this->DB->fetch_assoc()) {
$dressed_item[$row['dressed_slot']] = $row;
@ -68,14 +69,15 @@ SQL;
protected function getBonuses()
{
if (!$this->DBSUM) {
$this->getBonusesFromDressedItems();
self::getBonusesFromDressedItems();
}
return $this->DBSUM;
}
public function getStrengthBonus()
{
return $this->getBonuses()['sum_strength'];
//return $this->getBonuses()['sum_strength'];
return self::getBonuses()['sum_strength'];
}
public function getDexterityBonus()
{