This commit is contained in:
2025-04-22 15:31:57 +08:00
parent 5608d89808
commit baf7163e50
6 changed files with 285 additions and 311 deletions
+7
View File
@@ -409,6 +409,13 @@ class Character(CharacterProperty):
"""获取技能名字""" """获取技能名字"""
return [skill.name for skill in self.skills if (type == 'all' or skill.type == type) and (damage == 'all' or skill.damage == damage)] return [skill.name for skill in self.skills if (type == 'all' or skill.type == type) and (damage == 'all' or skill.damage == damage)]
def GetWeaponType(self) -> str:
"""获取武器类型"""
weapon = self.charEquipInfo["武器"].equInfo
if weapon is None:
return None
else:
return weapon.itemDetailType
# endregion # endregion
# region 计算相关 # region 计算相关
+5 -1
View File
@@ -171,6 +171,9 @@ class ActiveSkill(Skill):
power = getattr(self, f'power{i}', None) power = getattr(self, f'power{i}', None)
if power is None: if power is None:
setattr(self, f'power{i}', 1) setattr(self, f'power{i}', 1)
dataplus = getattr(self, f'dataplus{i}', None)
if dataplus is None:
setattr(self, f'dataplus{i}', 0)
def skillInfo(self, mode: str | None = None): def skillInfo(self, mode: str | None = None):
if mode is not None: if mode is not None:
@@ -191,12 +194,13 @@ class ActiveSkill(Skill):
keys = [key.replace("data","") for key in dir(self) if key.startswith('data')] keys = [key.replace("data","") for key in dir(self) if key.startswith('data')]
for i in keys: for i in keys:
data = getattr(self, f'data{i}', []) data = getattr(self, f'data{i}', [])
dataplus = getattr(self, f'dataplus{i}', 0)
if len(data) == 0: if len(data) == 0:
break break
if lv < len(data): if lv < len(data):
hit = getattr(self, f'hit{i}', 1) hit = getattr(self, f'hit{i}', 1)
power = getattr(self, f'power{i}', 1) power = getattr(self, f'power{i}', 1)
res += hit * power * data[lv] res += hit * power * (data[lv] + dataplus)
return res return res
def getWeaponCDRatio(self): def getWeaponCDRatio(self):
@@ -174,7 +174,10 @@ class Skill10(PassiveSkill):
data0 = [0, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120]# noqa: E501 data0 = [0, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120]# noqa: E501
associate = [{"type":"*skillRation","data":data0,"skills":["冰魄剑"]}] associate = [
{"type":"*skillRation","data":data0,"skills":["冰魄剑"]},
{"type":"+hit1","data":[0] + [-1]*maxLv,"skills":["冰魄剑"],"ratio":1},
]
# 冰魄锤击 아이스 빅 해머 # 冰魄锤击 아이스 빅 해머
@@ -374,6 +374,8 @@ class Skill17(ActiveSkill):
elif self.currentMode == "闪枪": elif self.currentMode == "闪枪":
pre = self.char.GetSkillByName("爆炎 · 波动剑") pre = self.char.GetSkillByName("爆炎 · 波动剑")
return 4.9 * pre.getSkillCD() / pre.cd return 4.9 * pre.getSkillCD() / pre.cd
elif self.currentMode == "平X":
return 1.0
else: else:
return super().getSkillCD() return super().getSkillCD()
# 极冰 · 裂波剑 극파동검 빙인 # 极冰 · 裂波剑 극파동검 빙인
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -7,7 +7,7 @@ adv = [
'name': 'swordman_male', 'name': 'swordman_male',
'title': '鬼剑士(男)', 'title': '鬼剑士(男)',
'children': [ 'children': [
{'id': 0, 'name': 'weapon_master', 'title': '极诣·剑魂', 'open': False}, {'id': 0, 'name': 'weapon_master', 'title': '极诣·剑魂', 'open': False, 'class': 'GF.swordman_male.weapon_master'},
{'id': 1, 'name': 'soul_bender', 'title': '极诣·鬼泣', 'open': True, 'class': 'GF.swordman_male.soul_bender'}, {'id': 1, 'name': 'soul_bender', 'title': '极诣·鬼泣', 'open': True, 'class': 'GF.swordman_male.soul_bender'},
{'id': 2, 'name': 'berserker', 'title': '极诣·狂战士', 'open': True, 'class': 'GF.swordman_male.berserker'}, {'id': 2, 'name': 'berserker', 'title': '极诣·狂战士', 'open': True, 'class': 'GF.swordman_male.berserker'},
{'id': 3, 'name': 'asura', 'title': '极诣·阿修罗', 'open': True, 'class': 'GF.swordman_male.asura'}, {'id': 3, 'name': 'asura', 'title': '极诣·阿修罗', 'open': True, 'class': 'GF.swordman_male.asura'},