ango
5.9 commit
effe13f
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()}