From 3ee0bca77a6a4e614d40073631487b787ecb2e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Sun, 26 Apr 2026 22:05:37 +0800 Subject: [PATCH] dev --- backend/core/basic/character/calc_equip.py | 2 +- backend/core/equipment/version_0/sundry.py | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/core/basic/character/calc_equip.py b/backend/core/basic/character/calc_equip.py index 78ab65a6..f01f4ef9 100644 --- a/backend/core/basic/character/calc_equip.py +++ b/backend/core/basic/character/calc_equip.py @@ -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 diff --git a/backend/core/equipment/version_0/sundry.py b/backend/core/equipment/version_0/sundry.py index a764980c..f95171ad 100644 --- a/backend/core/equipment/version_0/sundry.py +++ b/backend/core/equipment/version_0/sundry.py @@ -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