Gestion du dé d'usure des degats des armes, gestion des munitions, gestion de la limute dégats vs DV
Release Creation / build (release) Successful in 1m11s

This commit is contained in:
2026-05-22 09:50:48 +02:00
parent 09f2349bab
commit 6742830f40
31 changed files with 372 additions and 58 deletions
+10 -5
View File
@@ -93,7 +93,8 @@
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
@@ -138,7 +139,8 @@
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
@@ -234,7 +236,8 @@
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
@@ -278,7 +281,8 @@
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
@@ -395,7 +399,8 @@
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
+2 -1
View File
@@ -122,7 +122,8 @@
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
</div>
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
{{#if this.damageLabel}}<p>Degats : {{this.damageLabel}}</p>{{/if}}
{{#if this.ammunitionUsageLabel}}<p>Munitions : {{this.ammunitionUsageLabel}}</p>{{/if}}
</div>
<div class="item-actions">
{{#if this.canRoll}}
+9 -1
View File
@@ -13,6 +13,7 @@
<div class="chat-pill-row">
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
<span class="chat-pill success">Dé {{keptDieLabel}}</span>
{{#if damageCapped}}<span class="chat-pill">{{localize "DNC.Chat.DamageCapped" damage=effectiveDamage dv=martialDvLabel}}</span>{{/if}}
{{#if bonus}}<span class="chat-pill">Bonus +{{bonus}}</span>{{/if}}
</div>
<p class="chat-formula">{{formula}}</p>
@@ -22,7 +23,7 @@
<p class="roll-values">{{#each rollDieLabels}}<span>{{this}}</span>{{/each}}</p>
</div>
{{/if}}
<p class="chat-note"><strong>Base</strong> : {{baseDamage}}{{#if bonus}} · <strong>Bonus</strong> : +{{bonus}}{{/if}}</p>
<p class="chat-note"><strong>Base</strong> : {{baseDamage}}{{#if damageCapped}} · <strong>{{localize "DNC.Chat.MartialDv"}}</strong> : {{martialDvLabel}} · <strong>{{localize "DNC.Chat.EffectiveDamage"}}</strong> : {{effectiveDamage}}{{/if}}{{#if bonus}} · <strong>Bonus</strong> : +{{bonus}}{{/if}}</p>
<div class="chat-targeting">
<label class="chat-control">
<span class="chat-keyline-label">Cible</span>
@@ -45,4 +46,11 @@
</button>
</div>
</div>
{{#if showDamageUsageButton}}
<div class="chat-actions">
<button type="button" class="chat-action-button" data-action="rollDamageUsage" data-item-uuid="{{itemUuid}}">
<i class="fa-solid fa-hourglass-half"></i> {{localize "DNC.Chat.RollDamageUsage"}}
</button>
</div>
{{/if}}
</section>
+13
View File
@@ -28,7 +28,20 @@
<button type="button" class="chat-action-button" data-action="rollChatDamage" data-item-uuid="{{itemUuid}}">
<i class="fa-solid fa-burst"></i> {{localize "DNC.Chat.RollDamage"}}
</button>
{{#if showAmmoButton}}
<button type="button" class="chat-action-button" data-action="rollAmmoUsage" data-item-uuid="{{itemUuid}}">
<i class="fa-solid fa-bullseye"></i> {{localize "DNC.Chat.RollAmmunition"}}
</button>
{{/if}}
</div>
{{else}}
{{#if showAmmoButton}}
<div class="chat-actions">
<button type="button" class="chat-action-button" data-action="rollAmmoUsage" data-item-uuid="{{itemUuid}}">
<i class="fa-solid fa-bullseye"></i> {{localize "DNC.Chat.RollAmmunition"}}
</button>
</div>
{{/if}}
{{/if}}
<ul class="chat-details chat-details-ornate">
{{#each details}}
+10 -2
View File
@@ -21,6 +21,14 @@
</div>
{{/if}}
{{#if protectionStored}}<p class="chat-note">{{localize "DNC.Chat.StoredProtection"}} : <strong>{{protectionStored}}</strong>.</p>{{/if}}
{{#if degraded}}<p class="chat-note">{{localize "DNC.Chat.ResourceWearsDown"}}</p>{{else}}<p class="chat-note">{{localize "DNC.Chat.ResourceStable"}}</p>{{/if}}
{{#if exhausted}}<p class="warning">{{localize "DNC.Chat.ResourceExhausted"}}</p>{{/if}}
{{#if isAmmunition}}
{{#if degraded}}<p class="chat-note">{{localize "DNC.Chat.AmmunitionWearsDown"}}</p>{{else}}<p class="chat-note">{{localize "DNC.Chat.AmmunitionStable"}}</p>{{/if}}
{{#if exhausted}}<p class="warning">{{localize "DNC.Chat.AmmunitionExhausted"}}</p>{{/if}}
{{else if isDamageUsage}}
{{#if degraded}}<p class="chat-note">{{localize "DNC.Chat.DamageUsageWearsDown"}}</p>{{else}}<p class="chat-note">{{localize "DNC.Chat.DamageUsageStable"}}</p>{{/if}}
{{#if exhausted}}<p class="warning">{{localize "DNC.Chat.DamageUsageExhausted"}}</p>{{/if}}
{{else}}
{{#if degraded}}<p class="chat-note">{{localize "DNC.Chat.ResourceWearsDown"}}</p>{{else}}<p class="chat-note">{{localize "DNC.Chat.ResourceStable"}}</p>{{/if}}
{{#if exhausted}}<p class="warning">{{localize "DNC.Chat.ResourceExhausted"}}</p>{{/if}}
{{/if}}
</section>
+4 -1
View File
@@ -1,5 +1,8 @@
<div class="dnc-dialog-form">
<p><strong>{{item.name}}</strong> inflige <strong>{{item.system.degats}}</strong>.</p>
<p><strong>{{item.name}}</strong> inflige <strong>{{damageFormula}}</strong>.</p>
{{#if damageCapped}}
<p>{{localize "DNC.Dialog.DamageCappedByDv" dv=martialDvLabel damage=damageFormula base=damageBase}}</p>
{{/if}}
<p>{{localize "DNC.Dialog.ActorDamageBonus"}} : <strong>{{actorBonus}}</strong></p>
<label>
<span>{{localize "DNC.UI.Mode"}}</span>
+17 -2
View File
@@ -19,8 +19,23 @@
<p>{{weaponCharacteristicLabel}}</p>
</div>
<label>
<span>Degats</span>
<input type="text" name="system.degats" value="{{system.degats}}">
<span>Degats usage die (Δ)</span>
<input type="checkbox" name="system.degatsEstUsageDe" {{checked system.degatsEstUsageDe}}>
</label>
{{#if system.degatsEstUsageDe}}
<label>
<span>Δ Degats courant</span>
<select name="system.degatsDelta">{{selectOptions config.usageDieOptions selected=system.degatsDelta localize=false blank="Epuise"}}</select>
</label>
{{else}}
<label>
<span>Degats</span>
<input type="text" name="system.degats" value="{{system.degats}}">
</label>
{{/if}}
<label>
<span>Munitions</span>
<select name="system.munitionsDelta">{{selectOptions config.usageDieOptions selected=system.munitionsDelta localize=false blank="Aucune"}}</select>
</label>
<label>
<span>Portee</span>