Changed action cards logic. x11
All checks were successful
gitea/JBunker/pipeline/head This commit looks good

This commit is contained in:
Michael Wain 2025-04-12 05:30:01 +03:00
parent 47a54840d2
commit 9ad829e997
3 changed files with 29 additions and 1 deletions

View File

@ -62,4 +62,6 @@ public interface Constants {
String SCANNER_CARD = "Сканер";
String SCANNER_TRIGGERED = "Сканнер нашел скрытую стату игрока %s, %s";
String SABOTAGE_CARD = "Саботаж";
}

View 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;
}
}

View File

@ -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<>();