Changed action cards logic. x11
All checks were successful
gitea/JBunker/pipeline/head This commit looks good
All checks were successful
gitea/JBunker/pipeline/head This commit looks good
This commit is contained in:
parent
47a54840d2
commit
9ad829e997
@ -62,4 +62,6 @@ public interface Constants {
|
||||
String SCANNER_CARD = "Сканер";
|
||||
|
||||
String SCANNER_TRIGGERED = "Сканнер нашел скрытую стату игрока %s, %s";
|
||||
|
||||
String SABOTAGE_CARD = "Саботаж";
|
||||
}
|
26
src/main/java/com/alterdekim/javabot/bot/cards/Sabotage.java
Normal file
26
src/main/java/com/alterdekim/javabot/bot/cards/Sabotage.java
Normal file
@ -0,0 +1,26 @@
|
||||
package com.alterdekim.javabot.bot.cards;
|
||||
|
||||
|
||||
import com.alterdekim.javabot.Constants;
|
||||
import com.alterdekim.javabot.bot.Player;
|
||||
import com.alterdekim.javabot.components.BunkerBot;
|
||||
|
||||
public class Sabotage extends ActionCard {
|
||||
|
||||
public Sabotage(BunkerBot bot, Player activator) {
|
||||
super(bot, activator);
|
||||
}
|
||||
|
||||
public Sabotage() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return Constants.SABOTAGE_CARD;
|
||||
}
|
||||
}
|
@ -85,7 +85,7 @@ public class BunkerBot extends TelegramLongPollingBot {
|
||||
this.textDataValService = textDataValService;
|
||||
this.disasterService = disasterService;
|
||||
this.synergyService = synergyService;
|
||||
this.actionCards = new ArrayList<>(List.of(ScannerCard.class)); // RandomHIVCard.class, ChangeWorksCard.class
|
||||
this.actionCards = new ArrayList<>(List.of(ScannerCard.class, RandomHIVCard.class, ChangeWorksCard.class));
|
||||
this.random = randomComponent;
|
||||
this.dayNightFields = new DayNightFields();
|
||||
this.linkedQueue = new ConcurrentLinkedQueue<>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user