fix:修正技攻
This commit is contained in:
@@ -516,19 +516,19 @@ def emblem_4701(char: CharacterProperty):
|
||||
|
||||
|
||||
@register
|
||||
def emblem_combine(char: CharacterProperty, position: str, lv: int = 1, emblem_list: list[int | str] = []):
|
||||
bufferP = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.008, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
buffer = [10, 30, 60, 90, 120, 150, 180, 210, 240270, 300, 320, 340, 360, 380, 400]
|
||||
skillAttack = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.008, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
attackP = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.008, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
def emblem_combine(char: CharacterProperty, position: str, lv: int = 0, emblem_list: list[int | str] = []):
|
||||
bufferP = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
buffer = [10, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 320, 340, 360, 380, 400]
|
||||
skillAttack = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
attackP = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.010, 0.011, 0.012, 0.013, 0.014, 0.015, 0.016]
|
||||
if position == '白金':
|
||||
return
|
||||
# 固有属性
|
||||
if position == '彩色':
|
||||
char.SetStatus(BufferP=bufferP[lv - 1], SkillAttack=skillAttack[lv - 1])
|
||||
char.SetStatus(BufferP=bufferP[lv], SkillAttack=skillAttack[lv])
|
||||
else:
|
||||
char.SetStatus(Buffer=buffer[lv - 1], AttackP=attackP[lv - 1])
|
||||
rarity = (lv - 1) // 5
|
||||
char.SetStatus(Buffer=buffer[lv], AttackP=attackP[lv])
|
||||
rarity = (lv) // 5
|
||||
emblems = list(filter(lambda x: safeParseInt(x) > 0, emblem_list)) or []
|
||||
emblem_raritys = [safeParseInt(i) // 1000 for i in emblems]
|
||||
# 稀有
|
||||
|
||||
Reference in New Issue
Block a user