Derniers fixs
This commit is contained in:
@@ -685,9 +685,9 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
|
||||
const data = {
|
||||
equipped: tmpItem.system.equipped,
|
||||
};
|
||||
// Only weapons
|
||||
// For weapons: sync readied with equipped so both toggle together
|
||||
if (tmpItem.system.readied !== undefined) {
|
||||
data.readied = tmpItem.system.readied;
|
||||
data.readied = type === "equipped" ? tmpItem.system.equipped : tmpItem.system.readied;
|
||||
}
|
||||
|
||||
// Update the Item: we need to manually notify the "Gm Monitor" as the Actor himself is not updated
|
||||
|
||||
@@ -8,14 +8,12 @@
|
||||
<i class="fas fa-skull" title="{{localize 'l5r5e.weapons.deadliness'}}"> {{weapon.system.deadliness}}</i>
|
||||
</li>
|
||||
{{#if editable}}
|
||||
<li data-item-id="{{weapon._id}}" data-type="equipped" class="equip-readied-control" title="{{localize 'l5r5e.armors.equipped'}}"><i class="fas {{#if weapon.system.equipped}}fa-tshirt{{else}}fa-weight-hanging{{/if}}"></i></li>
|
||||
<li data-item-id="{{weapon._id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
|
||||
<li data-item-id="{{weapon._id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<ul class="item-properties">
|
||||
<li class="equip-readied-control" data-item-id="{{weapon._id}}" data-type="readied">
|
||||
<i class="i_readied fa{{^if weapon.system.readied}}r{{/if}} fa-check-circle" title="{{#if weapon.system.readied}}{{localize 'l5r5e.weapons.readied'}}{{else}}{{localize 'l5r5e.weapons.sheathed'}}{{/if}}"></i>
|
||||
</li>
|
||||
{{#each weapon.system.properties as |property|}}
|
||||
<li class="l5r5e-tooltip" data-property-id="{{property.id}}">{{{property.name}}}</li>
|
||||
{{/each}}
|
||||
|
||||
Reference in New Issue
Block a user