From cdf96c920ba627fad7319566713d6d18564b25dc Mon Sep 17 00:00:00 2001 From: yaohunya <31456652@qq.com> Date: Sat, 10 Aug 2024 15:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../effectevent/BomBomEffect.java | 19 +++++++++++++++++++ .../manage/GiftEffectManager.java | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 src/main/java/com/yaohun/enderdragonWars/effectevent/BomBomEffect.java diff --git a/src/main/java/com/yaohun/enderdragonWars/effectevent/BomBomEffect.java b/src/main/java/com/yaohun/enderdragonWars/effectevent/BomBomEffect.java new file mode 100644 index 0000000..1d86797 --- /dev/null +++ b/src/main/java/com/yaohun/enderdragonWars/effectevent/BomBomEffect.java @@ -0,0 +1,19 @@ +package com.yaohun.enderdragonWars.effectevent; + +import com.yaohun.enderdragonWars.effect.GiftEffect; +import com.yaohun.enderdragonWars.game.Game; + +public class BomBomEffect extends GiftEffect { + + public BomBomEffect(String audience) { + super(audience); + } + + @Override + public void apply(Game game) { + /* + * 参考群内视频 火山喷发 + * */ + + } +} diff --git a/src/main/java/com/yaohun/enderdragonWars/manage/GiftEffectManager.java b/src/main/java/com/yaohun/enderdragonWars/manage/GiftEffectManager.java index 434bbeb..e67b560 100644 --- a/src/main/java/com/yaohun/enderdragonWars/manage/GiftEffectManager.java +++ b/src/main/java/com/yaohun/enderdragonWars/manage/GiftEffectManager.java @@ -1,5 +1,6 @@ package com.yaohun.enderdragonWars.manage; +import com.yaohun.enderdragonWars.effectevent.BomBomEffect; import com.yaohun.enderdragonWars.effectevent.ClearInvEffect; import com.yaohun.enderdragonWars.effect.GiftEffect; import com.yaohun.enderdragonWars.effect.GiftQueue; @@ -41,6 +42,7 @@ public class GiftEffectManager { public static void registerAll() { registerGiftEffect("清理背包", ClearInvEffect::new); + registerGiftEffect("火山喷发", BomBomEffect::new); } private static void registerGiftEffect(String id, Function giftEffectGetter) {