From a1d4e0740826b9151a9f88a7e93c8635221ac918 Mon Sep 17 00:00:00 2001 From: walcutt Date: Fri, 23 May 2025 13:18:25 -0400 Subject: [PATCH] Add locked moves for pre-selected moves --- module/boss.mjs | 1 + module/data-models.mjs | 1 + module/playbooks.mjs | 21 ++++++++++++++------- templates/actors/boss.hbs | 2 +- templates/actors/hench.hbs | 2 +- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/module/boss.mjs b/module/boss.mjs index 83ac602..765162b 100644 --- a/module/boss.mjs +++ b/module/boss.mjs @@ -35,6 +35,7 @@ const bossData = { moves: [ { marked: true, + locked: true, name: "Force of Will", description: `Whenever you act, do not draw. Simply declare what you do, and what happens after.`, hasWriteIn: false, diff --git a/module/data-models.mjs b/module/data-models.mjs index 7e90215..21052a6 100644 --- a/module/data-models.mjs +++ b/module/data-models.mjs @@ -30,6 +30,7 @@ const cappedArrayField = (innerField, maxSize, defaultValue = undefined) => new const moveField = () => new SchemaField({ marked: new BooleanField({ required: true, initial: false }), + locked: new BooleanField({ required: false, initial: false }), name: textField(), description: textField(), hasWriteIn: new BooleanField({ required: true, initial: false }), diff --git a/module/playbooks.mjs b/module/playbooks.mjs index 22f244b..040f9dd 100644 --- a/module/playbooks.mjs +++ b/module/playbooks.mjs @@ -183,7 +183,8 @@ const playbooks = { writeIn: null, }, { - marked: false, + marked: true, + locked: true, name: "Forum Lurker", description: `As a prep action you can trawl the web for information about a piece of the setting. State a single fact about this thing and draw. Ignore the cue, and use the rank: