File size: 1,645 Bytes
55f0dce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
effe13f
55f0dce
effe13f
 
 
55f0dce
 
effe13f
 
 
55f0dce
 
 
 
 
 
 
 
 
 
effe13f
55f0dce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from typing import Dict

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


class 流星赶月(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        skills[3228].skill_critical_strike += 1000
        skills[3228].skill_critical_power += 102

    def sub_skills(self, skills: Dict[int, Skill]):
        skills[3228].skill_critical_strike -= 1000
        skills[3228].skill_critical_power -= 102


class 杀机断魂(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        for skill_id in (36502, 30894, 30727):
            skills[skill_id].skill_damage_addition += 103 * 2 * 3
        skills[3313].skill_damage_addition += 103 * 3

    def sub_skills(self, skills: Dict[int, Skill]):
        for skill_id in (36502, 30894, 30727):
            skills[skill_id].skill_damage_addition -= 103 * 2 * 3
        skills[3313].skill_damage_addition -= 103 * 3


TALENT_GAINS: Dict[int, Gain] = {
    28371: Gain("血影留痕"),
    6493: Gain("天风汲雨"),
    6495: Gain("弩击急骤"),
    30921: Gain("擘两分星"),
    37326: 流星赶月("流星赶月"),
    6451: Gain("聚精凝神"),
    18249: Gain("化血迷心"),
    33134: 杀机断魂("杀机断魂"),
    6461: Gain("秋风散影"),
    37327: Gain("云合影从"),
    14856: Gain("曙色催寒"),
    32742: Gain("诡鉴冥微"),
}

TALENTS = [
    [28371],
    [6493],
    [6495],
    [30921],
    [37326],
    [6451],
    [18249],
    [33134],
    [6461],
    [37327],
    [14856],
    [32742]
]
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()}