测试版

This commit is contained in:
yaohunya 2024-08-10 15:40:38 +08:00
parent 6a3435a852
commit cdf96c920b
2 changed files with 21 additions and 0 deletions

View File

@ -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) {
/*
* 参考群内视频 火山喷发
* */
}
}

View File

@ -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<String, GiftEffect> giftEffectGetter) {