@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | foreach($team as $character) { |
238 | 238 | try { |
239 | 239 | $column++; |
240 | - if($character->positionRow > 0 AND $character->positionColumn > 0) { |
|
240 | + if($character->positionRow > 0 and $character->positionColumn > 0) { |
|
241 | 241 | continue; |
242 | 242 | } |
243 | 243 | setPosition: |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | $characters = array_merge($combat->team1->toArray(), $combat->team2->toArray()); |
291 | 291 | foreach($characters as $character) { |
292 | 292 | foreach($character->effects as $effect) { |
293 | - if($effect->duration === CharacterEffect::DURATION_COMBAT OR is_int($effect->duration)) { |
|
293 | + if($effect->duration === CharacterEffect::DURATION_COMBAT or is_int($effect->duration)) { |
|
294 | 294 | $character->removeEffect($effect->id); |
295 | 295 | } |
296 | 296 | } |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | $enemyTeam = $this->getEnemyTeam($attacker); |
353 | 353 | $rangedWeapon = false; |
354 | 354 | foreach($attacker->equipment as $equipment) { |
355 | - if($equipment instanceof Weapon AND $equipment->isWorn() AND $equipment->ranged) { |
|
355 | + if($equipment instanceof Weapon and $equipment->isWorn() and $equipment->ranged) { |
|
356 | 356 | $rangedWeapon = true; |
357 | 357 | break; |
358 | 358 | } |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | $targets = $this->getTeam($primaryTarget)->getItems(["positionColumn" => $primaryTarget->positionColumn]); |
413 | 413 | break; |
414 | 414 | default: |
415 | - throw new NotImplementedException("Target $skill->skill->target for attack skills is not implemented."); |
|
415 | + throw new NotImplementedException("target $skill->skill->target for attack skills is not implemented."); |
|
416 | 416 | } |
417 | 417 | foreach($targets as $target) { |
418 | 418 | for($i = 1; $i <= $skill->skill->strikes; $i++) { |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | $targets = $this->getEnemyTeam($character)->toArray(); |
441 | 441 | break; |
442 | 442 | default: |
443 | - throw new NotImplementedException("Target $skill->skill->target for special skills is not implemented."); |
|
443 | + throw new NotImplementedException("target $skill->skill->target for special skills is not implemented."); |
|
444 | 444 | } |
445 | 445 | foreach($targets as $target) { |
446 | 446 | $this->onSkillSpecial($character, $target, $skill); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | $combat->onHeal($character, $combat->selectHealingTarget($character)); |
479 | 479 | break; |
480 | 480 | default: |
481 | - throw new NotImplementedException("Action $action is not implemented."); |
|
481 | + throw new NotImplementedException("action $action is not implemented."); |
|
482 | 482 | } |
483 | 483 | } |
484 | 484 | } |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | "character1" => $character1, "character2" => $target, |
590 | 590 | ]; |
591 | 591 | $effect = new CharacterEffect([ |
592 | - "id" => "skill{$skill->skill->id}Effect", |
|
592 | + "id" => "skill{$skill->skill->id}effect", |
|
593 | 593 | "type" => $skill->skill->type, |
594 | 594 | "stat" => ((in_array($skill->skill->type, SkillSpecial::NO_STAT_TYPES, true)) ? null : $skill->skill->stat), |
595 | 595 | "value" => $skill->value, |