From: xangelo Date: Wed, 14 Jun 2023 08:32:13 +0000 (-0400) Subject: fix: new players don't get their profession set X-Git-Tag: v0.0.1~43 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=3d591f929b4e6467b0a0db141b42cd6ab43213a4;p=risinglegends.git fix: new players don't get their profession set --- 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; }