new:添加黑暗武士
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user