fix: turns out turn count means something totally different

This commit is contained in:
punchready 2021-06-07 15:16:37 +02:00
parent 7a5d9dca76
commit b8402f636f

View File

@ -960,7 +960,7 @@ public class GameLogic {
.withEntity(new NPC(goose, position, inventory))
.buildEntityEvent());
result.add(new EventBuilder(EventType.TurnEvent)
.withTurnCount(state.turnOrder.size())
.withTurnCount(1)
.withNextCharacter(goose)
.buildGameEvent());
result.add(new EventBuilder(EventType.SpawnEntityEvent)
@ -1014,7 +1014,7 @@ public class GameLogic {
.withEntity(new NPC(stan, spawnPosition))
.buildEntityEvent());
result.add(new EventBuilder(EventType.TurnEvent)
.withTurnCount(state.turnOrder.size())
.withTurnCount(1)
.withNextCharacter(stan)
.buildGameEvent());
@ -1218,7 +1218,7 @@ public class GameLogic {
}
result.add(new EventBuilder(EventType.TurnEvent)
.withTurnCount(state.turnOrder.size())
.withTurnCount(state.turnOrder.indexOf(state.activeCharacter) + 1)
.withNextCharacter(state.activeCharacter)
.buildGameEvent());