@@ -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; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function setTemplate(string $template): void { |
34 | 34 | if(!is_file($template)) { |
35 | - throw new \RuntimeException("File $template does not exist."); |
|
35 | + throw new \RuntimeException("file $template does not exist."); |
|
36 | 36 | } |
37 | 37 | $this->template = $template; |
38 | 38 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | protected function generateCharacter(int $id): Character { |
22 | 22 | $stats = [ |
23 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
23 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
24 | 24 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
25 | 25 | ]; |
26 | 26 | return new Character($stats); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | final class InitiativeFormulaParserTest extends \Tester\TestCase { |
15 | 15 | protected function generateCharacter(int $id): Character { |
16 | 16 | $stats = [ |
17 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d4+DEX/4", "strength" => 10, |
|
17 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d4+DEX/4", "strength" => 10, |
|
18 | 18 | "dexterity" => 12, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
19 | 19 | ]; |
20 | 20 | return new Character($stats); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | final class TeamTest extends \Tester\TestCase { |
15 | 15 | protected function generateCharacter(int $id): Character { |
16 | 16 | $stats = [ |
17 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
17 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
18 | 18 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
19 | 19 | ]; |
20 | 20 | return new Character($stats); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | final class CharacterEffectTest extends \Tester\TestCase { |
15 | 15 | protected function generateCharacter(int $id): Character { |
16 | 16 | $stats = [ |
17 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
17 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
18 | 18 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
19 | 19 | ]; |
20 | 20 | return new Character($stats); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | protected function generateCharacter(int $id): Character { |
24 | 24 | $stats = [ |
25 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
25 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
26 | 26 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
27 | 27 | ]; |
28 | 28 | $petStats = [ |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | protected function generateCharacter(int $id): Character { |
31 | 31 | $stats = [ |
32 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
32 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
33 | 33 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
34 | 34 | ]; |
35 | 35 | $skillData = [ |
@@ -14,7 +14,7 @@ |
||
14 | 14 | final class CharacterTest extends \Tester\TestCase { |
15 | 15 | protected function generateCharacter(int $id): Character { |
16 | 16 | $stats = [ |
17 | - "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
17 | + "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10, |
|
18 | 18 | "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10 |
19 | 19 | ]; |
20 | 20 | return new Character($stats); |