File size: 1,896 Bytes
a05a2de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
72
73
74
from typing import Dict

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


class 黯影(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        for skill_id in (6218, 25917, 2509, 2295):
            skills[skill_id].attack_power_cof_gain *= 1.25

    def sub_skills(self, skills: Dict[int, Skill]):
        for skill_id in (6218, 25917, 2509, 2295):
            skills[skill_id].attack_power_cof_gain /= 1.25


class 重蛊(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        for skill_id in (29573, 25044, 30918):
            skills[skill_id].skill_damage_addition += 154

    def sub_skills(self, skills: Dict[int, Skill]):
        for skill_id in (29573, 25044, 30918):
            skills[skill_id].skill_damage_addition -= 154


class 曲致(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        skills[25917].tick += 2

    def sub_skills(self, skills: Dict[int, Skill]):
        skills[25917].tick -= 2


class 引魂(Gain):
    def add_skills(self, skills: Dict[int, Skill]):
        skills[2223].bind_buffs.append(16102)  # type: ignore

    def sub_skills(self, skills: Dict[int, Skill]):
        skills[2223].bind_buffs.remove(16102)  # type: ignore


TALENT_GAINS: Dict[int, Gain] = {
    6620: Gain("蝎毒"),
    6649: Gain("食髓"),
    6629: 黯影("黯影"),
    6879: Gain("虫兽"),
    34388: 重蛊("重蛊"),
    34640: Gain("忘情"),
    30088: Gain("嗜蛊"),
    25040: 曲致("曲致"),
    25018: Gain("荒息"),
    29545: Gain("篾片蛊"),
    18325: 引魂("引魂"),
    25043: Gain("连缘蛊")
}

TALENTS = [
    [6620],
    [6649],
    [6629],
    [6879],
    [34388],
    [34640],
    [30088],
    [25040],
    [25018],
    [29545],
    [18325],
    [25043]
]
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()}