ENH: Monster Attack counter Hints
parent
e985472a31
commit
d884e8323c
|
@ -159,6 +159,9 @@
|
|||
"OSE.items.ArmorAC": "AC",
|
||||
"OSE.items.ArmorAAC": "AAC",
|
||||
"OSE.items.Bonus": "Bonus",
|
||||
"OSE.items.roundAttacks": "Attacks Spent this Round",
|
||||
"OSE.items.roundAttacksMax": "Maximum Attacks per Round",
|
||||
"OSE.items.resetAttacks": "Reset all Attacks per Round",
|
||||
|
||||
"OSE.armor.type": "Armor Type",
|
||||
"OSE.armor.unarmored": "Unarmored",
|
||||
|
|
|
@ -117,10 +117,10 @@ export class OseActorSheet extends ActorSheet {
|
|||
const li = $(ev.currentTarget).parents(".item");
|
||||
const item = this.actor.getOwnedItem(li.data("itemId"));
|
||||
if (item.type == "weapon") {
|
||||
item.rollWeapon({event: ev});
|
||||
if (this.actor.data.type === 'monster') {
|
||||
item.update({data: {counter: {value: item.data.data.counter.value - 1}}})
|
||||
}
|
||||
item.rollWeapon({event: ev});
|
||||
} else {
|
||||
item.rollFormula({event: ev});
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<div class="item-name">{{localize 'OSE.panel.abilities'}} & {{localize 'OSE.panel.equipment'}}</div>
|
||||
<div class="item-controls">
|
||||
{{#if owner}}
|
||||
<a class="item-control item-reset" title='{{localize "OSE.Reset"}}'><i class="fas fa-sync"></i></a>
|
||||
<a class="item-control item-reset" title='{{localize "OSE.items.resetAttacks"}}'><i class="fas fa-sync"></i></a>
|
||||
<a class="item-control item-create" title='{{localize "OSE.Add"}}' data-type="choice"
|
||||
data-choices="weapon,ability,armor,item"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
|
@ -116,9 +116,9 @@
|
|||
</div>
|
||||
{{#if (eq item.type 'weapon')}}
|
||||
<div class="field-long counter flexrow">
|
||||
<input type="text" value="{{item.data.counter.value}}" data-dtype="Number" placeholder="0" data-field="value">
|
||||
<input type="text" value="{{item.data.counter.value}}" data-dtype="Number" placeholder="0" data-field="value" title="{{localize 'OSE.items.roundAttacks'}}">
|
||||
/
|
||||
<input type="text" value="{{item.data.counter.max}}" data-field="max" data-dtype="Number" placeholder="0"></div>
|
||||
<input type="text" value="{{item.data.counter.max}}" data-field="max" data-dtype="Number" placeholder="0" title="{{localize 'OSE.items.roundAttacksMax'}}"></div>
|
||||
{{/if}}
|
||||
<div class="item-controls">
|
||||
{{#if ../../owner}}
|
||||
|
|
Loading…
Reference in New Issue