Spaces:
Runtime error
Runtime error
from typing import Dict | |
from base.gain import Gain | |
from base.skill import Skill | |
class ้พ้(Gain): | |
def add_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_damage_addition += 102 | |
def sub_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_damage_addition -= 102 | |
class ็ฝ่น(Gain): | |
def add_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_critical_strike += 1000 | |
skills[896].skill_critical_power += 102 | |
def sub_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_critical_strike -= 1000 | |
skills[896].skill_critical_power -= 102 | |
class ้้(Gain): | |
def add_skills(self, skills: Dict[int, Skill]): | |
for skill_id in (3439, 3440, 3441, 3442, 3443, 3444, 3445, 3446, 3447, 3448): | |
skills[skill_id].skill_damage_addition += 102 | |
skills[18670].skill_damage_addition += 102 | |
def sub_skills(self, skills: Dict[int, Skill]): | |
for skill_id in (3439, 3440, 3441, 3442, 3443, 3444, 3445, 3446, 3447, 3448): | |
skills[skill_id].skill_damage_addition -= 102 | |
skills[18670].skill_damage_addition -= 102 | |
class ่ทฌๆญฅ(Gain): | |
def add_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_damage_addition += 204 | |
for skill_id in (3439, 3440, 3441, 3442, 3443, 3444, 3445, 3446, 3447, 3448): | |
skills[skill_id].skill_damage_addition += 204 | |
def sub_skills(self, skills: Dict[int, Skill]): | |
skills[896].skill_damage_addition -= 204 | |
for skill_id in (3439, 3440, 3441, 3442, 3443, 3444, 3445, 3446, 3447, 3448): | |
skills[skill_id].skill_damage_addition -= 204 | |
class ้ๅ (Gain): | |
def add_skills(self, skills: Dict[int, Skill]): | |
for i, skill_id in enumerate([18649, 18650, 18651, 18652, 18653]): | |
skills[skill_id].skill_damage_addition += int(i * 0.15 * 1024) | |
def sub_skills(self, skills: Dict[int, Skill]): | |
for i, skill_id in enumerate([18649, 18650, 18651, 18652, 18653]): | |
skills[skill_id].skill_damage_addition -= int(i * 0.15 * 1024) | |
TALENT_GAINS: Dict[int, Gain] = { | |
5840: ้พ้("้พ้"), | |
5827: ็ฝ่น("็ฝ่น"), | |
5823: Gain("ๅฟๅบ"), | |
5828: ้้("้้"), | |
357: Gain("ๅไธๆธ "), | |
5846: Gain("ๆ ๅฝข"), | |
23614: Gain("ๅฝๅ "), | |
5819: Gain("ๅๅฐ"), | |
18695: Gain("่ทฌๆญฅ"), | |
32411: Gain("ๆญฃๆฐ"), | |
14834: Gain("ๆฑ้ณ"), | |
18679: Gain("ๆตฎ็"), | |
24945: Gain("็ ดๅฟ"), | |
18669: ้ๅ ("้ๅ "), | |
14613: Gain("ๅบๆฌ"), | |
} | |
TALENTS = [ | |
[5840, 5827], | |
[5823, 5828], | |
[357, 5846], | |
[23614], | |
[5819], | |
[18695], | |
[32411], | |
[14834], | |
[18679], | |
[24945], | |
[18669], | |
[14613] | |
] | |
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()} | |