Lines
100.00%
6 / 6
Methods
100.00%
4 / 4
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| describe | 100.00% | 3 / 3 | 100.00% | 1 / 1 | 1 | ||
| [Lorekeeper\Core\Support\NonNegativeInteger] __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| [Lorekeeper\Core\Support\NonNegativeInteger] equals | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 2 | ||
| [Lorekeeper\Core\Support\NonNegativeInteger] __toString | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 10 | final readonly class Luck extends PrimaryAttribute | |
| 11 | { | |
| 12 | #[Override] | |
| 13 | public function describe(): StatDescription | |
| 14 | { | |
| 15 | return new StatDescription( | |
| 16 | 'Luck increases your Critical Strike modifier value directly, and may have effects outside of combat.', | |
| 17 | ); | |
| 18 | } | |
| 19 | } |
Inherited from Lorekeeper\Core\Support\NonNegativeInteger
| 19 | final public function __construct(int $value) | |
| 20 | { | |
| 21 | $this->value = Type\uint()->assert($value); | |
| 22 | } |
| 29 | final public function equals(mixed $other): bool | |
| 30 | { | |
| 31 | return $other instanceof static && $other->value === $this->value; | |
| 32 | } |
| 34 | final public function __toString(): string | |
| 35 | { | |
| 36 | return (string) $this->value; | |
| 37 | } |