dev
This commit is contained in:
@@ -102,7 +102,7 @@ class CalcEquipMixin(CharacterBase):
|
||||
max_point_oath_suit = max((suit for suit in oathSuitInfo if oathSuitInfo[suit]['point'] > 0), key=lambda suit: oathSuitInfo[suit]['point'], default=None)
|
||||
zero_point_suits = [suit for suit in suitInfo if suitInfo[suit]['point'] == 0]
|
||||
# 套装没有到太初的时候,优先把誓约套装的点数加到装备套装上,以达到更高的套装等级
|
||||
if suitInfo is not None and 0 < suitInfo[max_point_suit]['point'] < 2550 and oathSuitInfo.get(max_point_oath_suit, None) is not None:
|
||||
if suitInfo is not None and oathSuitInfo is not None and 0 < suitInfo[max_point_suit]['point'] < 2550 and max_point_oath_suit is not None and oathSuitInfo.get(max_point_oath_suit, None) is not None:
|
||||
correction = min(2550 - suitInfo[max_point_suit]['point'], oathSuitInfo[max_point_oath_suit]['point'])
|
||||
suitInfo[max_point_suit]['point'] += correction
|
||||
oathSuitInfo[max_point_oath_suit]['point'] -= correction
|
||||
|
||||
@@ -33,13 +33,14 @@ def sundry_0(char: CharacterProperty, *args):
|
||||
@register
|
||||
def sundry_5(char: CharacterProperty, *args):
|
||||
"""迷雾系统"""
|
||||
lv = args[0]
|
||||
四维 = [0, 30, 80, 110, 160, 190, 250]
|
||||
value = 0.1 + (lv - 1) * 0.005 + (lv // 5) * 0.005 +lv // 10 * 0.005 + (lv // 30) * 0.01
|
||||
buffer = 2400 + (lv - 1) * 50 +lv // 5 * 50 +lv // 10 * 50 + (lv // 30) * 100
|
||||
char.SetStatus(SkillAttack=value, 四维=四维[args[0] // 5])
|
||||
if char.buffer:
|
||||
char.SetStatus(Buffer=buffer)
|
||||
pass
|
||||
# lv = args[0]
|
||||
# 四维 = [0, 30, 80, 110, 160, 190, 250]
|
||||
# value = 0.1 + (lv - 1) * 0.005 + (lv // 5) * 0.005 +lv // 10 * 0.005 + (lv // 30) * 0.01
|
||||
# buffer = 2400 + (lv - 1) * 50 +lv // 5 * 50 +lv // 10 * 50 + (lv // 30) * 100
|
||||
# char.SetStatus(SkillAttack=value, 四维=四维[args[0] // 5])
|
||||
# if char.buffer:
|
||||
# char.SetStatus(Buffer=buffer)
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user