@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | foreach($team as $character) { |
| 233 | 233 | try { |
| 234 | 234 | $column++; |
| 235 | - if($character->positionRow > 0 AND $character->positionColumn > 0) { |
|
| 235 | + if($character->positionRow > 0 and $character->positionColumn > 0) { |
|
| 236 | 236 | continue; |
| 237 | 237 | } |
| 238 | 238 | setPosition: |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | $characters = array_merge($combat->team1->toArray(), $combat->team2->toArray()); |
| 288 | 288 | foreach($characters as $character) { |
| 289 | 289 | foreach($character->effects as $effect) { |
| 290 | - if($effect->duration === CharacterEffect::DURATION_COMBAT OR is_int($effect->duration)) { |
|
| 290 | + if($effect->duration === CharacterEffect::DURATION_COMBAT or is_int($effect->duration)) { |
|
| 291 | 291 | $character->removeEffect($effect->id); |
| 292 | 292 | } |
| 293 | 293 | } |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $enemyTeam = $this->getEnemyTeam($attacker); |
| 350 | 350 | $rangedWeapon = false; |
| 351 | 351 | foreach($attacker->equipment as $equipment) { |
| 352 | - if($equipment instanceof Weapon AND $equipment->isWorn() AND $equipment->ranged) { |
|
| 352 | + if($equipment instanceof Weapon and $equipment->isWorn() and $equipment->ranged) { |
|
| 353 | 353 | $rangedWeapon = true; |
| 354 | 354 | break; |
| 355 | 355 | } |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | $targets = $this->getTeam($primaryTarget)->getItems(["positionColumn" => $primaryTarget->positionColumn]); |
| 410 | 410 | break; |
| 411 | 411 | default: |
| 412 | - throw new NotImplementedException("Target {$skill->skill->target} for attack skills is not implemented."); |
|
| 412 | + throw new NotImplementedException("target {$skill->skill->target} for attack skills is not implemented."); |
|
| 413 | 413 | } |
| 414 | 414 | foreach($targets as $target) { |
| 415 | 415 | for($i = 1; $i <= $skill->skill->strikes; $i++) { |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | $targets = $this->getEnemyTeam($character)->toArray(); |
| 438 | 438 | break; |
| 439 | 439 | default: |
| 440 | - throw new NotImplementedException("Target {$skill->skill->target} for special skills is not implemented."); |
|
| 440 | + throw new NotImplementedException("target {$skill->skill->target} for special skills is not implemented."); |
|
| 441 | 441 | } |
| 442 | 442 | foreach($targets as $target) { |
| 443 | 443 | $this->onSkillSpecial($character, $target, $skill); |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | case null: |
| 478 | 478 | break; |
| 479 | 479 | default: |
| 480 | - throw new NotImplementedException("Action $action is not implemented."); |
|
| 480 | + throw new NotImplementedException("action $action is not implemented."); |
|
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | } |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | "character1" => $character1, "character2" => $target, |
| 589 | 589 | ]; |
| 590 | 590 | $effect = new CharacterEffect([ |
| 591 | - "id" => "skill{$skill->skill->id}Effect", |
|
| 591 | + "id" => "skill{$skill->skill->id}effect", |
|
| 592 | 592 | "type" => $skill->skill->type, |
| 593 | 593 | "stat" => ((in_array($skill->skill->type, SkillSpecial::NO_STAT_TYPES, true)) ? null : $skill->skill->stat), |
| 594 | 594 | "value" => $skill->value, |