| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class Slash implements MeleeAttack, WeaponMasteryTalent |
||
| 17 | { |
||
| 18 | private const DAMAGE_MULTIPLIER = 0.9; |
||
| 19 | |||
| 20 | public function getDamage(Weapon $weapon): Damage |
||
| 21 | { |
||
| 22 | return new Damage((int) round($weapon->getDamage()->get() * self::DAMAGE_MULTIPLIER)); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getEffects(): EffectCollection |
||
| 26 | { |
||
| 27 | return new EffectCollection([]); |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function getName(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | public static function getDescription(): string |
||
| 36 | { |
||
| 37 | return 'Standard slash with sword. Everyone can do it.'; |
||
| 38 | } |
||
| 39 | |||
| 40 | public static function getRequiredTalentPoints(): TalentPoints |
||
| 41 | { |
||
| 42 | return new TalentPoints(1); |
||
| 43 | } |
||
| 44 | |||
| 45 | public static function getRequiredWeaponMastery(): WeaponMastery |
||
| 48 | } |
||
| 49 | } |
||
| 50 |