import { db } from './lib/db';
-import {Player, maxHp} from "../shared/player";
+import {Player, maxHp, maxVigor} from "../shared/player";
import { random } from 'lodash';
import { Skills } from '../shared/skills';
import {Profession} from 'shared/profession';
constitution: random(3, 5),
dexterity: random(3, 5),
intelligence: random(3, 5),
+ stat_points: 4
};
raw.hp = maxHp(raw.constitution, 1);
+ raw.vigor = maxVigor(raw.constitution, 1);
const res = await db('players').insert(raw).returning<Player[]>('*');
const player = res.pop();