tellement de trucs

This commit is contained in:
rwanoux
2024-05-13 18:27:54 +02:00
parent 9cee590267
commit 83c3f1df0b
83 changed files with 1457 additions and 702 deletions
+69 -47
View File
@@ -1,71 +1,93 @@
<div class="grid grid-2col">
<div>
<h4 class="align-center">{{ localize "VERMINE.self_control"}} :
<div class="self-control-container">
<h4 class="align-center">
<a class="min-max-edit" data-prop="system.attributes.effort">
<i class="fas fa-cogs"> </i>
</a>
{{ localize "VERMINE.self_control"}} :
{{@root.system.attributes.self_control.value}}/
{{@root.system.attributes.self_control.max}}
</h4>
{{setVar "SCIndex" 1}}
<div class="reserve-grid">
{{#repeat 4 1 "row"}}
<div class="flexrow">
{{#repeat 10 1}}
<div class="hexa
{{#iflteq @index @root.system.attributes.self_control.value }}
<div class="flexrow">
{{#repeat @row @root.SCIndex "case"}}
{{log @root.SCIndex}}
<div class="hexa
{{#iflteq @case @root.system.attributes.self_control.value }}
checked
{{/iflteq}}
{{#ifgt @index @root.system.attributes.self_control.max }}
{{/iflteq}}
{{#ifgt @case @root.system.attributes.self_control.max }}
unavailable
{{/ifgt}}">
{{#iflteq @index @root.system.attributes.self_control.max }}
<input type="radio" data-dtype="Number"
name="system.attributes.self_control.value"
value="{{@index}}" {{#ife @root.system.attributes.self_control.value
@index
}}checked="checked"{{/ife}}
class="
{{#iflteq @index @root.system.attributes.self_control.max }}
{{/ifgt}}">
{{#iflteq @row @root.system.attributes.self_control.max }}
<input type="radio" data-dtype="Number"
name="system.attributes.self_control.value"
value="{{@case}}" {{#ife
@root.system.attributes.self_control.value
@root.selfControlIndex
}}checked="checked"{{/ife}}
class="
{{#iflteq @case @root.system.attributes.self_control.max }}
checked
{{/iflteq}}
" />
{{/iflteq}}
" />
{{/iflteq}}
</div>
{{setVar "SCIndex" (math_add @root.SCIndex 1)}}
{{/repeat}}
</div>
{{/repeat}}
</div>
</div>
<div>
<h4 class="align-center">{{ localize "VERMINE.effort"}} :
<div class="effort-container">
<h4 class="align-center">
<a class="min-max-edit" data-prop="system.attributes.effort">
<i class="fas fa-cogs"></i>
</a>
{{ localize "VERMINE.effort"}} :
{{@root.system.attributes.effort.value}}/
{{@root.system.attributes.effort.max}}
</h4>
{{setVar "EffIndex" 1}}
<div class="flexrow">
{{#repeat 10 1}}
<div
class="hexa
{{#iflteq @index @root.system.attributes.effort.value }}
<div class="reserve-grid">
{{#repeat 4 1 "row"}}
<div class="flexrow">
{{#repeat @row @root.EffIndex "case"}}
{{log @root.EffIndex}}
<div class="hexa
{{#iflteq @case @root.system.attributes.effort.value }}
checked
{{/iflteq}}
{{#ifgt @index @root.system.attributes.effort.max }}
{{/iflteq}}
{{#ifgt @case @root.system.attributes.effort.max }}
unavailable
{{/ifgt}}">
{{#iflteq @index @root.system.attributes.effort.max }}
<input type="radio" data-dtype="Number"
name="system.attributes.effort.value"
value="{{@index}}" {{#ife @root.system.attributes.effort.value
@index
}}checked="checked"{{/ife}}
class="
{{#iflteq @index @root.system.attributes.effort.value }}
{{/ifgt}}">
{{#iflteq @row @root.system.attributes.effort.max }}
<input type="radio" data-dtype="Number"
name="system.attributes.effort.value"
value="{{@case}}" {{#ife
@root.system.attributes.effort.value
@root.selfControlIndex
}}checked="checked"{{/ife}}
class="
{{#iflteq @case @root.system.attributes.effort.max }}
checked
{{/iflteq}}
" />
{{/iflteq}}
" />
{{/iflteq}}
</div>
{{setVar "EffIndex" (math_add @root.EffIndex 1)}}
{{/repeat}}
</div>
{{#ife @index 1}}
<br />
{{/ife}}
{{/repeat}}
</div>
</div>
@@ -77,7 +99,7 @@
data-tooltip="seuil">({{
system.minorWound.threshold }})</span>
<div class="flexrow">
{{#repeat system.minorWound.max 1}}
{{#repeat system.minorWound.max 1 "minorwoundmax"}}
<div class="hexa ability{{#iflteq @index @root.system.minorWound.value }}
checked
{{/iflteq}}">
@@ -98,7 +120,7 @@
<span>({{
system.majorWound.threshold }})</span>
<div class="flexrow">
{{#repeat system.majorWound.max 1}}
{{#repeat system.majorWound.max 1 majourwoundmax}}
<div class="hexa ability{{#iflteq @index @root.system.majorWound.value }}
checked
{{/iflteq}}">
@@ -119,7 +141,7 @@
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}}
<span>({{system.deadlyWound.threshold }})</span>
<div class="flexrow">
{{#repeat system.deadlyWound.max 1}}
{{#repeat system.deadlyWound.max 1 "deadlywoundmax"}}
<div class="hexa ability{{#iflteq @index @root.system.deadlyWound.value }}
checked
{{/iflteq}}">
@@ -15,14 +15,25 @@
</div>
{{/if}}
{{/each}}
</div>
{{/each}}
</div>
<h3>Compétences</h3>
<div class="grid grid-2col">
{{#each config.skillCategories as |skillCategory sckey|}}
<div class="col">
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}</h4>
{{#each system.skill_categories as |skillCategory sckey|}}
{{#if skillCategory.label}}
<div class="col
{{#ife sckey @root.system.skill_categories.preferred}}
preferred
{{/ife}}">
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}
<input type="radio" data-tooltip="domaine de prédilection ?"
name="system.skill_categories.preferred" value="{{sckey}}"
{{#ife sckey @root.system.skill_categories.preferred}}
checked
{{/ife}}>
</h4>
{{#each @root.system.skills as |skill skey|}}
{{#if (eq skill.category sckey) }}
@@ -36,7 +47,11 @@
</label>
<div class="specialties">
{{#each @root.specialties as |spe ind|}}
{{#ifgt skill.value 1}}
<i class="fas fa-add add-specialty"
data-tooltip="ajout de spécialité"></i>
{{/ifgt}}
{{#each skill.specialties as |spe ind|}}
{{#ife spe.system.skill skey}}
<i class="specialty"
data-tooltip="spécialité utilisable">{{spe.name}}</i>
@@ -53,11 +68,11 @@
</select>
<span class="hexa">{{skill.value}}</span>
<div class="skill-dots flexrow">
{{#repeat (skillLevel "dicePool" skill.value) 0}}
{{#repeat (skillLevel "dicePool" skill.value) 0 "dicepool"}}
<div class="dice-pool-dot"
data-tooltip="{{localize "VERMINE.pool"}}"></div>
{{/repeat}}
{{#repeat (skillLevel "reroll" skill.value) 0}}
{{#repeat (skillLevel "reroll" skill.value) 0 "dicereroll"}}
<div class="dice-reroll-dot"
data-tooltip="{{localize "VERMINE.reroll"}}">X</div>
{{/repeat}}
@@ -68,5 +83,6 @@
{{/if}}
{{/each}}
</div>
{{/if}}
{{/each}}
</div>
+8 -5
View File
@@ -10,19 +10,21 @@
major
{{/ifgt}}
">{{localize "TOTEMS.human.name"}}
<img src="/systems/vermine2047/assets/images/ui/totems/human.webp" />
<img class="img-totem"
src="/systems/vermine2047/assets/images/ui/totems/human.webp" />
</h5>
<h5 class="adapted
{{#ifgt system.adaptation.totems.human.value system.adaptation.totems.adapted.value}}
{{#ifgt system.adaptation.totems.adapted.value system.adaptation.totems.human.value}}
major
{{/ifgt}}">{{localize "TOTEMS.adapted.name"}}
<img src="/systems/vermine2047/assets/images/ui/totems/adapted.webp" />
<img class="img-totem"
src="/systems/vermine2047/assets/images/ui/totems/adapted.webp" />
</h5>
<div class="totem-dice flexrow flex-group-center">
<div class="human-dice flexrow">
{{#repeat system.adaptation.totems.human.max 1}}
{{#repeat system.adaptation.totems.human.max 1 "humantotem"}}
<div class="hexa" data-totem-name="human" data-totem-value="{{@index}}">
{{#ifgteq system.adaptation.totems.human.value @index}}
<div class="human-die"><i class="fas fa-dice-d10"></i></div>
@@ -32,7 +34,7 @@
</div>
<div class="adapted-dice flexrow">
{{#repeat system.adaptation.totems.adapted.max 1}}
{{#repeat system.adaptation.totems.adapted.max 1 "adaptedtotem"}}
<div class="hexa" data-totem-name="adapted" data-totem-value="{{@index}}">
{{#ifgteq system.adaptation.totems.adapted.value @index}}
<div class="adapted-die"><i class="fas fa-dice-d10"></i></div>
@@ -48,6 +50,7 @@
<div class="flexcol flex-group-center items-center w-full">
<h4>{{ smarttl 'TOTEMS' system.identity.totem 'name' }}</h4>
<img
class="img-totem"
src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp"
alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80"
height="80" />
+29 -20
View File
@@ -1,21 +1,35 @@
{{#if system.identity.totem}}
<h4 class="align-center">
{{ smarttl 'TOTEMS' system.identity.totem 'name' }}
</h4>
<p style="font-size:80%;">{{ smarttlk "TOTEMS" system.identity.totem
"description"}}</p>
<div class="grid grid-2col">
<div class>
<div class="item-name"><strong>Principes</strong><br />{{ smarttlk "TOTEMS"
system.identity.totem "instincts"}}</div>
</div>
<div class>
<div class="item-name"><strong>Interdits</strong><br />{{ smarttlk "TOTEMS"
system.identity.totem "bans"}}</div>
<div class="totem-details">
<img
class="img-totem"
src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp"
alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80"
height="80" />
<h4 class="align-center">
{{ smarttl 'TOTEMS' system.identity.totem 'name' }}
</h4>
<p style="font-size:80%;">{{ smarttlk "TOTEMS" system.identity.totem
"description"}}</p>
<div class="grid grid-2col">
<div class>
<div class="item-name"><strong>Principes</strong><br />{{ smarttlk
"TOTEMS"
system.identity.totem "instincts"}}</div>
</div>
<div class>
<div class="item-name"><strong>Interdits</strong><br />{{ smarttlk
"TOTEMS"
system.identity.totem "bans"}}</div>
</div>
</div>
</div>
<hr>
{{else}}
<h3>choisissez un totem</h3>
{{/if}}
<div class="grid grid-2col">
<div>
<h4>
@@ -128,9 +142,4 @@
{{/each}}
</ol>
</div>
</div>
{{else}}
<h3>choisissez un totem</h3>
{{/if}}
</div>