Сloses #54; Метод [getMaxWeight()] вместо конструкции из метода и математики [getStrength() * 4]; Очистка неиспользуемых методов класса.
This commit is contained in:
@@ -55,13 +55,14 @@ IMG;
|
||||
private function dressStatsChecks(): ?string
|
||||
{
|
||||
$checkStats = new UserStats($this->owner_id);
|
||||
$stat = $checkStats->getFullStats();
|
||||
return
|
||||
$this->need_strength > $checkStats->getFullStats()->strength
|
||||
|| $this->need_dexterity > $checkStats->getFullStats()->dexterity
|
||||
|| $this->need_intuition > $checkStats->getFullStats()->intuition
|
||||
|| $this->need_endurance > $checkStats->getFullStats()->endurance
|
||||
|| $this->need_intelligence > $checkStats->getFullStats()->intelligence
|
||||
|| $this->need_wisdom > $checkStats->getFullStats()->wisdom
|
||||
$this->need_strength > $stat->strength
|
||||
|| $this->need_dexterity > $stat->dexterity
|
||||
|| $this->need_intuition > $stat->intuition
|
||||
|| $this->need_endurance > $stat->endurance
|
||||
|| $this->need_intelligence > $stat->intelligence
|
||||
|| $this->need_wisdom > $stat->wisdom
|
||||
? true : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user