mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
Removed rendered action tokens for Adversaries
This commit is contained in:
parent
0ca0ab360e
commit
d7f67a4580
4 changed files with 2 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ export default class DhCombatTracker extends foundry.applications.sidebar.tabs.C
|
||||||
|
|
||||||
async _prepareTurnContext(combat, combatant, index) {
|
async _prepareTurnContext(combat, combatant, index) {
|
||||||
const turn = await super._prepareTurnContext(combat, combatant, index);
|
const turn = await super._prepareTurnContext(combat, combatant, index);
|
||||||
return { ...turn, system: combatant.system.toObject() };
|
return { ...turn, isNPC: combatant.isNPC, system: combatant.system.toObject() };
|
||||||
}
|
}
|
||||||
|
|
||||||
_getCombatContextOptions() {
|
_getCombatContextOptions() {
|
||||||
|
|
|
||||||
|
|
@ -1319,7 +1319,6 @@
|
||||||
width: min-content;
|
width: min-content;
|
||||||
}
|
}
|
||||||
.combat-sidebar .token-actions {
|
.combat-sidebar .token-actions {
|
||||||
flex: 0 0 var(--input-height);
|
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.token-actions {
|
.token-actions {
|
||||||
flex: 0 0 var(--input-height);
|
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
{{#if ../combat.system.started}}
|
{{#if ../combat.system.started}}
|
||||||
<div class="token-actions">
|
<div class="token-actions">
|
||||||
{{#if isOwner}}
|
{{#if isOwner}}
|
||||||
{{#if ../actionTokens.enabled}}
|
{{#if (and (not isNPC) ../actionTokens.enabled)}}
|
||||||
<div class="action-tokens">
|
<div class="action-tokens">
|
||||||
{{#times ../actionTokens.tokens}}
|
{{#times ../actionTokens.tokens}}
|
||||||
<button type="button" class="inline-control main icon fa-solid fa-bolt-lightning action-token {{#if (lte ../system/actionTokens this)}}used{{/if}}" data-action="setActionTokens" data-combatant-id="{{../id}}" data-token-index="{{this}}">
|
<button type="button" class="inline-control main icon fa-solid fa-bolt-lightning action-token {{#if (lte ../system/actionTokens this)}}used{{/if}}" data-action="setActionTokens" data-combatant-id="{{../id}}" data-token-index="{{this}}">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue