From d0a54bb15d74fbabaeb2b839230f789a189b5fd0 Mon Sep 17 00:00:00 2001 From: kuroma6666 Date: Sat, 31 Aug 2024 21:01:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=BD=E5=90=8D=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20DiggingStop=20->=20BreakStop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/skill/PassiveSkillMenu.scala | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/scala/com/github/unchama/seichiassist/menus/skill/PassiveSkillMenu.scala b/src/main/scala/com/github/unchama/seichiassist/menus/skill/PassiveSkillMenu.scala index 9b715a6c91..d97e73d9e0 100644 --- a/src/main/scala/com/github/unchama/seichiassist/menus/skill/PassiveSkillMenu.scala +++ b/src/main/scala/com/github/unchama/seichiassist/menus/skill/PassiveSkillMenu.scala @@ -62,7 +62,7 @@ object PassiveSkillMenu extends Menu { val dynamicPartComputation = List( ChestSlotRef(0, 0) -> computeToggleMultipleBlockTypeDestructionButton, ChestSlotRef(0, 1) -> computeToggleChestBreakButton, - ChestSlotRef(0, 2) -> computeToggleManaFullyConsumedDiggingStopButton, + ChestSlotRef(0, 2) -> computeToggleManaFullyConsumedBreakStopButton, ChestSlotRef(1, 0) -> computeGiganticBerserkButton, ChestSlotRef(1, 1) -> computeToggleNetherQuartzBlockButton ).traverse(_.sequence) @@ -232,12 +232,12 @@ object PassiveSkillMenu extends Menu { ) }) - val computeToggleManaFullyConsumedDiggingStopButton: IO[Button] = RecomputedButton(for { - originalDiggingStopConfig <- breakSkillTargetConfigAPI - .breakSkillTargetConfig(player, BreakSkillTargetConfigKey.ManaFullyConsumedCase) + val computeToggleManaFullyConsumedBreakStopButton: IO[Button] = RecomputedButton(for { + originalBreakStopConfig <- breakSkillTargetConfigAPI + .breakSkillTargetConfig(player, BreakSkillTargetConfigKey.ManaFullyConsumed) } yield { - val baseLore = List(s"${YELLOW}スキルでマナ切れでブロック破壊を止めるスキル") - val statusLore = if (originalDiggingStopConfig) { + val baseLore = List(s"${YELLOW}スキルのマナ切れでブロック破壊を止めるスキル") + val statusLore = if (originalBreakStopConfig) { List(s"${GREEN}ON (スキルでマナが切れるとブロック破壊を止めます。)", s"${DARK_RED}クリックでOFF") } else { List(s"${RED}OFF (スキルでマナが切れてもブロック破壊を続けます。)", s"${DARK_GREEN}クリックでON") @@ -246,7 +246,7 @@ object PassiveSkillMenu extends Menu { Button( new IconItemStackBuilder(Material.LAPIS_LAZULI) .tap { builder => - if (originalDiggingStopConfig) + if (originalBreakStopConfig) builder.enchanted() } .title(s"$WHITE$UNDERLINE${BOLD}マナが切れたらブロック破壊を止めるスキル切り替え") @@ -255,17 +255,17 @@ object PassiveSkillMenu extends Menu { LeftClickButtonEffect { SequentialEffect( breakSkillTargetConfigAPI.toggleBreakSkillTargetConfig( - BreakSkillTargetConfigKey.ManaFullyConsumedCase + BreakSkillTargetConfigKey.ManaFullyConsumed ), DeferredEffect(IO { - if (!originalDiggingStopConfig) { + if (!originalBreakStopConfig) { SequentialEffect( - MessageEffect(s"${GREEN}スキルでのマナが切れたらブロック破壊を止めるを有効化しました。"), + MessageEffect(s"${GREEN}スキル消費でのマナが切れたらブロック破壊を止めるを有効化しました。"), FocusedSoundEffect(Sound.BLOCK_STONE_BUTTON_CLICK_ON, 1f, 1f) ) } else { SequentialEffect( - MessageEffect(s"${RED}スキルでのマナが切れたらブロック破壊を止めるを無効化しました。"), + MessageEffect(s"${RED}スキル消費でのマナが切れたらブロック破壊を止めるを無効化しました。"), FocusedSoundEffect(Sound.BLOCK_STONE_BUTTON_CLICK_ON, 1f, 0.5f) ) }