@@ -77,11 +77,11 @@ |
||
77 | 77 | */ |
78 | 78 | public function setCharacterPosition($id, int $row, int $column): void { |
79 | 79 | if(!$this->hasItems(["id" => $id])) { |
80 | - throw new \OutOfBoundsException("Character $id is not in the team"); |
|
80 | + throw new \OutOfBoundsException("character $id is not in the team"); |
|
81 | 81 | } elseif(count($this->getItems(["positionRow" => $row])) >= $this->maxRowSize) { |
82 | - throw new InvalidCharacterPositionException("Row $row is full.", InvalidCharacterPositionException::ROW_FULL); |
|
82 | + throw new InvalidCharacterPositionException("row $row is full.", InvalidCharacterPositionException::ROW_FULL); |
|
83 | 83 | } elseif($this->hasItems(["positionRow" => $row, "positionColumn" => $column])) { |
84 | - throw new InvalidCharacterPositionException("Row $row column $column is occupied.", InvalidCharacterPositionException::POSITION_OCCUPIED); |
|
84 | + throw new InvalidCharacterPositionException("row $row column $column is occupied.", InvalidCharacterPositionException::POSITION_OCCUPIED); |
|
85 | 85 | } |
86 | 86 | $character = $this->getItems(["id" => $id])[0]; |
87 | 87 | $character->positionRow = $row; |
@@ -75,7 +75,7 @@ |
||
75 | 75 | */ |
76 | 76 | public function setTemplate(string $template): void { |
77 | 77 | if(!is_file($template)) { |
78 | - throw new \RuntimeException("File $template does not exist."); |
|
78 | + throw new \RuntimeException("file $template does not exist."); |
|
79 | 79 | } |
80 | 80 | $this->template = $template; |
81 | 81 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | "character1" => $character1, "character2" => $target, |
38 | 38 | ]; |
39 | 39 | $effect = new CharacterEffect([ |
40 | - "id" => "skill{$skill->skill->id}Effect", |
|
40 | + "id" => "skill{$skill->skill->id}effect", |
|
41 | 41 | "type" => $skill->skill->type, |
42 | 42 | "stat" => ((in_array($skill->skill->type, Skill::NO_STAT_TYPES, true)) ? null : $skill->skill->stat), |
43 | 43 | "value" => $skill->value, |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $targets = $combat->getEnemyTeam($character)->toArray(); |
71 | 71 | break; |
72 | 72 | default: |
73 | - throw new NotImplementedException("Target {$skill->skill->target} for special skills is not implemented."); |
|
73 | + throw new NotImplementedException("target {$skill->skill->target} for special skills is not implemented."); |
|
74 | 74 | } |
75 | 75 | foreach($targets as $target) { |
76 | 76 | $this->doSingleTarget($character, $target, $skill, $combat); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $targets = $combat->getTeam($primaryTarget)->getItems(["positionColumn" => $primaryTarget->positionColumn]); |
75 | 75 | break; |
76 | 76 | default: |
77 | - throw new NotImplementedException("Target {$skill->skill->target} for attack skills is not implemented."); |
|
77 | + throw new NotImplementedException("target {$skill->skill->target} for attack skills is not implemented."); |
|
78 | 78 | } |
79 | 79 | /** @var Character $target */ |
80 | 80 | foreach($targets as $target) { |