[Bug fix] API for Link Play

- Fix a bug that API for Link Play cannot work
- Add an example breached map #148
This commit is contained in:
Lost-MSth
2024-02-20 23:04:58 +08:00
parent 9d096f480b
commit 50369d1f23
5 changed files with 88 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ class Room:
def to_dict(self) -> dict:
p = [i.to_dict() for i in self.players if i.player_id != 0]
for i in p:
i['is_host'] = i['player_id'] == self.host_id
i['is_host'] = i['multiplay_player_id'] == self.host_id
return {
'room_id': self.room_id,
'room_code': self.room_code,