Manage wounds
This commit is contained in:
@ -154,32 +154,59 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Consequences Tab --}}
|
||||
<div class="tab consequences" data-group="primary" data-tab="consequences">
|
||||
<ul class="item-list alternate-list">
|
||||
{{#each data.consequences as |conseq key|}}
|
||||
<li class="item flexrow list-item" data-item-id="{{conseq._id}}">
|
||||
<img class="sheet-skill-img" src="{{conseq.img}}"/>
|
||||
<span class="conseq-label">{{conseq.name}}</span>
|
||||
<select class="stat-value flexrow consequence-severity" type="text" name="conseq.data.severity" value="{{conseq.data.severity}}" data-dtype="String">
|
||||
{{#select conseq.data.severity}}
|
||||
<option value="none">None</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="moderate">Moderate</option>
|
||||
<option value="severe">Severe</option>
|
||||
<option value="critical">Critical</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<span><a class="lock-unlock-sheet"><img class="small-button-container"
|
||||
src="systems/foundryvtt-shadows-over-sol/img/icons/{{#if data.editStatSkill}}unlocked.svg{{else}}locked.svg{{/if}}" alt="lock/unlock"
|
||||
>{{#if data.editStatSkill}}Lock{{else}}Unlock{{/if}}</a></span>
|
||||
<h4>Wounds & Conséquences</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="flex-group-left flexcol skill-column">
|
||||
<ul class="item-list alterne-list">
|
||||
<li class="item flexrow list-item" data-wound-name="light"><h4>Wounds : </h4></li>
|
||||
<li class="item flexrow list-item" data-wound-name="light"><span class="skill-label">Light :</span>
|
||||
<input class="wound-value" type="text" woundname="light" value="{{numberFormat data.wounds.light decimals=0}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
|
||||
</li>
|
||||
<li class="item flexrow list-item" data-wound-name="moderate"><span class="skill-label">Moderate :</span>
|
||||
<input class="wound-value" type="text" woundname="moderate" value="{{numberFormat data.wounds.moderate decimals=0}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
|
||||
</li>
|
||||
<li class="item flexrow list-item" data-wound-name="severe"><span class="skill-label">Severe :</span>
|
||||
<input class="wound-value" type="text" woundname="severe" value="{{numberFormat data.wounds.severe decimals=0}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
|
||||
</li>
|
||||
<li class="item flexrow list-item" data-wound-name="critical"><span class="skill-label">Critical :</span>
|
||||
<input class="wound-value" type="text" woundname="critical" value="{{numberFormat data.wounds.critical decimals=0}}" data-dtype="number" {{#unless @root.data.editStatSkill}}disabled{{/unless}}/>
|
||||
</li>
|
||||
<li class="item flexrow list-item" data-wound-name="critical"><span class="skill-label">Total :</span>
|
||||
<span class="skill-label">{{data.currentWounds}} / {{data.totalWounds}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex-group-left flexcol skill-column">
|
||||
<ul class="item-list alterne-list">
|
||||
{{#each data.consequences as |conseq key|}}
|
||||
<li class="item flexrow list-item" data-item-id="{{conseq._id}}">
|
||||
<img class="sheet-skill-img" src="{{conseq.img}}"/>
|
||||
<span class="conseq-label">{{conseq.name}}</span>
|
||||
<select class="consequence-severity" type="text" name="conseq.data.severity" value="{{conseq.data.severity}}" data-dtype="String">
|
||||
{{#select conseq.data.severity}}
|
||||
<option value="none">None</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="moderate">Moderate</option>
|
||||
<option value="severe">Severe</option>
|
||||
<option value="critical">Critical</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Gears Tab --}}
|
||||
@ -274,14 +301,17 @@
|
||||
</article>
|
||||
|
||||
<article class="flexcol">
|
||||
<hr>
|
||||
<h3>Biography : </h3>
|
||||
<div class="form-group medium-editor">
|
||||
{{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}}
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.history target="data.history" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<hr>
|
||||
<h3>Notes : </h3>
|
||||
<div class="form-group medium-editor">
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<hr>
|
||||
{{>"systems/foundryvtt-shadows-over-sol/templates/editor-notes-gm.html"}}
|
||||
</article>
|
||||
</div>
|
||||
|
9
templates/chat-character-death.html
Normal file
9
templates/chat-character-death.html
Normal file
@ -0,0 +1,9 @@
|
||||
<h2>{{name}} is dead ! </h2>
|
||||
<div class="flexcol">
|
||||
<label>Light Wounds : {{wounds.light}}</label>
|
||||
<label>Moderate Wounds : {{wounds.moderate}}</label>
|
||||
<label>Severe Wounds : {{wounds.severe}}</label>
|
||||
<label>Critical Wounds : {{wounds.critical}}</label>
|
||||
<label>Current wounds value : {{currentWounds}}</label>
|
||||
<label>Total wounds : {{totalWounds}}</label>
|
||||
</div>
|
Reference in New Issue
Block a user