new:添加黑暗武士

This commit is contained in:
2026-08-12 00:03:59 +08:00
parent 43fa82423c
commit 60f07337c7
8 changed files with 38 additions and 13 deletions
+2
View File
@@ -307,6 +307,8 @@ class CharacterBase(CharacterProperty):
self.Buffer += 增益量 + kget('Buffer', 0)
self.BufferP += 增益量P + kget('BufferP', 0)
self.EquEffectRatio += kget('EquEffectRatio', 0.0)
self.PINT *= kget('PINT', 1.0)
self.PSTR *= kget('PSTR', 1.0)
def AddElementDB(self, element: str, value: float, type: int = 0) -> None:
"""
+1 -1
View File
@@ -116,7 +116,7 @@ class CalcCarryMixin(CharacterBase):
attrs.extend(['Attack', 'AttackP', 'SkillAttack', 'EquEffectRatio', 'ElementDB'])
for attr in attrs:
temp = getattr(CharacterInfo, attr)
if attr.startswith('Atk'):
if attr.startswith('Atk') or attr in ['INT', 'STR']:
info.append({'name': temp.name, 'value': temp.value(getattr(self, attr) * getattr(self, f'P{attr}'))})
else:
value = getattr(self, attr)
+2
View File
@@ -390,6 +390,8 @@ class ActiveSkill(Skill):
return 1 - cdr
def getSkillCD(self, mode=None):
if not isinstance(self.cd, (int, float)) or not self.cd:
return '-'
return max(0, round(max(self.cd * 0.3, self.cd * self.cdReduce / self.cdRecover * self.getWeaponCDRatio() * self.getQuickCDRatio()) * self.cdRatio - self.cdCut / self.cdRecover , 2))
def vp_1(self):