File size: 1,986 Bytes
55f0dce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
effe13f
 
 
 
 
 
55f0dce
 
 
c255694
55f0dce
 
 
 
5fb9ac4
 
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
from base.buff import Buff
from general.buffs import GENERAL_BUFFS

BUFFS = {
    3401: {
        "buff_name": "神力",
        "activate": False,
        "gain_attributes": {
            "physical_critical_strike_gain": 400,
            "physical_critical_power_gain": 41
        }
    },
    3254: {
        "buff_name": "气魄",
        "gain_attributes": {
            "strength_gain": 20,
            "spunk_gain": 20
        }
    },
    3316: {
        "buff_name": "扬威",
        "gain_attributes": {
            "magical_attack_power_gain": 512,
        }
    },
    6105: {
        "buff_name": "弩心",
        "gain_attributes": {
            "magical_overcome_gain": 154,
        }
    },
    8210: {
        "buff_name": "心无旁骛",
        "gain_attributes": {
            "physical_critical_strike_gain": 1500,
            "physical_critical_power_gain": 300
        }
    },
    9981: {
        "buff_name": "秋风散影",
        "gain_attributes": {
            "physical_critical_strike_gain": 1000,
            "physical_critical_power_gain": 102
        }
    },
    10005: {
        "buff_name": "催寒",
        "gain_attributes": {
            "all_shield_ignore": 410
        }
    },
    23081: {
        "buff_name": "擘两分星",
        "gain_attributes": {
            "all_damage_addition": 205
        }
    },
    23082: {
        "buff_name": "擘两分星",
        "gain_skills": {
            skill_id: {
                "attack_power_cof_gain": 0.1
            } for skill_id in (3313, 36502, 30894, 30727)
        }
    },
    # 24668: {
    #     "buff_name": "杀机断魂",
    #     "gain_attributes": {
    #         "all_damage_addition": 103
    #     }
    # }
}

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