Passed
Push — master ( 888025...8927c7 )
by Paweł
03:33
created

Mefadriel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 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\Initiative;
10
use AardsGerds\Game\Build\Attribute\Strength;
11
use AardsGerds\Game\Build\Talent\SecretKnowledge\Ascension;
12
use AardsGerds\Game\Build\Talent\SecretKnowledge\EighthAscension\ProtectionOfTheGods;
13
use AardsGerds\Game\Build\Talent\SecretKnowledge\SecretKnowledge;
14
use AardsGerds\Game\Build\Talent\TalentCollection;
15
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMastery;
16
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMasteryLevel;
17
use AardsGerds\Game\Entity\Entity;
18
use AardsGerds\Game\Inventory\Inventory;
19
use AardsGerds\Game\Inventory\Weapon\GreatSword\Protector;
20
21
final class Mefadriel extends Entity
22
{
23 1
    public function __construct()
24
    {
25 1
        parent::__construct(
26 1
            'Mefadriel',
27 1
            new Health(10000),
28 1
            new Etherum(200),
29 1
            new Strength(200),
30 1
            new Initiative(100),
31 1
            new TalentCollection([
32 1
                WeaponMastery::greatSword(WeaponMasteryLevel::masterOfThirdTier()),
33 1
                new SecretKnowledge(Ascension::eighthAscension()),
34 1
                new ProtectionOfTheGods(),
35
            ]),
36 1
            new Inventory([]),
37 1
            new Protector(new Etherum(200)),
38 1
            true,
39
        );
40 1
    }
41
}
42