This commit is contained in:
2026-04-26 22:05:37 +08:00
parent 7b48654562
commit 3ee0bca77a
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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
+8 -7
View File
@@ -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