From: xangelo Date: Fri, 30 Jun 2023 10:16:17 +0000 (-0400) Subject: introduce formula field + override for monster stat seed X-Git-Tag: v0.0.1~16 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=f115dcc5f8152482d277a0e52e0de685d09993e2;p=risinglegends.git introduce formula field + override for monster stat seed --- 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,