merge all extra tables back into player for now

This commit is contained in:
Tao Tien 2026-02-11 10:16:21 -08:00
parent 71ad4cada6
commit 9b01f6b96a
16 changed files with 66 additions and 579 deletions

View file

@ -50,8 +50,8 @@ pub fn add_bot(ctx: &ReducerContext, lobby_id: u32) -> Result<(), String> {
let bot = ctx.db.bot().insert(Bot {
id: 0,
lobby_id,
hand_id: 0,
pond_id: 0,
hand: vec![],
pond: vec![],
});
lobby.players.push(PlayerOrBot::Bot { id: bot.id });
ctx.db.lobby().id().update(lobby);