Mefadriel   A
last analyzed

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\Corruption;
18
use AardsGerds\Game\Entity\Entity;
19
use AardsGerds\Game\Inventory\Inventory;
20
use AardsGerds\Game\Inventory\Weapon\GreatSword\Protector;
21
22
final class Mefadriel extends Entity
23
{
24 4
    public function __construct()
25
    {
26 4
        parent::__construct(
27 4
            'Mefadriel',
28 4
            new Health(10000),
29 4
            new Etherum(200),
30 4
            new Strength(200),
31 4
            new Initiative(100),
32 4
            new TalentCollection([
33 4
                WeaponMastery::greatSword(WeaponMasteryLevel::masterOfThirdTier()),
34 4
                new SecretKnowledge(Ascension::eighthAscension()),
35 4
                new ProtectionOfTheGods(),
36
            ]),
37 4
            new Inventory([]),
38 4
            new Protector(new Etherum(200)),
39 4
            Corruption::high(),
40
        );
41 4
    }
42
}
43