Add locked moves for pre-selected moves

This commit is contained in:
walcutt 2025-05-23 13:18:25 -04:00
parent 5f0361588a
commit a1d4e07408
5 changed files with 18 additions and 9 deletions

View File

@ -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,

View File

@ -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 }),

View File

@ -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:
<ul class="hench-list-1-col">
@ -282,7 +283,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Like Old Times",
description: `As a prep action, you can take an old friend out on the town. Describe how things were between you, back in the day and how you spend time with them now. Then, draw. Ignore the cue, and use the rank:
<ul class="hench-list-1-col">
@ -377,7 +379,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Logistics",
description: `As a prep action you may tap your connections to procure something unusual. State what you're trying to find, then draw. Ignore the cue, and instead use the rank:
<ul class="hench-list-1-col">
@ -466,7 +469,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Friends in Low Places",
description: `As a prep action, you can ask an underworld contact to complete an unusual favor. State what you want, then draw. Ignore the cue, and instead use the rank:
<ul class="hench-list-1-col">
@ -555,7 +559,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Eavesdropper",
description: `As a prep action, you can lurk around where you shouldn't be and listen for secrets. Choose a target or an ally, then draw. Ignore the cue, and instead use the rank:
<ul class="hench-list-1-col">
@ -644,7 +649,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Understudy",
description: `As a prep action, you can take some henches on a minor crime spree. Explain your petty crimes, then draw. Ignore the cue, and instead use the rank:
<ul class="hench-list-1-col">
@ -733,7 +739,8 @@ const playbooks = {
writeIn: null,
},
{
marked: false,
marked: true,
locked: true,
name: "Hobbyist",
description: `As a prep action, you can invite a fellow hench to join you in your hobby. Name the hobby, and how they're involved, then draw. Ignore the cue, and instead use the rank:
<ul class="hench-list-1-col">

View File

@ -90,7 +90,7 @@
{{#each actor.system.moves}}
<div class="hench-row hench-l-grey hench-flex-resizeable hench-gap-narrow">
<div class="hench-box hench-flex-fixed">
<input type="checkbox" name="hench-move-checkbox-{{@index}}" class="hench-checkbox-toggle-field" data-field-path="system.moves[{{@index}}].marked" {{#if this.marked}}checked{{/if}} />
<input type="checkbox" name="hench-move-checkbox-{{@index}}" class="hench-checkbox-toggle-field" data-field-path="system.moves[{{@index}}].marked" {{#if this.marked}}checked{{/if}} {{#if this.locked}}disabled{{/if}} />
</div>
<div class="hench-box hench-flex-resizeable hench-gap-narrow hench-padding-narrow">
<div>

View File

@ -230,7 +230,7 @@
{{#each actor.system.moves}}
<div class="hench-row hench-l-grey hench-flex-resizeable hench-gap-narrow">
<div class="hench-box hench-flex-fixed">
<input type="checkbox" name="hench-move-checkbox-{{@index}}" class="hench-checkbox-toggle-field" data-field-path="system.moves[{{@index}}].marked" {{#if this.marked}}checked{{/if}} />
<input type="checkbox" name="hench-move-checkbox-{{@index}}" class="hench-checkbox-toggle-field" data-field-path="system.moves[{{@index}}].marked" {{#if this.marked}}checked{{/if}} {{#if this.locked}}disabled{{/if}} />
</div>
<div class="hench-box hench-flex-resizeable hench-gap-narrow hench-padding-narrow">
<div>