From 3d591f929b4e6467b0a0db141b42cd6ab43213a4 Mon Sep 17 00:00:00 2001 From: xangelo Date: Wed, 14 Jun 2023 04:32:13 -0400 Subject: [PATCH] fix: new players don't get their profession set --- src/server/player.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/server/player.ts b/src/server/player.ts index 73e0a13..8a3aa7d 100644 --- a/src/server/player.ts +++ b/src/server/player.ts @@ -47,6 +47,14 @@ export async function createPlayer(): Promise { await db.raw(sql + pairs.join(','), values); + // create the profession level + db('profession_levels').insert({ + player_id: player.id, + profession: 'Wanderer', + level: 1, + exp: 0 + }); + return player; } -- 2.25.1