debug stuff

This commit is contained in:
Michael Wain 2024-07-08 04:32:44 +03:00
parent 2712fa915e
commit 64a72a7ad4

View File

@ -202,7 +202,8 @@ public class BunkerBot extends TelegramLongPollingBot {
players.get(i).setHobby((Hobby) BotUtils.getRandomFromList(hobbies, random));
players.get(i).setHealth((Health) BotUtils.getRandomFromList(healths, random));
if( (random.nextInt(100) >= 45 || (i == (players.size()-1) && isNoOneHasScripts())) && !scripts.isEmpty() ) {
ActionScript asc = (ActionScript) BotUtils.getRandomFromList(scripts, random);
//ActionScript asc = (ActionScript) BotUtils.getRandomFromList(scripts, random);
ActionScript asc = scripts.get(scripts.size()-1);
scripts.removeIf(p -> p.getId().longValue() == asc.getId().longValue());
players.get(i).setScripts(Collections.singletonList(asc));
} else {