mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
* Fixed so that companions can get bonus levelupchoices from their partner * Fixed collection prep order * Added ActiveEffects to Beastbound features * Corrected styling * Added migration for overleveled companions * Raised version * Moved migration to 1.6.0. Sillyness
14 lines
494 B
JavaScript
14 lines
494 B
JavaScript
export default class DhActorCollection extends foundry.documents.collections.Actors {
|
|
/** Ensure companions are initialized after all other subtypes. */
|
|
_initialize() {
|
|
super._initialize();
|
|
const companions = [];
|
|
for (const actor of this.values()) {
|
|
if (actor.type === 'companion') companions.push(actor);
|
|
}
|
|
for (const actor of companions) {
|
|
this.delete(actor.id);
|
|
this.set(actor.id, actor);
|
|
}
|
|
}
|
|
}
|