First row of tests and fixes
This commit is contained in:
+12
-3
@@ -5,12 +5,12 @@
|
||||
</div>
|
||||
<div class="item-body">
|
||||
<div class="form-group">
|
||||
<label>Type</label>
|
||||
<label>{{localize "AWEMMY.Ability.TypeLabel"}}</label>
|
||||
{{formField systemFields.abilityType value=system.abilityType localize=true}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Ability.Cost"}}</label>
|
||||
{{formField systemFields.cost value=system.cost}}
|
||||
<label>{{localize "AWEMMY.Ability.CostLabel"}}</label>
|
||||
{{formField systemFields.cost value=system.cost localize=true}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Ability.Frequency"}}</label>
|
||||
@@ -24,6 +24,15 @@
|
||||
<label>{{localize "AWEMMY.Ability.Trigger"}}</label>
|
||||
{{formInput systemFields.trigger value=system.trigger}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Ability.Traits"}}</label>
|
||||
<div class="tags-list">
|
||||
{{#each system.traits}}
|
||||
<span class="tag">{{this}} <a data-action="removeTrait" data-index="{{@index}}">×</a></span>
|
||||
{{/each}}
|
||||
<input type="text" class="new-tag" data-action="addTrait" placeholder="{{localize 'AWEMMY.Ability.AddTrait'}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>Description</legend>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
<div class="item-body">
|
||||
<div class="form-group">
|
||||
<label>Prerequisite Level</label>
|
||||
<label>{{localize "AWEMMY.Archetype.PrerequisiteLevel"}}</label>
|
||||
{{formInput systemFields.prerequisiteLevel value=system.prerequisiteLevel}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<section class="tab character-biography {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
||||
|
||||
<fieldset>
|
||||
<legend>Identity</legend>
|
||||
<legend>{{localize "AWEMMY.Character.Identity"}}</legend>
|
||||
<div class="form-group">
|
||||
<label>Pronouns</label>
|
||||
<label>{{localize "AWEMMY.Character.Pronouns"}}</label>
|
||||
{{formInput systemFields.pronouns value=system.pronouns disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Kit.Field"}}</label>
|
||||
<label>{{localize "AWEMMY.Character.Field"}}</label>
|
||||
{{formInput systemFields.fieldName value=system.fieldName disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Specialization</label>
|
||||
<label>{{localize "AWEMMY.Character.Specialization"}}</label>
|
||||
{{formInput systemFields.specialization value=system.specialization disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -25,7 +25,7 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Description</legend>
|
||||
<legend>{{localize "AWEMMY.Character.Description"}}</legend>
|
||||
{{formInput
|
||||
systemFields.description
|
||||
enriched=enrichedDescription
|
||||
@@ -36,7 +36,7 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Notes</legend>
|
||||
<legend>{{localize "AWEMMY.Character.Notes"}}</legend>
|
||||
{{formInput
|
||||
systemFields.notes
|
||||
enriched=enrichedNotes
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
||||
<div class="item-name">{{item.name}}</div>
|
||||
<div class="item-damage">{{item.system.damageFormula}} ({{item.system.damageType}})</div>
|
||||
<div class="item-range">Range: {{item.system.range}}</div>
|
||||
<div class="item-range">{{localize "AWEMMY.Weapon.Range"}}: {{item.system.range}}</div>
|
||||
<div class="item-controls">
|
||||
<a data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
||||
{{#if ../isEditMode}}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<div class="actor-header character-main-{{#if isPlayMode}}play{{else}}edit{{/if}}">
|
||||
<img class="actor-img" src="{{actor.img}}" data-edit="img" data-action="editImage" data-tooltip="{{actor.name}}" />
|
||||
<div class="actor-identity">
|
||||
{{formInput fields.name value=source.name classes="actor-name"}}
|
||||
<div class="actor-details">
|
||||
<div class="detail-item">
|
||||
<label>{{localize "AWEMMY.Character.Level"}}</label>
|
||||
{{formInput systemFields.level value=system.level disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<label>{{localize "AWEMMY.Character.Stride"}}</label>
|
||||
{{formInput systemFields.stride value=system.stride disabled=isPlayMode}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="actor-stats">
|
||||
{{!-- HP --}}
|
||||
<div class="resource-block">
|
||||
<label>{{localize "AWEMMY.Character.HP"}}</label>
|
||||
<div class="resource-values">
|
||||
{{formInput systemFields.hp.fields.value value=system.hp.value classes="hp-value"}}
|
||||
<span class="separator">/</span>
|
||||
{{formInput systemFields.hp.fields.max value=system.hp.max disabled=isPlayMode classes="hp-max"}}
|
||||
</div>
|
||||
<div class="resource-temp">
|
||||
<label>{{localize "AWEMMY.Character.HPTemp"}}</label>
|
||||
{{formInput systemFields.hp.fields.temp value=system.hp.temp classes="hp-temp"}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Flow Points --}}
|
||||
<div class="resource-block">
|
||||
<label>{{localize "AWEMMY.Character.FlowPoints"}}</label>
|
||||
<div class="resource-values">
|
||||
{{formInput systemFields.flowPoints.fields.value value=system.flowPoints.value classes="fp-value"}}
|
||||
</div>
|
||||
<div class="resource-temp">
|
||||
<label>{{localize "AWEMMY.Character.FlowPointsTemp"}}</label>
|
||||
{{formInput systemFields.flowPoints.fields.temp value=system.flowPoints.temp classes="fp-temp"}}
|
||||
</div>
|
||||
{{#if isPlayMode}}
|
||||
<div class="resource-stepper">
|
||||
<button type="button" data-action="flowPointsPlus" data-tooltip="+1">+</button>
|
||||
<button type="button" data-action="flowPointsMinus" data-tooltip="-1">−</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sheet-controls">
|
||||
<button type="button" data-action="toggleSheet" data-tooltip="{{#if isPlayMode}}{{localize 'AWEMMY.Sheet.EditMode'}}{{else}}{{localize 'AWEMMY.Sheet.PlayMode'}}{{/if}}">
|
||||
{{#if isPlayMode}}<i class="fa-solid fa-lock"></i>{{else}}<i class="fa-solid fa-unlock"></i>{{/if}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,91 +1,46 @@
|
||||
<section class="character-main character-main-{{#if isPlayMode}}play{{else}}edit{{/if}}">
|
||||
|
||||
{{!-- Header: image + name + basic stats --}}
|
||||
<div class="actor-header">
|
||||
<img class="actor-img" src="{{actor.img}}" data-edit="img" data-action="editImage" data-tooltip="{{actor.name}}" />
|
||||
<div class="actor-identity">
|
||||
{{formInput fields.name value=source.name classes="actor-name"}}
|
||||
<div class="actor-details">
|
||||
<div class="detail-item">
|
||||
<label>{{localize "AWEMMY.Character.Level"}}</label>
|
||||
{{formInput systemFields.level value=system.level disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="detail-item">
|
||||
<label>{{localize "AWEMMY.Character.Stride"}}</label>
|
||||
{{formInput systemFields.stride value=system.stride disabled=isPlayMode}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="actor-stats">
|
||||
{{!-- HP --}}
|
||||
<div class="resource-block">
|
||||
<label>{{localize "AWEMMY.Character.HP"}}</label>
|
||||
<div class="resource-values">
|
||||
{{formInput systemFields.hp.fields.value value=system.hp.value classes="hp-value"}}
|
||||
<span class="separator">/</span>
|
||||
{{formInput systemFields.hp.fields.max value=system.hp.max disabled=isPlayMode classes="hp-max"}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Flow Points --}}
|
||||
<div class="resource-block">
|
||||
<label>{{localize "AWEMMY.Character.FlowPoints"}}</label>
|
||||
<div class="resource-values">
|
||||
{{formInput systemFields.flowPoints.fields.value value=system.flowPoints.value classes="fp-value"}}
|
||||
</div>
|
||||
{{#if isPlayMode}}
|
||||
<div class="resource-stepper">
|
||||
<button type="button" data-action="flowPointsPlus" data-tooltip="+1">+</button>
|
||||
<button type="button" data-action="flowPointsMinus" data-tooltip="-1">−</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sheet-controls">
|
||||
<button type="button" data-action="toggleSheet" data-tooltip="{{#if isPlayMode}}{{localize 'AWEMMY.Sheet.EditMode'}}{{else}}{{localize 'AWEMMY.Sheet.PlayMode'}}{{/if}}">
|
||||
{{#if isPlayMode}}<i class="fa-solid fa-lock"></i>{{else}}<i class="fa-solid fa-unlock"></i>{{/if}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<section class="tab character-main {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
||||
|
||||
{{!-- Attributes Table --}}
|
||||
<fieldset>
|
||||
<legend>Attributes</legend>
|
||||
<legend>{{localize "AWEMMY.Character.Attributes"}}</legend>
|
||||
<table class="attributes-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Attribute</th>
|
||||
<th>{{localize "AWEMMY.Character.Attribute"}}</th>
|
||||
<th>{{localize "AWEMMY.Character.BoostLevel"}}</th>
|
||||
<th>{{localize "AWEMMY.Character.Mod"}}</th>
|
||||
<th>{{localize "AWEMMY.Character.DC"}}</th>
|
||||
<th>{{localize "AWEMMY.Character.Bonus"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="attr-label rollable" data-attribute-id="agility">{{localize "AWEMMY.Attribute.Agility"}} <i class="fa-solid fa-dice-d20"></i></td>
|
||||
<td>{{formInput systemFields.attributes.fields.agility.fields.boostLevel value=system.attributes.agility.boostLevel disabled=isPlayMode}}</td>
|
||||
<td>{{system.attributes.agility.mod}}</td>
|
||||
<td>{{system.attributes.agility.dc}}</td>
|
||||
<td class="attr-mod">{{system.attributes.agility.mod}}</td>
|
||||
<td class="attr-dc">{{system.attributes.agility.dc}}</td>
|
||||
<td>{{formInput systemFields.attributes.fields.agility.fields.bonus value=system.attributes.agility.bonus disabled=isPlayMode}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-label rollable" data-attribute-id="fitness">{{localize "AWEMMY.Attribute.Fitness"}} <i class="fa-solid fa-dice-d20"></i></td>
|
||||
<td>{{formInput systemFields.attributes.fields.fitness.fields.boostLevel value=system.attributes.fitness.boostLevel disabled=isPlayMode}}</td>
|
||||
<td>{{system.attributes.fitness.mod}}</td>
|
||||
<td>{{system.attributes.fitness.dc}}</td>
|
||||
<td class="attr-mod">{{system.attributes.fitness.mod}}</td>
|
||||
<td class="attr-dc">{{system.attributes.fitness.dc}}</td>
|
||||
<td>{{formInput systemFields.attributes.fields.fitness.fields.bonus value=system.attributes.fitness.bonus disabled=isPlayMode}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-label rollable" data-attribute-id="awareness">{{localize "AWEMMY.Attribute.Awareness"}} <i class="fa-solid fa-dice-d20"></i></td>
|
||||
<td>{{formInput systemFields.attributes.fields.awareness.fields.boostLevel value=system.attributes.awareness.boostLevel disabled=isPlayMode}}</td>
|
||||
<td>{{system.attributes.awareness.mod}}</td>
|
||||
<td>{{system.attributes.awareness.dc}}</td>
|
||||
<td class="attr-mod">{{system.attributes.awareness.mod}}</td>
|
||||
<td class="attr-dc">{{system.attributes.awareness.dc}}</td>
|
||||
<td>{{formInput systemFields.attributes.fields.awareness.fields.bonus value=system.attributes.awareness.bonus disabled=isPlayMode}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-label rollable" data-attribute-id="influence">{{localize "AWEMMY.Attribute.Influence"}} <i class="fa-solid fa-dice-d20"></i></td>
|
||||
<td>{{formInput systemFields.attributes.fields.influence.fields.boostLevel value=system.attributes.influence.boostLevel disabled=isPlayMode}}</td>
|
||||
<td>{{system.attributes.influence.mod}}</td>
|
||||
<td>{{system.attributes.influence.dc}}</td>
|
||||
<td class="attr-mod">{{system.attributes.influence.mod}}</td>
|
||||
<td class="attr-dc">{{system.attributes.influence.dc}}</td>
|
||||
<td>{{formInput systemFields.attributes.fields.influence.fields.bonus value=system.attributes.influence.bonus disabled=isPlayMode}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -99,7 +54,7 @@
|
||||
<div class="item-row" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
||||
<div class="item-name">{{item.name}}</div>
|
||||
<div class="item-cost">{{item.system.cost}}</div>
|
||||
<div class="item-cost">{{item.costLabel}}</div>
|
||||
<div class="item-controls">
|
||||
<a data-action="edit" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-tooltip="Edit"><i class="fas fa-edit"></i></a>
|
||||
{{#if ../isEditMode}}
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
</div>
|
||||
|
||||
{{#unless isPrivate}}
|
||||
<div class="roll-result">{{total}}</div>
|
||||
<div class="roll-result">
|
||||
{{total}}
|
||||
{{#if dc}}<span class="roll-dc">/ DC {{dc}}</span>{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if outcome}}
|
||||
<div class="outcome-badge {{outcome}}">
|
||||
@@ -21,7 +24,7 @@
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="private-result">
|
||||
<i class="fa-solid fa-eye-slash"></i> Private Roll
|
||||
<i class="fa-solid fa-eye-slash"></i> {{localize "AWEMMY.Roll.Private"}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
{{formInput systemFields.eurekaEvidence value=system.eurekaEvidence}}
|
||||
</div>
|
||||
<div class="eureka-row">
|
||||
<label>Threshold 1</label>
|
||||
<label>{{localize "AWEMMY.Creature.Threshold1"}}</label>
|
||||
{{formInput systemFields.eurekaThreshold1 value=system.eurekaThreshold1}}
|
||||
</div>
|
||||
<div class="eureka-row">
|
||||
<label>Threshold 2</label>
|
||||
<label>{{localize "AWEMMY.Creature.Threshold2"}}</label>
|
||||
{{formInput systemFields.eurekaThreshold2 value=system.eurekaThreshold2}}
|
||||
</div>
|
||||
<div class="eureka-row">
|
||||
|
||||
@@ -8,10 +8,23 @@
|
||||
<label>{{localize "AWEMMY.Field.KeyAttribute"}}</label>
|
||||
{{formField systemFields.keyAttribute value=system.keyAttribute localize=true}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Field.KeyAttribute2"}}</label>
|
||||
{{formField systemFields.keyAttribute2 value=system.keyAttribute2 localize=true}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Field.KnowledgeBonus"}}</label>
|
||||
{{formInput systemFields.knowledgeBonus value=system.knowledgeBonus}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Field.Specializations"}}</label>
|
||||
<div class="tags-list">
|
||||
{{#each system.specializations}}
|
||||
<span class="tag">{{this}} <a data-action="removeSpecialization" data-index="{{@index}}">×</a></span>
|
||||
{{/each}}
|
||||
<input type="text" class="new-tag" data-action="addSpecialization" placeholder="{{localize 'AWEMMY.Field.AddSpecialization'}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>Description</legend>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<form class="awemmy-roll-dialog">
|
||||
|
||||
{{! Attribute name + base modifier (read-only) }}
|
||||
<div class="dialog-row check-label">
|
||||
<span class="attr-name">{{attrLabel}}</span>
|
||||
<span class="base-modifier">
|
||||
{{#if (gt modifier 0)}}+{{modifier}}{{else}}{{modifier}}{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{{! Situational bonus / penalty }}
|
||||
<div class="dialog-row">
|
||||
<label for="awe-bonus">{{localize "AWEMMY.Roll.SituationalBonus"}}</label>
|
||||
<input type="number" id="awe-bonus" name="bonus" value="0" />
|
||||
</div>
|
||||
|
||||
{{! DC (optional) }}
|
||||
<div class="dialog-row">
|
||||
<label for="awe-dc">{{localize "AWEMMY.Roll.DC"}}</label>
|
||||
<input type="number" id="awe-dc" name="dc" value="{{dc}}" placeholder="—" />
|
||||
</div>
|
||||
|
||||
{{! Roll visibility }}
|
||||
<div class="dialog-row">
|
||||
<label for="awe-visibility">{{localize "AWEMMY.Roll.Visibility"}}</label>
|
||||
<select id="awe-visibility" name="visibility">
|
||||
{{selectOptions rollModes selected=visibility localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -20,6 +20,15 @@
|
||||
<label>{{localize "AWEMMY.Weapon.Range"}}</label>
|
||||
{{formInput systemFields.range value=system.range}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Ability.Traits"}}</label>
|
||||
<div class="tags-list">
|
||||
{{#each system.traits}}
|
||||
<span class="tag">{{this}} <a data-action="removeTrait" data-index="{{@index}}">×</a></span>
|
||||
{{/each}}
|
||||
<input type="text" class="new-tag" data-action="addTrait" placeholder="{{localize 'AWEMMY.Ability.AddTrait'}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>Description</legend>
|
||||
|
||||
Reference in New Issue
Block a user