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

Mefadriel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 17
ccs 0
cts 13
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Entity\Human;
6
7
use AardsGerds\Game\Build\Attribute\Etherum;
8
use AardsGerds\Game\Build\Attribute\Health;
9
use AardsGerds\Game\Build\Attribute\Strength;
10
use AardsGerds\Game\Build\Talent\SecretKnowledge\Ascension;
11
use AardsGerds\Game\Build\Talent\SecretKnowledge\EighthAscension\ProtectionOfTheGods;
12
use AardsGerds\Game\Build\Talent\SecretKnowledge\SecretKnowledge;
13
use AardsGerds\Game\Build\Talent\TalentCollection;
14
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMastery;
15
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMasteryLevel;
16
use AardsGerds\Game\Entity\Entity;
17
use AardsGerds\Game\Inventory\Inventory;
18
use AardsGerds\Game\Inventory\Weapon\GreatSword\Protector;
19
20
final class Mefadriel extends Entity
21
{
22
    public function __construct()
23
    {
24
        parent::__construct(
25
            'Mefadriel',
26
            new Health(10000),
27
            new Etherum(200),
28
            new Strength(200),
29
            new TalentCollection([
30
                WeaponMastery::greatSword(WeaponMasteryLevel::masterOfThirdTier()),
31
                new SecretKnowledge(Ascension::eighthAscension()),
32
                new ProtectionOfTheGods(),
33
            ]),
34
            new Inventory([]),
35
            new Protector(new Etherum(200)),
36
            true,
37
        );
38
    }
39
}
40