@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | public function damageStat(): string { |
498 | 498 | $stat = "strength"; |
499 | 499 | foreach($this->equipment as $item) { |
500 | - if(!$item->worn OR $item->slot != Equipment::SLOT_WEAPON) { |
|
500 | + if(!$item->worn or $item->slot != Equipment::SLOT_WEAPON) { |
|
501 | 501 | continue; |
502 | 502 | } |
503 | 503 | switch($item->type) { |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | $stat = $effect->stat; |
557 | 557 | $type = $effect->type; |
558 | 558 | $duration = $effect->duration; |
559 | - if(is_int($duration) AND $duration < 1) { |
|
559 | + if(is_int($duration) and $duration < 1) { |
|
560 | 560 | $this->removeEffect($effect->id); |
561 | 561 | continue; |
562 | 562 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Combat; |
5 | 5 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $this->onCombatEnd[] = [$this, "logCombatResult"]; |
83 | 83 | $this->onCombatEnd[] = [$this, "resetInitiative"]; |
84 | 84 | $this->onRoundStart[] = [$this, "decreaseEffectsDuration"]; |
85 | - $this->onRoundStart[] = [$this ,"recalculateStats"]; |
|
85 | + $this->onRoundStart[] = [$this, "recalculateStats"]; |
|
86 | 86 | $this->onRoundStart[] = [$this, "logRoundNumber"]; |
87 | 87 | $this->onRoundStart[] = [$this, "applyPoison"]; |
88 | 88 | $this->onRound[] = [$this, "mainStage"]; |