Initial import

This commit is contained in:
2021-12-02 20:18:21 +01:00
parent 522cad2ff8
commit b3f0af8c12
14 changed files with 201 additions and 286 deletions

View File

@@ -36,10 +36,10 @@
<ul>
{{#each data.statistics as |stat key|}}
<li class="item flexrow list-item" data-attr-key="{{key}}">
<span class="stat-label flexrow" name="{{key}}"><h4><a class="roll-stat" data-stat-id="{{key}}"">{{stat.label}}</a></h4></span>
<span class="stat-label flexrow" name="{{key}}"><h4><a class="roll-stat" data-stat-key="{{key}}"">{{stat.label}}</a></h4></span>
<select class="carac-base flexrow" type="text" name="data.statistics.{{key}}.value" value="{{stat.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.value}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-level.html}}
{{{@root.optionsDiceList}}}
{{/select}}
</select>
<input type="text" class="input-numeric-short padd-right" name="stat.mod" value="{{stat.mod}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}/>
@@ -55,7 +55,7 @@
<span class="stat-label flexrow" name="{{key}}"><h4>{{stat2.label}}</h4></span>
<select class="carac-base flexrow" type="text" name="data.secondary.{{key}}.value" value="{{stat2.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat2.value}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-level.html}}
{{{@root.optionsLevel}}}
{{/select}}
</select>
</li>
@@ -77,7 +77,9 @@
{{#each specs as |spec key|}}
<li class="item stat flexrow list-item" data-item-id="{{spec._id}}">
<img class="sheet-competence-img" src="{{spec.img}}"/>
<span class="stat-label">{{spec.name}}</span>
<span class="stat-label"><a class="roll-spec">{{spec.name}}</a></span>
<span class="stat-label">{{spec.data.statistic}}</span>
<span class="stat-label">{{spec.data.dice}}</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>
@@ -93,14 +95,6 @@
<div class="tab fight" data-group="primary" data-tab="fight">
<div class="flexcol">
<ul class="stat-list alternate-list">
<li class="item stat flexrow list-item">
<span class="generic-label"><h3>Health</h3></span>
<input type="text" class="" name="data.secondary.health.value" value="{{data.secondary.health.value}}" data-dtype="Number"/>
/ {{data.secondary.health.max}}
</li>
</ul>
<span class="generic-label"><h3>Weapons</h3></span>
<ul class="stat-list alternate-list">
{{#each weapons as |weapon key|}}

View File

@@ -8,11 +8,11 @@
<div >
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
<h4>
{{#if (eq mode "skill")}}
Skill : {{skill.name}}
{{#if (eq mode "stat")}}
Statistic : {{stat.label}}
{{else}}
{{#if (eq mode "technique")}}
Technique : {{technique.name}}
{{#if (eq mode "spec")}}
Technique : {{spec.name}}
{{else}}
{{#if (eq mode "weapon")}}
Weapon attack : {{weapon.name}}
@@ -23,33 +23,14 @@
</div>
<div class="flexcol">
<div class="dice-total">
{{#each diceResults as |diceResult key|}}
<div class="dice">
{{#if (gt @root.nbDice 2)}}
<a class="dice-to-river" data-actor-id="{{@root.actorId}}" data-roll-id="{{@root.rollId}}" data-dice-index="{{key}}" data-dice-value="{{diceResult.result}}">
{{/if}}
<label>{{diceResult.result}}</label>
<img src="systems/fvtt-weapons-of-the-gods/images/dice/d10black.svg" />
{{#if (gt @root.nbDice 2)}}
</a>
{{/if}}
</div>
{{/each}}
</div>
<div>
<ul>
{{#if (eq mode "technique")}}
<li>{{technique.data.chicolor}} Chi cost : {{technique.data.chicost}} </li>
<li><button class="chat-card-button apply-technique-cost" data-actor-id="{{actorId}}" data-roll-id="{{@root.rollId}}" data-technique-id="{{technique._id}}">Apply Chi cost</button></li>
<li>Effect description : {{technique.data.effectdescription}}</li>
{{/if}}
{{#if (eq mode "weapon")}}
<li>Effect description : {{weapon.data.effectdescription}}</li>
{{/if}}
<li>Modifiers : {{negativeModifier}} / {{positiveModifier}} </li>
<li><strong>Total Roll : {{finalScore}}</strong>
<li><strong>Final Result : {{finalScore}}</strong>
{{#if linkedRollId}}
<li><button class="chat-card-button apply-defense-roll" data-roll-score="{{finalScore}}" data-roll-id="{{@root.rollId}}" data-actor-id="{{actorId}}" data-defender-id="{{defenseAttackerId}}">Use this Roll as defense</button></li>

View File

@@ -21,7 +21,7 @@
<li class="flexrow"><label class="generic-label">Level</label>
<select class="competence-base flexrow" type="text" name="data.level" value="{{data.level}}" data-dtype="Number">
{{#select data.level}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-level.html}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>

View File

@@ -1,3 +1,4 @@
<option value="0">0</option>
<option value="1">d4</option>
<option value="2">d6</option>
<option value="3">d8</option>

View File

@@ -1,46 +0,0 @@
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label" >{{skillAttr.label}} : {{skillAttr.value}}</span>
<span class="roll-dialog-label" >Skill Level : {{skill.data.level}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Specialties reminder : </span>
<span class="roll-dialog-label" >{{skill.data.specialties}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Specialties Dices Bonus : </span>
<select class="competence-base" id="specialtiesBonus" type="text" name="specialtiesBonus" value="{{specialtiesBonus}}" data-dtype="Number">
{{#select specialtiesBonus}}
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
{{/select}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Negative Modifier :</span>
<select class="roll-dialog-label" id="negativeModifier" type="text" name="negativeModifier" value="{{negativeModifier}}" data-dtype="Number">
{{#select negativeModifier}}
{{{optionsNegative}}}
{{/select}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Positive Modifier :</span>
<select class="roll-dialog-label" id="positiveModifier" type="text" name="positiveModifier" value="{{positiveModifier}}" data-dtype="Number">
{{#select positiveModifier}}
{{{optionsPositive}}}
{{/select}}
</select>
</div>
</div>
</form>