Spaces:
Runtime error
Runtime error
File size: 2,495 Bytes
f0b1638 025687f 2452398 f0b1638 025687f f0b1638 025687f 2452398 f0b1638 2452398 f0b1638 025687f 2452398 f0b1638 025687f f0b1638 2452398 f0b1638 025687f 2452398 f0b1638 2452398 f0b1638 2452398 |
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 84 85 86 |
from typing import Dict, List
from base.buff import Buff
TALENT_GAINS: List[Dict[int, dict | Buff]] = [
{16691: {"buff_name": "ιΎζ―"}},
{16847: {"buff_name": "ε½ι
£"}},
{
26904: {
"buff_name": "ε₯ιΌ",
"gain_skills": {
**{
skill_id: {
"physical_damage_addition": 205,
"physical_shield_gain": -512
} for skill_id in [16760, 16382, 20991]
},
32823: {
"physical_shield_gain": [0, 0, -512, -512]
},
}
},
17042: {
"buff_name": "ι³ε
³",
"gain_skills": {
**{
skill_id: {
"physical_damage_addition": 154,
"physical_shield_gain": -205
} for skill_id in [16803, 16802, 16801, 16800, 17043, 19423, 19424]
},
32859: {
"physical_damage_addition": 154,
},
}
}
},
{16799: {"buff_name": "ι倩"}},
{25633: {"buff_name": "ε«ι£"}},
{32857: {"buff_name": "θ§ε°"}},
{17047: {"buff_name": "εη"}},
{
25258: {"buff_name": "ζ ε
³"},
16728: {
"buff_name": "ζη«",
"gain_attributes": {
"strength_gain": 102
}
},
34677: {
"buff_name": "η»ζ²³",
"gain_skills": {
20991: {
"physical_damage_addition": 307
}
}
}
},
{16737: {"buff_name": "ζ₯ζ"}},
{
17056: {
"buff_name": "η»ζ",
"gain_skills": {
11447: {
"attack_power_cof_gain": 0.7
}
}
}
},
{16893: {"buff_name": "ιη"}},
{21858: {"buff_name": "ιιΊεΌ"}}
]
for talent in TALENT_GAINS:
for talent_id, detail in talent.items():
if not detail:
talent[talent_id] = Buff()
else:
talent[talent_id] = Buff(talent_id, detail.pop("buff_name"))
for attr, value in detail.items():
setattr(talent[talent_id], attr, value)
TALENT_DECODER = {talent_id: talent.buff_name for talents in TALENT_GAINS for talent_id, talent in talents.items()}
TALENT_ENCODER = {v: k for k, v in TALENT_DECODER.items()}
|