debug stuff
This commit is contained in:
parent
2712fa915e
commit
64a72a7ad4
@ -202,7 +202,8 @@ public class BunkerBot extends TelegramLongPollingBot {
|
|||||||
players.get(i).setHobby((Hobby) BotUtils.getRandomFromList(hobbies, random));
|
players.get(i).setHobby((Hobby) BotUtils.getRandomFromList(hobbies, random));
|
||||||
players.get(i).setHealth((Health) BotUtils.getRandomFromList(healths, random));
|
players.get(i).setHealth((Health) BotUtils.getRandomFromList(healths, random));
|
||||||
if( (random.nextInt(100) >= 45 || (i == (players.size()-1) && isNoOneHasScripts())) && !scripts.isEmpty() ) {
|
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());
|
scripts.removeIf(p -> p.getId().longValue() == asc.getId().longValue());
|
||||||
players.get(i).setScripts(Collections.singletonList(asc));
|
players.get(i).setScripts(Collections.singletonList(asc));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user