Skip to content

Commit

Permalink
chore: 添加遗器套装效果数据
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Nov 10, 2023
1 parent 9570f08 commit b1563aa
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions utils/relic_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,63 @@
for i in range(len(BASE_STATS_TIER)):
BASE_STATS_TIER[i][10:10] = [BASE_STATS_TIER[i][10]] * 6 # 复制属性伤害

SET_EFFECT_OF_TWO_PC: List[List[Union[str, Tuple[str, Optional[int], bool]]]] = [
# 外圈
[(_("治疗量加成"), 10, True)],
[(_("攻击力%"), 12, True)],
[(_("防御力%"), 15, True)],
[(_("冰属性伤害"), 10, True)],
[(_("物理伤害"), 10, True)],
[(_("受到伤害降低"), 8, True)],
[(_("火属性伤害"), 10, True)],
[(_("量子属性伤害"), 10, True)],
[(_("雷属性伤害"), 10, True)],
[(_("风属性伤害"), 10, True)],
[(_("击破特攻"), 16, True)],
[(_("虚数属性伤害"), 10, True)],
[(_("生命值%"), 12, True)],
[(_("速度%"), 6, True)],
# 内圈
[(_("攻击力%"), 12, True), (_("攻击力%"), 12, False), _("当装备者的速度大于等于120时,攻击力额外提高12%")],
[(_("生命值%"), 12, True), (_("攻击力%"), 8, False), _("当装备者的速度大于等于120时,我方全体攻击力提高8%")],
[(_("效果命中"), 10, True), (_("攻击力"), None, False), _("同时提高装备者等同于当前效果命中25%的攻击力,最多提高25%")],
[(_("防御力%"), 15, True), (_("防御力%"), 15, False), _("当装备者的效果命中大于等于50%时,防御力额外提高15%")],
[(_("暴击伤害"), 16, True), (_("暴击率"), 60, False), _("当装备者的暴击伤害大于等于120%时,进入战斗后装备者的暴击率提高60%,持续到施放首次攻击后结束")],
[(_("暴击率"), 8, True), (_("终结技伤害"), 15, False), (_("追加攻击伤害"), 15, False), _("当装备者当前暴击率大于等于50%时,终结技和追加攻击造成的伤害提高15%")],
[(_("击破特攻"), 16, True), (_("击破特攻"), 20, False), _("当装备者的速度大于等于145时,击破特攻额外提高20%")],
[(_("能量恢复效率"), 5, True), _("当装备者的速度大于等于120时,进入战斗时立刻使行动提前40%")],
[(_("暴击率"), 8, True), (_("普攻伤害"), 20, False), (_("战技伤害"), 20, False), _("当装备者的当前暴击率大于等于70%时,普攻和战技造成的伤害提高20%")],
[(_("效果抵抗"), 10, True), (_("暴击伤害"), 10, False), _("当装备者的效果抵抗大于等于30%时,我方全体暴击伤害提高10%")]
]
"""遗器二件套效果,True-非条件效果,False-条件效果"""

for set_index, set_effect in enumerate(SET_EFFECT_OF_TWO_PC):
if isinstance(set_effect[-1], str):
set_effect[-1] = RELIC_SET_NAME[set_index, 2] + _("2件套:") + set_effect[-1]

SET_EFFECT_OF_FOUR_PC: List[List[Union[str, Tuple[str, Optional[int], bool]]]] = [
# 外圈
[_("在战斗开始时,立即为我方恢复1个战技点")],
[(_("速度%"), 6, True), (_("普攻伤害"), 10, True)],
[(_("护盾量加成"), 20, True)],
[(_("暴击伤害"), 25, False), _("当装备者施放终结技时,暴击伤害提高25%,持续2回合")],
[(_("攻击力%"), 25, False), _("当装备者施放攻击或受到攻击后,其在本场战斗中攻击力提高5%,最多叠加5层")],
[_("回合开始时,如果装备者当前生命值百分比小于等于50%,则回复等同于自身生命上限8%的生命值,并恢复5点能量")],
[(_("战技伤害"), 12, True), (_("火属性伤害"), 12, False), _("使施放终结技后的下一次攻击造成的火属性伤害提高12%")],
[(_("无视防御力"), 10, True), (_("无视防御力"), 10, False), _("若目标拥有量子属性弱点,额外无视其10%的防御力")],
[(_("攻击力%"), 20, False), _("当装备者施放战技时,使装备者的攻击力提高20%,持续1回合")],
[_("当装备者施放终结技后,使其行动提前25%")],
[(_("击破特攻"), 16, True), _("当装备者击破敌方目标弱点后,恢复3点能量")],
[(_("暴击率"), 10, False), (_("暴击伤害"), 20, False), _("装备者对陷入负面效果的敌方目标造成伤害时暴击率提高10%,对陷入禁锢状态的敌方目标造成伤害时暴击伤害提高20%")],
[(_("暴击率"), 12, False), _("当装备者受到攻击或被我方目标消耗生命值后,暴击率提高8%,持续2回合,该效果最多叠加2层")],
[(_("速度%"), 12, False), _("当装备者对我方目标施放终结技时,我方全体速度提高12%,持续1回合,该效果无法叠加")]
]
"""遗器四件套效果,True-非条件效果,False-条件效果"""

for set_index, set_effect in enumerate(SET_EFFECT_OF_FOUR_PC):
if isinstance(set_effect[-1], str):
set_effect[-1] = RELIC_SET_NAME[set_index, 2] + _("4件套:") + set_effect[-1]


RELIC_SCHEMA = {
"type": "object",
Expand Down

0 comments on commit b1563aa

Please sign in to comment.