Add secondary stats + char rolls

This commit is contained in:
2024-12-18 18:45:47 +01:00
parent 4d3c15a2a8
commit 93901d5f1e
12 changed files with 150 additions and 34 deletions

View File

@@ -6,11 +6,15 @@
</div>
<div class="intro-right">
<ul>
{{#if (eq rollType "char")}}
<li><strong>{{localize "CTHULHUETERNAL.Label.charRoll"}}</strong></li>
{{/if}}
{{#if (eq rollType "skill")}}
<li><strong>{{localize "CTHULHUETERNAL.Label.skillRoll"}} {{rollItem.name}} : {{initialScore}}</strong></li>
<li>{{localize "CTHULHUETERNAL.Label.modifier"}} : {{modifier}}</li>
<li>{{localize "CTHULHUETERNAL.Label.finalScore"}} : {{targetScore}}</li>
<li><strong>{{localize "CTHULHUETERNAL.Label.skillRoll"}}</strong></li>
{{/if}}
<li><strong>{{rollItem.name}} : {{initialScore}}%</strong></li>
<li>{{localize "CTHULHUETERNAL.Label.modifier"}} : {{modifier}}%</li>
<li>{{localize "CTHULHUETERNAL.Label.targetScore"}} : {{targetScore}}%</li>
{{#if isSuccess}}
{{#if isCritical}}
<li class="result-critical-success">{{localize "CTHULHUETERNAL.Label.criticalSuccess"}}</li>

View File

@@ -1,4 +1,10 @@
<section class="tab protagonist-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
<fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.biodata"}}</legend>
{{formInput systemFields.biodata.fields.harshness value=system.biodata.harshness name="system.biodata.harshness" localize=true}}
</fieldset>
<fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}}

View File

@@ -14,7 +14,7 @@
<div class="flexrow">
{{formField systemFields.hp.fields.value value=system.hp.value}}
/
{{formField systemFields.hp.fields.max value=system.hp.max rootId=partId disabled=isPlayMode}}
{{formField systemFields.hp.fields.max value=system.hp.max rootId=partId disabled=true}}
</div>
</fieldset>
@@ -35,11 +35,11 @@
{{localize "CTHULHUETERNAL.Label.current"}} {{formField systemFields.san.fields.value
value=system.san.value}}
{{localize "CTHULHUETERNAL.Label.max"}} {{formField systemFields.san.fields.max value=system.san.max
rootId=partId disabled=isPlayMode}}
rootId=partId disabled=true}}
{{localize "CTHULHUETERNAL.Label.recovery"}} {{formField systemFields.san.fields.recovery
value=system.san.recovery}}
value=system.san.recovery disabled=true}}
<span data-tooltip='{{localize "CTHULHUETERNAL.Tooltip.sanBP"}}'>{{localize "CTHULHUETERNAL.Label.breakingPoint"}}</span> {{formField systemFields.san.fields.breakingPoint
value=system.san.breakingPoint}}
value=system.san.breakingPoint disabled=true}}
</div>
<div class="flexrow">
{{localize "CTHULHUETERNAL.Label.violence"}}
@@ -60,7 +60,7 @@
<legend>{{localize "CTHULHUETERNAL.Label.willpower"}}</legend>
<div class="flexrow">
{{localize "CTHULHUETERNAL.Label.current"}}{{formField systemFields.wp.fields.value value=system.wp.value}}
{{localize "CTHULHUETERNAL.Label.max"}}{{formField systemFields.wp.fields.max value=system.wp.max rootId=partId disabled=isPlayMode}}
{{localize "CTHULHUETERNAL.Label.max"}}{{formField systemFields.wp.fields.max value=system.wp.max rootId=partId disabled=true}}
{{localize "CTHULHUETERNAL.Label.exhausted"}}{{formField systemFields.wp.fields.exhausted value=system.wp.exhausted }}
</div>
@@ -74,39 +74,39 @@
<fieldset class="protagonist-characteristics protagonist-characteristics-{{ifThen isPlayMode 'play' 'edit'}}">
<legend>{{localize "CTHULHUETERNAL.Label.characteristics"}}</legend>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.strShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="str">{{localize "CTHULHUETERNAL.Label.strShort"}}</label>
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.str}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.str.value 5}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.dexShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="dex">{{localize "CTHULHUETERNAL.Label.dexShort"}}</label>
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.dex}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.dex.value 5}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.conShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="con">{{localize "CTHULHUETERNAL.Label.conShort"}}</label>
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.con}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.con.value 5}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.intShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="int">{{localize "CTHULHUETERNAL.Label.intShort"}}</label>
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.int}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.int.value 5}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.powShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="pow">{{localize "CTHULHUETERNAL.Label.powShort"}}</label>
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.pow}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.pow.value 5}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="characteristic">
<label>{{localize "CTHULHUETERNAL.Label.chaShort"}}</label>
<label class="rollable" data-roll-type="char" data-char-id="cha">{{localize "CTHULHUETERNAL.Label.chaShort"}}</label>
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.cha}}
rootId=partId disabled=isPlayMode }}
{{mul system.characteristics.cha.value 5}}
</div>
</fieldset>

View File

@@ -1,18 +1,21 @@
{{log "roll-dialog" this}}
<div class="fvtt-cthulhu-eternal-roll-dialog">
{{#if (eq rollType "skill")}}
<fieldSet>
{{#if (eq rollType "skill")}}
<legend>{{localize "CTHULHUETERNAL.Label.skill"}}</legend>
<div class="dialog-skill">{{rollItem.name}} : {{initialScore}}</div>
{{/if}}
{{#if (eq rollType "char")}}
<legend>{{localize "CTHULHUETERNAL.Label.characteristic"}}</legend>
{{/if}}
<div class="dialog-skill">{{rollItem.name}} : {{initialScore}}%</div>
</fieldSet>
<fieldSet class="dialog-modifier">
<legend>{{localize "CTHULHUETERNAL.Label.modifier"}}</legend>
<select name="modifier" class="roll-skill-modifier">
{{selectOptions choiceModifier selected=modifier}}
</select>
</fieldSet>
{{/if}}
<fieldSet>
<legend>{{localize "CTHULHUETERNAL.Label.rollView"}}</legend>
<select name="visibility">