Remove heat
This commit is contained in:
parent
1d168a7bf4
commit
ae65b5750f
@ -123,8 +123,6 @@ export class BossDataModel extends foundry.abstract.TypeDataModel {
|
|||||||
details: cappedArrayField(promptField(), 4),
|
details: cappedArrayField(promptField(), 4),
|
||||||
storyline: new StringField({ required: true, blank: false, initial: nullStorylineKey, options: storylineKeys}),
|
storyline: new StringField({ required: true, blank: false, initial: nullStorylineKey, options: storylineKeys}),
|
||||||
|
|
||||||
heat: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 18}),
|
|
||||||
|
|
||||||
experienceTriggers: cappedArrayField(markableField(), 4),
|
experienceTriggers: cappedArrayField(markableField(), 4),
|
||||||
experience: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 5 }),
|
experience: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 5 }),
|
||||||
|
|
||||||
@ -144,10 +142,4 @@ export class BossDataModel extends foundry.abstract.TypeDataModel {
|
|||||||
|
|
||||||
return this.updateSource(initMutation);
|
return this.updateSource(initMutation);
|
||||||
}
|
}
|
||||||
|
|
||||||
get tier() {
|
|
||||||
const divisor = 18 / 3;
|
|
||||||
|
|
||||||
return Math.ceil(this.heat / divisor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -4,15 +4,17 @@ export const versions = {
|
|||||||
UNDEFINED: undefined,
|
UNDEFINED: undefined,
|
||||||
DRAFT_0: '0',
|
DRAFT_0: '0',
|
||||||
DRAFT_1: '1',
|
DRAFT_1: '1',
|
||||||
|
DRAFT_2: '2',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CURRENT_VERSION = versions.DRAFT_1;
|
export const CURRENT_VERSION = versions.DRAFT_2;
|
||||||
|
|
||||||
const updateMap = {
|
const updateMap = {
|
||||||
[versions.UNDEFINED]: versions.DRAFT_0,
|
[versions.UNDEFINED]: versions.DRAFT_0,
|
||||||
[versions.EMPTY]: versions.DRAFT_0,
|
[versions.EMPTY]: versions.DRAFT_0,
|
||||||
[versions.NULL]: versions.DRAFT_0,
|
[versions.NULL]: versions.DRAFT_0,
|
||||||
[versions.DRAFT_0]: versions.DRAFT_1,
|
[versions.DRAFT_0]: versions.DRAFT_1,
|
||||||
|
[versions.DRAFT_1]: versions.DRAFT_2,
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateWarnings = {
|
const updateWarnings = {
|
||||||
@ -24,6 +26,14 @@ const updateWarnings = {
|
|||||||
<li> You delete and recreate your deck, or update the Ace of Diamonds and add a joker. </li>
|
<li> You delete and recreate your deck, or update the Ace of Diamonds and add a joker. </li>
|
||||||
</ul>`,
|
</ul>`,
|
||||||
},
|
},
|
||||||
|
[versions.DRAFT_2]: {
|
||||||
|
title: `Draft 2 update!`,
|
||||||
|
content: `The module is now compatible with Draft 2. Due to these changes, we recommend:
|
||||||
|
<ul>
|
||||||
|
<li> You create new character sheets for Henches and Bosses, and delete the old ones. </li>
|
||||||
|
</ul>
|
||||||
|
`,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function getWarningsSinceVersion(oldVersion) {
|
function getWarningsSinceVersion(oldVersion) {
|
||||||
|
|||||||
@ -19,7 +19,6 @@ export class HenchActorSheet extends ActorSheet {
|
|||||||
// TODO define system constants for these
|
// TODO define system constants for these
|
||||||
context.maxStress = 8;
|
context.maxStress = 8;
|
||||||
context.maxExp = 5;
|
context.maxExp = 5;
|
||||||
context.maxHeat = 18;
|
|
||||||
|
|
||||||
context.minGear = 3;
|
context.minGear = 3;
|
||||||
context.maxGear = 5;
|
context.maxGear = 5;
|
||||||
|
|||||||
@ -54,76 +54,6 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Heat -->
|
|
||||||
<div class="hench-row hench-flex-resizeable">
|
|
||||||
<div class="hench-box hench-box-stretch hench-d-grey hench-flex-resizeable hench-padding-narrow hench-gap-narrow">
|
|
||||||
<div class="hench-row hench-flex-fixed hench-padding-wide">
|
|
||||||
<div class="hench-centered hench-title hench-flex-resizeable">
|
|
||||||
Heat
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- tier 1 -->
|
|
||||||
<div class="hench-row hench-flex-resizeable">
|
|
||||||
<div class="hench-box hench-flex-resizeable hench-m-grey hench-padding-narrow hench-gap-narrow">
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<strong>Tier I</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<em>(Nuisance, low-stakes, local cops)</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-flex-resizeable hench-row-even hench-gap-narrow">
|
|
||||||
{{#partialint2checkbox maxHeat actor.system.heat 0 6}}
|
|
||||||
<input type="checkbox" class="hench-checkbox-int-field" data-field-path="system.heat" data-value="{{index}}" {{#if marked}} checked {{/if}} />
|
|
||||||
{{/partialint2checkbox}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- tier 2 -->
|
|
||||||
<div class="hench-row hench-flex-resizeable">
|
|
||||||
<div class="hench-box hench-flex-resizeable hench-m-grey hench-padding-narrow hench-gap-narrow">
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<strong>Tier II</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<em>(Full-time, classic stakes, local super)</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-flex-resizeable hench-row-even hench-gap-narrow">
|
|
||||||
{{#partialint2checkbox maxHeat actor.system.heat 6 12}}
|
|
||||||
<input type="checkbox" class="hench-checkbox-int-field" data-field-path="system.heat" data-value="{{index}}" {{#if marked}} checked {{/if}} />
|
|
||||||
{{/partialint2checkbox}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- tier 3 -->
|
|
||||||
<div class="hench-row hench-flex-resizeable">
|
|
||||||
<div class="hench-box hench-flex-resizeable hench-m-grey hench-padding-narrow hench-gap-narrow">
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<strong>Tier III</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-centered hench-flex-resizeable">
|
|
||||||
<div class="hench-flex-resizeable hench-centered">
|
|
||||||
<em>(Top-class, high-stakes, world's finest heroes)</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hench-row hench-flex-resizeable hench-row-even hench-gap-narrow">
|
|
||||||
{{#partialint2checkbox maxHeat actor.system.heat 12 18}}
|
|
||||||
<input type="checkbox" class="hench-checkbox-int-field" data-field-path="system.heat" data-value="{{index}}" {{#if marked}} checked {{/if}} />
|
|
||||||
{{/partialint2checkbox}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Experience -->
|
<!-- Experience -->
|
||||||
<div class="hench-row hench-flex-resizeable">
|
<div class="hench-row hench-flex-resizeable">
|
||||||
<div class="hench-box hench-m-grey hench-flex-resizeable hench-padding-narrow hench-gap-narrow">
|
<div class="hench-box hench-m-grey hench-flex-resizeable hench-padding-narrow hench-gap-narrow">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user