File size: 978 Bytes
17a347d
 
581e199
17a347d
 
effe13f
581e199
effe13f
581e199
effe13f
17a347d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from typing import Dict

from base.skill import PhysicalDamage, MagicalDamage, Skill

GENERAL_SKILLS: Dict[int, Skill | dict] = {
    13778: {
        "skill_class": Skill,
        "skill_name": "乘龙箭",
        "post_target_buffs": {(3465, 1): 1},
    },
    29535: {
        "skill_class": MagicalDamage,
        "skill_name": "逐云寒蕊",
        "damage_base": 40,
        "damage_rand": 17,
        "attack_power_cof": [90, 200 * 1.2],
        "skill_shield_gain": -1024
    },
    29536: {
        "skill_class": PhysicalDamage,
        "skill_name": "逐云寒蕊",
        "damage_base": 40,
        "damage_rand": 17,
        "attack_power_cof": [90, 200 * 1.2],
        "skill_shield_gain": -1024
    }
}

for skill_id, detail in GENERAL_SKILLS.items():
    GENERAL_SKILLS[skill_id] = detail.pop('skill_class')(skill_id)
    GENERAL_SKILLS[skill_id].activate = False
    for attr, value in detail.items():
        setattr(GENERAL_SKILLS[skill_id], attr, value)