mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Removed unused override function
This commit is contained in:
parent
aec5c06da7
commit
5b6c13989a
1 changed files with 0 additions and 14 deletions
|
|
@ -4,7 +4,6 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
|
|||
static DEFAULT_OPTIONS = {
|
||||
classes: ['daggerheart'],
|
||||
actions: {
|
||||
effect: { handler: DHTokenHUD.#onToggleEffect, buttons: [0, 2] },
|
||||
combat: DHTokenHUD.#onToggleCombat,
|
||||
togglePartyTokens: DHTokenHUD.#togglePartyTokens
|
||||
}
|
||||
|
|
@ -215,17 +214,4 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
|
|||
}
|
||||
return choices;
|
||||
}
|
||||
|
||||
static async #onToggleEffect(event, target) {
|
||||
if (!this.actor) {
|
||||
ui.notifications.warn('HUD.WarningEffectNoActor', { localize: true });
|
||||
return;
|
||||
}
|
||||
|
||||
const statusId = target.dataset.statusId;
|
||||
await this.actor.toggleStatusEffect(statusId, {
|
||||
active: !target.classList.contains('active'),
|
||||
overlay: event.button === 2
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue