File size: 1,858 Bytes
dbae951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from typing import Dict

from base.attribute import Attribute
from base.gain import Gain
from base.skill import Skill


class 渊岳(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        for skill_id in (22604, 22605, 36267, 36268):
            skills[skill_id].skill_damage_addition += 410

    def sub_skills(self, skills: Dict[int, Skill]):
        for skill_id in (22604, 22605, 36267, 36268):
            skills[skill_id].skill_damage_addition -= 410


class ηŽ„θ‚ƒ(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        for skill_id in (22490, 22554, 36265, 36266):
            skills[skill_id].extra_damage_addition += 256

    def sub_skills(self, skills: Dict[int, Skill]):
        for skill_id in (22490, 22554, 36265, 36266):
            skills[skill_id].extra_damage_addition -= 256


class ηŽ‹εΈˆ(Gain):
    def add_attribute(self, attribute: Attribute):
        attribute.agility_gain += 102

    def sub_attribute(self, attribute: Attribute):
        attribute.agility_gain -= 102


TALENT_GAINS: Dict[int, Gain] = {
    22557: Gain("ζ˜Ÿζ——"),
    22560: Gain("η§‹ιœ"),
    22562: Gain("ι›ͺ覆"),
    26760: Gain("遗恨"),
    22586: Gain("ζŠ˜ζ„"),
    22571: Gain("风ιͺ¨"),
    23309: Gain("εŒ—ι˜™"),
    22575: 渊岳("渊岳"),
    22579: ηŽ„θ‚ƒ("ηŽ„θ‚ƒ"),
    29166: Gain("ι£žεˆƒε›žθ½¬"),
    22583: ηŽ‹εΈˆ("ηŽ‹εΈˆ"),
    22593: Gain("η™ΎθŠ‚"),
    22587: Gain("εΏ˜ζ–­"),
    22596: Gain("御逐"),
    22603: Gain("ι’ε±±ε…±ζˆ‘"),
    30849: Gain("ε­€θ·―")
}

TALENTS = [
    [22557, 22560],
    [22562],
    [26760, 22586],
    [22571],
    [23309],
    [22575],
    [22579],
    [29166, 22583],
    [22593],
    [22587],
    [22596],
    [22603, 30849]
]
TALENT_DECODER = {talent_id: talent.gain_name for talent_id, talent in TALENT_GAINS.items()}
TALENT_ENCODER = {v: k for k, v in TALENT_DECODER.items()}