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

Nameless   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Entity\Nameless;
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\SecretKnowledge;
12
use AardsGerds\Game\Build\Talent\TalentCollection;
13
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMastery;
14
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMasteryLevel;
15
use AardsGerds\Game\Entity\Entity;
16
use AardsGerds\Game\Inventory\Inventory;
17
use AardsGerds\Game\Inventory\Weapon\GreatSword\SteelFromAbyss;
18
19
final class Nameless extends Entity
20
{
21
    public function __construct()
22
    {
23
        parent::__construct(
24
            'Nameless',
25
            new Health(500),
26
            new Etherum(rand(2, 10)),
27
            new Strength(100),
28
            new TalentCollection([
29
                WeaponMastery::greatSword(WeaponMasteryLevel::veteran()),
30
                new SecretKnowledge(Ascension::sixthAscension()),
31
            ]),
32
            new Inventory([]),
33
            new SteelFromAbyss(),
34
            true,
35
        );
36
    }
37
}
38