v12 support

This commit is contained in:
2024-06-07 11:26:46 +02:00
parent a3b6908a17
commit 15e249e41e
74 changed files with 410 additions and 241 deletions

View File

@@ -14,7 +14,7 @@ export class SoSCombat extends Combat {
this.phaseSetup = {}; // Reset each new round/update
for (let combatant of this.combatants) {
this.setInitiative(combatant.id, -1); // Reset init
let uniq = randomID(16)
let uniq = foundry.utils.randomID(16)
const name = combatant.actor ? combatant.actor.name : combatant.name;
if (combatant.players && combatant.players[0] ) {
// A player controls this combatant -> message !
@@ -80,7 +80,7 @@ export class SoSCombat extends Combat {
// Now push specific messages
for (let action of actionList) {
let uniq = randomID(16);
let uniq = foundry.utils.randomID(16);
action.uniqId = uniq; // Easy tracking with chat messages
const name = action.combatant.actor ? action.combatant.actor.name : action.combatant.name;
if (action.combatant.players[0]) {