Ajout alignement Mythic+
Some checks failed
Release Creation / build (release) Failing after 41s

This commit is contained in:
2025-09-28 20:42:01 +02:00
parent 425a2a1fc0
commit 3e3a4b9ec1
104 changed files with 718 additions and 365 deletions

View File

@@ -1,20 +1,27 @@
<img class="chat-icon" src="{{defender.img}}" alt="{{defender.name}}"/>
<img class="chat-icon" src="{{defender.img}}" alt="{{defender.name}}" />
{{localize "BOL.chat.hurttitle" name=defender.name damageTotal=damageTotal}}
{{#if damagesIgnoresArmor}}
<br>{{localize "BOL.chat.armordefault"}}
{{/if}}
<button class="damage-handling" data-defense-mode="damage-with-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.witharmor"}}</button>
<button class="damage-handling" data-defense-mode="damage-without-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.withoutarmor"}}</button>
<button class="damage-handling" data-defense-mode="damage-with-armor" data-attack-id="{{attackId}}">{{localize
"BOL.chat.witharmor"}}</button>
<button class="damage-handling" data-defense-mode="damage-without-armor" data-attack-id="{{attackId}}">{{localize
"BOL.chat.withoutarmor"}}</button>
{{#if (gt defenderHeroPoints 0)}}
<button class="damage-handling" data-defense-mode="hero-reduce-damage" data-attack-id="{{attackId}}">{{localize "BOL.chat.shakeoff"}}</button>
<button class="damage-handling" data-defense-mode="hero-reduce-damage" data-attack-id="{{attackId}}">{{localize
"BOL.chat.shakeoff"}}</button>
{{#each defenderWeapons as |weapon idx|}}
<button class="damage-handling" data-defense-mode="hero-in-extremis" data-attack-id="{{@root.attackId}}" data-weapon-id="{{weapon._id}}">{{localize "BOL.chat.splinteredshield" name=weapon.name}}</button>
{{/each}}
{{#each defenderWeapons as |weapon idx|}}
<button class="damage-handling" data-defense-mode="hero-in-extremis" data-attack-id="{{@root.attackId}}"
data-weapon-id="{{weapon._id}}">{{localize "BOL.chat.splinteredshield" name=weapon.name}}</button>
{{/each}}
{{/if}}
<button class="damage-handling" data-defense-mode="damage-not-applied" data-attack-id="{{attackId}}">{{localize "BOL.chat.nodamage"}}</button>
<button class="damage-handling" data-defense-mode="damage-not-applied" data-attack-id="{{attackId}}">{{localize
"BOL.chat.nodamage"}}</button>
<br>
{{localize "BOL.chat.defenseReduceDamage2"}}

View File

@@ -1,145 +1,162 @@
<h3 class="form-header">{{localize "BOL.ui.weaponProperties"}}</h3>
<div class="form-group">
<label>{{localize "BOL.ui.reach"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.melee" {{checked item.system.properties.melee}}> {{localize "BOL.itemProperty.melee"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.ranged" {{checked item.system.properties.ranged}}> {{localize "BOL.itemProperty.ranged"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.throwing" {{checked item.system.properties.throwing}}> {{localize "BOL.itemProperty.throwing"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.natural" {{checked item.system.properties.natural}}> {{localize "BOL.itemProperty.natural"}}
</label>
</div>
<label>{{localize "BOL.ui.reach"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.melee" {{checked
item.system.properties.melee}}> {{localize "BOL.itemProperty.melee"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.ranged" {{checked
item.system.properties.ranged}}> {{localize "BOL.itemProperty.ranged"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.throwing" {{checked
item.system.properties.throwing}}> {{localize "BOL.itemProperty.throwing"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.natural" {{checked
item.system.properties.natural}}> {{localize "BOL.itemProperty.natural"}}
</label>
</div>
</div>
<hr/>
<hr />
<div class="form-group">
<label>{{localize "BOL.ui.properties"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.2H" {{checked item.system.properties.2H}}> {{localize "BOL.itemProperty.2H"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.concealable" {{checked item.system.properties.concealable}}> {{localize "BOL.itemProperty.concealable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.ignoreshield" {{checked item.system.properties.ignoreshield}}> {{localize "BOL.itemProperty.ignoreshield"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.attackBonusDice" {{checked item.system.properties.attackBonusDice}}> {{localize "BOL.itemProperty.attackBonusDice"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.onlymodifier" {{checked item.system.properties.onlymodifier}}> {{localize "BOL.itemProperty.onlymodifier"}}
</label>
<label>{{localize "BOL.ui.properties"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.2H" {{checked item.system.properties.2H}}>
{{localize "BOL.itemProperty.2H"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.concealable" {{checked
item.system.properties.concealable}}> {{localize "BOL.itemProperty.concealable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.ignoreshield" {{checked
item.system.properties.ignoreshield}}> {{localize "BOL.itemProperty.ignoreshield"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.attackBonusDice" {{checked
item.system.properties.attackBonusDice}}> {{localize "BOL.itemProperty.attackBonusDice"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.onlymodifier" {{checked
item.system.properties.onlymodifier}}> {{localize "BOL.itemProperty.onlymodifier"}}
</label>
{{#if item.system.properties.ranged}}
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.reloadable" {{checked item.system.properties.reloadable}}> {{localize "BOL.itemProperty.reloadable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.reloadable" {{checked
item.system.properties.reloadable}}> {{localize "BOL.itemProperty.reloadable"}}
</label>
{{/if}}
{{#if item.system.properties.melee}}
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.bashing" {{checked item.system.properties.bashing}}> {{localize "BOL.itemProperty.bashing"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.throwable" {{checked item.system.properties.throwable}}> {{localize "BOL.itemProperty.throwable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.bashing" {{checked
item.system.properties.bashing}}> {{localize "BOL.itemProperty.bashing"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.throwable" {{checked
item.system.properties.throwable}}> {{localize "BOL.itemProperty.throwable"}}
</label>
{{/if}}
</div>
</div>
</div>
<hr/>
<hr />
{{#if (not item.system.properties.onlymodifier)}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.attackAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAttribute" data-dtype="String">
{{selectOptions config.attackAttributes selected=item.system.properties.attackAttribute localize=true}}
</select>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.attackAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAttribute" data-dtype="String">
{{selectOptions config.attackAttributes selected=item.system.properties.attackAttribute localize=true}}
</select>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.attackAptitude"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAptitude" data-dtype="String">
{{selectOptions config.attackAptitudes selected=item.system.properties.attackAptitude localize=true}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.attackAptitude"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAptitude" data-dtype="String">
{{selectOptions config.attackAptitudes selected=item.system.properties.attackAptitude localize=true}}
</select>
</div>
</div>
{{/if}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.attackModifiers"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.attackModifiers" value="{{item.system.properties.attackModifiers}}" data-dtype="Number"/>
</div>
<label class="property-label">{{localize "BOL.itemProperty.attackModifiers"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.attackModifiers"
value="{{item.system.properties.attackModifiers}}" data-dtype="Number" />
</div>
</div>
<hr/>
<hr />
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.weaponSize"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.weaponSize" data-dtype="String">
{{selectOptions config.weaponSizes selected=item.system.properties.weaponSize localize=true}}
</select>
</div>
<label class="property-label">{{localize "BOL.itemProperty.weaponSize"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.weaponSize" data-dtype="String">
{{selectOptions config.weaponSizes selected=item.system.properties.weaponSize localize=true}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.damage" data-dtype="String">
{{selectOptions config.damageValues selected=item.system.properties.damage}}
</select>
</div>
<label class="property-label">{{localize "BOL.itemProperty.damage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.damage" data-dtype="String">
{{selectOptions config.damageValues selected=item.system.properties.damage}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damageAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageAttribute" data-dtype="String">
{{selectOptions config.damageAttributes selected=item.system.properties.damageAttribute localize=true}}
</select>
</div>
<label class="property-label">{{localize "BOL.itemProperty.damageAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageAttribute" data-dtype="String">
{{selectOptions config.damageAttributes selected=item.system.properties.damageAttribute localize=true}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damageModifiers"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.damageModifiers" value="{{item.system.properties.damageModifiers}}" data-dtype="Number"/>
</div>
<label class="property-label">{{localize "BOL.itemProperty.damageModifiers"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.damageModifiers"
value="{{item.system.properties.damageModifiers}}" data-dtype="Number" />
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageMultiplier" data-dtype="String">
{{selectOptions config.damageMultiplier selected=item.system.properties.damageMultiplier}}
</select>
</div>
<label class="property-label">{{localize "BOL.itemProperty.damageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageMultiplier" data-dtype="String">
{{selectOptions config.damageMultiplier selected=item.system.properties.damageMultiplier}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damageSpecial"}}</label>
<div class="form-fields center">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.damageReroll1" {{checked item.system.properties.damageReroll1}}> {{localize "BOL.itemProperty.damageReroll1"}}
</label>
</div>
<label class="property-label">{{localize "BOL.itemProperty.damageSpecial"}}</label>
<div class="form-fields center">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.damageReroll1" {{checked
item.system.properties.damageReroll1}}> {{localize "BOL.itemProperty.damageReroll1"}}
</label>
</div>
</div>
{{#if (or item.system.properties.throwing (or item.system.properties.ranged item.system.properties.throwable))}}
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.range"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.range" value="{{item.system.properties.range}}" data-dtype="Number"/>
</div>
</div>
{{/if}}
{{#if data.properties.reloadable}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.reload"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.reload" value="{{item.system.properties.reload}}" data-dtype="Number"/>
</div>
</div>
<hr />
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.range"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.range" value="{{item.system.properties.range}}"
data-dtype="Number" />
</div>
</div>
{{/if}}
{{#if item.system.properties.reloadable}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.reload"}}</label>
<div class="form-fields center">
<input class="field-value" type="text" name="system.properties.reload" value="{{item.system.properties.reload}}"
data-dtype="Number" />
</div>
</div>
{{/if}}