Passed
Push — master ( 5a7d8c...49f3d4 )
by Paweł
02:50
created

Haze   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 35
ccs 0
cts 14
cp 0
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getEffects() 0 3 1
A getName() 0 3 1
A getEtherumCost() 0 3 1
A getDamage() 0 3 1
A getRequiredAscension() 0 3 1
A getRequiredTalentPoints() 0 3 1
A getDescription() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Build\Talent\SecretKnowledge\FirstAscension;
6
7
use AardsGerds\Game\Build\Attribute\Damage;
8
use AardsGerds\Game\Build\Attribute\Etherum;
9
use AardsGerds\Game\Build\Talent\Effect\BlockImmunity;
10
use AardsGerds\Game\Build\Talent\Effect\EffectCollection;
11
use AardsGerds\Game\Build\Talent\Effect\Stun;
12
use AardsGerds\Game\Build\Talent\SecretKnowledge\Ascension;
13
use AardsGerds\Game\Build\Talent\SecretKnowledge\SecretKnowledgeTalent;
14
use AardsGerds\Game\Build\Talent\TalentPoints;
15
use AardsGerds\Game\Fight\EtherumAttack;
16
17
final class Haze implements EtherumAttack, SecretKnowledgeTalent
18
{
19
    public function getDamage(): Damage
20
    {
21
        return new Damage(0);
22
    }
23
24
    public function getEffects(): EffectCollection
25
    {
26
        return new EffectCollection([new BlockImmunity(), new Stun()]);
27
    }
28
29
    public static function getEtherumCost(): Etherum
30
    {
31
        return new Etherum(1);
32
    }
33
34
    public static function getName(): string
35
    {
36
        return 'Haze';
37
    }
38
39
    public static function getDescription(): string
40
    {
41
        return 'Gives your enemy a break.';
42
    }
43
44
    public static function getRequiredTalentPoints(): TalentPoints
45
    {
46
        return new TalentPoints(2);
47
    }
48
49
    public static function getRequiredAscension(): Ascension
50
    {
51
        return Ascension::firstAscension();
52
    }
53
}
54