File size: 2,296 Bytes
dbae951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5fb9ac4
581e199
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
75
76
77
78
79
80
81
82
83
from typing import Dict

from base.buff import Buff
from general.buffs import GENERAL_BUFFS

BUFFS: Dict[int, Buff | dict] = {
    16025: {
        "buff_name": "雷引",
        "activate": False,
        "gain_attributes": {
            "physical_critical_strike_gain": 400,
            "physical_critical_power_gain": 41
        }
    },
    16596: {
        "buff_name": "崔嵬鬼步",
        "gain_attributes": {
            "physical_attack_power_gain": 154,
            "physical_critical_strike_gain": 1500,
            "physical_critical_power_gain": 150
        }
    },
    15893: {
        "buff_name": "忘断",
        "gain_attributes": {
            "physical_attack_power_gain": 256
        }
    },
    15927: {
        "buff_name": "百节",
        "frame_shift": -2,
        "gain_skills": {
            skill_id: {
                "skill_damage_addition": 102
            } for skill_id in
            [22610, 22611, 22612, 36269, 36270] + [22604, 22605, 36267, 36268] + [22490, 22554, 36265, 36266]
        }
    },
    15928: {
        "buff_name": "百节",
        "frame_shift": -2,
        "gain_skills": {
            skill_id: {
                "skill_damage_addition": 205
            } for skill_id in
            [22610, 22611, 22612, 36269, 36270] + [22604, 22605, 36267, 36268] + [22490, 22554, 36265, 36266]
        }
    },
    15929: {
        "buff_name": "百节",
        "frame_shift": -2,
        "gain_skills": {
            skill_id: {
                "skill_damage_addition": 307
            } for skill_id in
            [22610, 22611, 22612, 36269, 36270] + [22604, 22605, 36267, 36268] + [22490, 22554, 36265, 36266]
        }
    },
    15832: {
        "buff_name": "星旗",
        "gain_skills": {
            skill_id: {
                "skill_damage_addition": [154, 307]
            } for skill_id in (22170, 22550, 22551, 22298)
        }
    },
    15932: {
        "buff_name": "徵逐",
        "gain_attributes": {
            "all_shield_ignore": 512
        }
    }
}

for buff_id, detail in BUFFS.items():
    BUFFS[buff_id] = Buff(buff_id)
    for attr, value in detail.items():
        setattr(BUFFS[buff_id], attr, value)

for buff_id, buff in GENERAL_BUFFS.items():
    if buff_id not in BUFFS:
        BUFFS[buff_id] = buff