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

Nameless::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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