修复小游戏
MMOItemsRepair 包含一个可选的修复动作小游戏。
启用后,点击修复按钮会开始一个时机判断片段。玩家需要在合适的时机点击,从而决定修复结果。
启用
repair:
minigame:
enabled: true
禁用时,如果物品和材料有效,点击确认按钮会直接修复。
设置
repair:
minigame:
enabled: false
animation-speed: 3
timeout-ticks: 200
strong-repair-amount: 50
weak-repair-amount: 20
pattern-size: 12
strong-symbol-count: 2
weak-symbol-count: 2
cursor-symbol: "&e🔨"
strong-symbol: "&a■"
weak-symbol: "&6■"
empty-symbol: "&7■"
subtitle: "&eFocus!"
animation-speed 控制指针移动速度,单位为 tick。数值越小速度越快。
timeout-ticks 控制玩家在小游戏失败前拥有的时间。
strong-repair-amount 是玩家命中强修复区域时应用的修复百分比。
weak-repair-amount 是玩家命中弱修复区域时应用的修复百分比。
pattern-size 控制显示的时机条长度。
strong-symbol-count 控制生成多少个强修复区域。
weak-symbol-count 控制生成多少个弱修复区域。
结果标题
repair:
minigame:
display:
strong:
title: "&a✓ Perfect Repair!"
subtitle: "&7Item repaired {repair}%"
weak:
title: "&6✓ Common Repair"
subtitle: "&7Item repaired {repair}%"
fail:
title: "&c✗ Repair Failed!"
subtitle: "&7Wrong timing, repair failed"
timeout:
title: "&c✗ Timeout Failed!"
subtitle: "&7Response time too long"
可用占位符:
{repair}
材料消耗
小游戏开始时会消耗修复材料。如果玩家失败或超时,修复不会生效。
这会让小游戏成为带有风险的修复机制。