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