From f115dcc5f8152482d277a0e52e0de685d09993e2 Mon Sep 17 00:00:00 2001 From: xangelo Date: Fri, 30 Jun 2023 06:16:17 -0400 Subject: [PATCH] introduce formula field + override for monster stat seed --- seeds/monsters.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/seeds/monsters.ts b/seeds/monsters.ts index ab920fd..c9ca8b5 100644 --- a/seeds/monsters.ts +++ b/seeds/monsters.ts @@ -50,10 +50,10 @@ export async function createMonsters(): Promise { return { id: r.fields.id, name: r.fields.Name, - strength: r.fields.STR, - constitution: r.fields.CON, - dexterity: r.fields.DEX, - intelligence: r.fields.INT, + strength: r.fields['STR_override'] || r.fields.STR, + constitution: r.fields['CON_override'] || r.fields.CON, + dexterity: r.fields['DEX_override'] || r.fields.DEX, + intelligence: r.fields['INT_override'] || r.fields.INT, exp: r.fields.EXP, level: r.fields.Level, gold: r.fields.GOLD, -- 2.25.1