Roll pour carrière
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="stats">Stats</a>
|
||||
<a class="item" data-tab="stats">Attributs</a>
|
||||
<a class="item" data-tab="features">Traits</a>
|
||||
<a class="item" data-tab="equipment">Equipement</a>
|
||||
<a class="item" data-tab="description">Description</a>
|
||||
@ -69,8 +69,8 @@
|
||||
<div class="tab features" data-group="primary" data-tab="features">
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-image">Careers</div>
|
||||
<div class="item-name">Name</div>
|
||||
<div class="item-image">{{localize "Careers"}}</div>
|
||||
<div class="item-name">{{localize "Name"}}</div>
|
||||
<!-- <div class="item-controls">-->
|
||||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
||||
<!-- </div>-->
|
||||
@ -78,7 +78,8 @@
|
||||
{{#each data.features.careers as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/></div>
|
||||
<h4 class="item-name">{{item.name}}</h4>
|
||||
<h4 class="item-name"><a class="roll-career">{{item.name}}</a></h4>
|
||||
<span class="item-name">{{item.data.data.rank}}</span>
|
||||
<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>
|
||||
@ -88,8 +89,8 @@
|
||||
</ol>
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-image">Boons</div>
|
||||
<div class="item-name">Name</div>
|
||||
<div class="item-image">{{localize "Boons"}}</div>
|
||||
<div class="item-name">{{localize "Name"}}</div>
|
||||
<!-- <div class="item-controls">-->
|
||||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
||||
<!-- </div>-->
|
||||
@ -107,8 +108,8 @@
|
||||
</ol>
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-image">Flaws</div>
|
||||
<div class="item-name">Name</div>
|
||||
<div class="item-image">{{localize "Flaws"}}</div>
|
||||
<div class="item-name">{{localize "Name"}}</div>
|
||||
<!-- <div class="item-controls">-->
|
||||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
||||
<!-- </div>-->
|
||||
@ -128,8 +129,8 @@
|
||||
<div class="tab equipment" data-group="primary" data-tab="equipment">
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-image">Inventory</div>
|
||||
<div class="item-name">Name</div>
|
||||
<div class="item-image">{{localize "Inventory"}}</div>
|
||||
<div class="item-name">{{localize "Name"}}</div>
|
||||
<!-- <div class="item-controls">-->
|
||||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
||||
<!-- </div>-->
|
||||
|
@ -1,8 +1,8 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@ -17,6 +17,19 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
@ -24,6 +37,12 @@
|
||||
<div class="tab properties" data-group="primary" data-tab="properties">
|
||||
{{!-- As you add new fields, add them in here! --}}
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
{{#if (eq data.subtype "career")}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "rank"}}</label>
|
||||
<input type="text" name="data.rank" value="{{data.rank}}" data-dtype="Number"/>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
@ -32,7 +51,15 @@
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
28
templates/roll/chat-generic-result.hbs
Normal file
28
templates/roll/chat-generic-result.hbs
Normal file
@ -0,0 +1,28 @@
|
||||
<div class="chat-message-header">
|
||||
<img class="chat-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
<h4 class=chat-actor-name>{{alias}}</h4>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div>
|
||||
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
||||
<h4>
|
||||
{{#if (eq mode "career")}}
|
||||
{{localize "Career"}} : {{career.name}}
|
||||
{{else}}
|
||||
{{#if (eq mode "weapon")}}
|
||||
Weapon attack : {{weapon.name}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</h4>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<li>Formula : {{formula}}</li>
|
||||
<li>Modifier : {{modifier}} </li>
|
||||
<li><strong>Total Roll : {{finalScore}}</strong>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
8
templates/roll/roll-dialog-attribute.hbs
Normal file
8
templates/roll/roll-dialog-attribute.hbs
Normal file
@ -0,0 +1,8 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
56
templates/roll/roll-dialog-career.hbs
Normal file
56
templates/roll/roll-dialog-career.hbs
Normal file
@ -0,0 +1,56 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "rank"}}</label>
|
||||
<label class="property-label">{{career.data.rank}}</label>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "attribut"}}</label>
|
||||
<select id="rollAttribute" value="rollAttribute">
|
||||
{{#select rollAttribute}}
|
||||
<option value="vigor">{{localize "BOL.attributes.vigor"}}</option>
|
||||
<option value="agility">{{localize "BOL.attributes.agility"}}</option>
|
||||
<option value="mind">{{localize "BOL.attributes.mind"}}</option>
|
||||
<option value="appeal">{{localize "BOL.attributes.appeal"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6M"}}</label>
|
||||
<select id="d6Malus" value="d6Malus">
|
||||
{{#select d6Malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6B"}}</label>
|
||||
<select id="d6Bonus" value="d6Bonus">
|
||||
{{#select d6Bonus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Modifier"}}</label>
|
||||
<select id="bonusMalus" value="bonusMalus">
|
||||
{{#select bonusMalus}}
|
||||
{{{optionsBonusMalus}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</form>
|
8
templates/roll/roll-dialog-spell.hbs
Normal file
8
templates/roll/roll-dialog-spell.hbs
Normal file
@ -0,0 +1,8 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
8
templates/roll/roll-dialog-weapon.hbs
Normal file
8
templates/roll/roll-dialog-weapon.hbs
Normal file
@ -0,0 +1,8 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
Reference in New Issue
Block a user