Skip to content

Commit

Permalink
Remove bot funds resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
nitko12 committed Mar 2, 2024
1 parent aaeaf6f commit 540c1b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/game/tick/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ async def save_electricity_orders(self, players: Dict[int, Player], game: Game,
async def save_tick_data(self, tick_data: TickData):
await Player.update_many(tick_data.players.values())
await Order.update_many(tick_data.updated_orders.values())
for bot in tick_data.bots:
await Player.update(player_id=bot.player_id, money=int(1e9))

async def save_market_data(self, tick_data: TickData):
tick = tick_data.game.current_tick
Expand Down

0 comments on commit 540c1b0

Please sign in to comment.