Gestion attaques v2 et initiative

This commit is contained in:
2025-09-30 01:33:08 +02:00
parent d0ba1ebf99
commit 7370b633db
44 changed files with 1033 additions and 515 deletions

View File

@@ -4,8 +4,8 @@
</select>
</subline>
<roll-part-img>
{{#if current.attaque.arme}}
<img src="{{current.attaque.arme.img}}" data-tooltip="{{current.attaque.arme.name}}" />
{{#if current.arme}}
<img src="{{current.arme.img}}" data-tooltip="{{current.arme.name}}" />
{{/if}}
</roll-part-img>
<roll-part-detail>
@@ -16,10 +16,10 @@
</select>
</subline>
<subline>
{{#if (eq current.attaque.arme.system.mortalite 'empoignade')}}
{{#if (eq current.arme.system.mortalite 'empoignade')}}
Empoignade, pas de dommages directs
{{else}}
{{#if (and (ne current.attaque.arme.system.mortalite 'non-mortel') (eq current.dmg.penetration 0))}}
{{#if (and (ne current.arme.system.mortalite 'non-mortel') (eq current.dmg.penetration 0))}}
<input name="check-mortalite" type="checkbox" {{#if (eq current.dmg.mortalite 'mortel')}}checked{{/if}} />
{{/if}}
<label for="check-mortalite">