|
@@ -73,7 +73,7 @@ discard block |
|
|
block discarded – undo |
|
73
|
73
|
} |
|
74
|
74
|
|
|
75
|
75
|
protected function configureOptions(OptionsResolver $resolver): void { |
|
76
|
|
- $allStats = ["id", "type", "source", "value", "duration", "stat",]; |
|
|
76
|
+ $allStats = ["id", "type", "source", "value", "duration", "stat", ]; |
|
77
|
77
|
$resolver->setRequired($allStats); |
|
78
|
78
|
$resolver->setAllowedTypes("id", "string"); |
|
79
|
79
|
$resolver->setAllowedTypes("type", "string"); |
|
@@ -99,7 +99,7 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
|
|
100
|
100
|
protected function getAllowedStats(): array { |
|
101
|
101
|
$stats = Constants::getConstantsValues(Character::class, "STAT_"); |
|
102
|
|
- $stats = array_merge($stats, ["strength", "dexterity", "constitution", "intelligence", "charisma",]); |
|
|
102
|
+ $stats = array_merge($stats, ["strength", "dexterity", "constitution", "intelligence", "charisma", ]); |
|
103
|
103
|
return $stats; |
|
104
|
104
|
} |
|
105
|
105
|
|
Please login to merge, or discard this patch.