mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Fix empty waddle population bug
This commit is contained in:
parent
ae5d6ceacb
commit
e52ae1e6ef
@ -271,9 +271,6 @@ class RoomWaddle(db.Model):
|
|||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
async def add_penguin(self, p):
|
async def add_penguin(self, p):
|
||||||
if not self.penguins:
|
|
||||||
self.penguins = [None] * self.seats
|
|
||||||
|
|
||||||
seat_id = self.penguins.index(None)
|
seat_id = self.penguins.index(None)
|
||||||
self.penguins[seat_id] = p
|
self.penguins[seat_id] = p
|
||||||
await p.send_xt('jw', seat_id)
|
await p.send_xt('jw', seat_id)
|
||||||
|
@ -55,6 +55,7 @@ async def setup_waddles(room_collection):
|
|||||||
room_collection[waddle.room_id].waddles[waddle.id] = waddle
|
room_collection[waddle.room_id].waddles[waddle.id] = waddle
|
||||||
waddle.room = room_collection[waddle.room_id]
|
waddle.room = room_collection[waddle.room_id]
|
||||||
waddle.logic = WaddleLogicMapping[waddle.game]
|
waddle.logic = WaddleLogicMapping[waddle.game]
|
||||||
|
waddle.penguins = [None] * waddle.seats
|
||||||
|
|
||||||
|
|
||||||
@handlers.boot
|
@handlers.boot
|
||||||
|
Loading…
Reference in New Issue
Block a user