Skip to content

Commit

Permalink
fix: 命名を修正 DiggingStop -> BreakStop
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroma6666 committed Sep 14, 2024
1 parent ada5b11 commit d0a54bb
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand All @@ -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}マナが切れたらブロック破壊を止めるスキル切り替え")
Expand All @@ -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)
)
}
Expand Down

0 comments on commit d0a54bb

Please sign in to comment.