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

Mefadriel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 12
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
ccs 0
cts 13
cp 0
crap 2
rs 9.8666
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