mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Some cleneaup
This commit is contained in:
parent
7eb662ac21
commit
2cf68b7f17
6 changed files with 85 additions and 563 deletions
|
|
@ -20,34 +20,4 @@ export default class DhpCombat extends Combat {
|
|||
|
||||
return a.name.localeCompare(b.name);
|
||||
}
|
||||
|
||||
// async useActionToken(combatantId) {
|
||||
// const automateActionPoints = await game.settings.get(
|
||||
// SYSTEM.id,
|
||||
// SYSTEM.SETTINGS.gameSettings.Automation.ActionPoints
|
||||
// );
|
||||
|
||||
// if (game.user.isGM) {
|
||||
// if (this.system.actions < 1) return;
|
||||
|
||||
// const update = automateActionPoints
|
||||
// ? { 'system.activeCombatant': combatantId, 'system.actions': Math.max(this.system.actions - 1, 0) }
|
||||
// : { 'system.activeCombatant': combatantId };
|
||||
|
||||
// await this.update(update);
|
||||
// } else {
|
||||
// const update = automateActionPoints
|
||||
// ? { 'system.activeCombatant': combatantId, 'system.actions': this.system.actions + 1 }
|
||||
// : { 'system.activeCombatant': combatantId };
|
||||
|
||||
// await game.socket.emit(`system.${SYSTEM.id}`, {
|
||||
// action: socketEvent.GMUpdate,
|
||||
// data: {
|
||||
// action: GMUpdateEvent.UpdateDocument,
|
||||
// uuid: this.uuid,
|
||||
// update: update
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue