dev
This commit is contained in:
@@ -57,7 +57,7 @@ pnpm run dev:backend
|
|||||||
- [x] 徽章/附魔/调适
|
- [x] 徽章/附魔/调适
|
||||||
- [x] 时装/皮肤/光环
|
- [x] 时装/皮肤/光环
|
||||||
- [x] 宠物装备
|
- [x] 宠物装备
|
||||||
- [ ] 辟邪玉
|
- [x] 辟邪玉
|
||||||
- [ ] 勋章/杂项
|
- [ ] 勋章/杂项
|
||||||
|
|
||||||
- 结果计算
|
- 结果计算
|
||||||
|
|||||||
@@ -791,7 +791,7 @@ class Character:
|
|||||||
'data': i.data,
|
'data': i.data,
|
||||||
'ratio': 10.0,
|
'ratio': 10.0,
|
||||||
'cd': i.cd,
|
'cd': i.cd,
|
||||||
'damage': ratuio_equ_skill * i.data * 10,
|
'damage': ratuio_equ_skill * i.data * 10 * self.EquEffectRatio,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
attrs = []
|
attrs = []
|
||||||
@@ -804,17 +804,22 @@ class Character:
|
|||||||
if self.输出类型 == '魔法固伤':
|
if self.输出类型 == '魔法固伤':
|
||||||
attrs.extend(['INT', 'AtkI'])
|
attrs.extend(['INT', 'AtkI'])
|
||||||
info = []
|
info = []
|
||||||
attrs.extend(['Attack', 'AttackP', 'SkillAttack', 'ElementDB'])
|
attrs.extend(['Attack', 'AttackP', 'SkillAttack','EquEffectRatio', 'ElementDB'])
|
||||||
for attr in attrs:
|
for attr in attrs:
|
||||||
temp = getattr(CharacterInfo, attr)
|
temp = getattr(CharacterInfo, attr)
|
||||||
if attr.startswith('Atk'):
|
if attr.startswith('Atk'):
|
||||||
info.append({'name': temp.name, 'value': temp.value(getattr(self, attr) * getattr(self, f'P{attr}'))})
|
info.append({'name': temp.name, 'value': temp.value(getattr(self, attr) * getattr(self, f'P{attr}'))})
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
value = getattr(self, attr)
|
||||||
|
if attr == 'SkillAttack':
|
||||||
|
value *= (self.jade_effect.SkillAttack + 1)
|
||||||
|
if attr == 'AttackP':
|
||||||
|
value += self.jade_effect.AttackP
|
||||||
info.append(
|
info.append(
|
||||||
{
|
{
|
||||||
'name': temp.name,
|
'name': temp.name,
|
||||||
'value': temp.value(getattr(self, attr)),
|
'value': temp.value(value),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -51,9 +51,11 @@ class CharacterInfo(enum.Enum):
|
|||||||
Attack = '攻击强化', '/ui/UI_ProfileIcon_015.png', lambda x: f'{format(x, ".1f")}%'
|
Attack = '攻击强化', '/ui/UI_ProfileIcon_015.png', lambda x: f'{format(x, ".1f")}%'
|
||||||
"""攻击强化"""
|
"""攻击强化"""
|
||||||
|
|
||||||
AttackP = '攻击强化%', '/ui/UI_ProfileIcon_015.png', lambda x: f'{format(x * 100 - 100, ".2f")}%'
|
AttackP = '攻击强化%', '/ui/UI_ProfileIcon_015.png', lambda x: f'{format(x * 100 - 100, ".1f")}%'
|
||||||
"""攻击强化%"""
|
"""攻击强化%"""
|
||||||
|
|
||||||
|
EquEffectRatio = '特效伤害', '/ui/UI_ProfileIcon_016.png', lambda x: f'{format(x * 100 - 100, ".1f")}%'
|
||||||
|
|
||||||
# HitP : float
|
# HitP : float
|
||||||
# """命中率"""
|
# """命中率"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user