Revert "Made the active PartySize available as a parameter for formulas"

This reverts commit ca097c21a3.
This commit is contained in:
WBHarry 2026-04-15 00:37:30 +02:00
parent e4b3f5d5bd
commit e3673c50c6
9 changed files with 70 additions and 155 deletions

View file

@ -9,7 +9,6 @@ export default class DhParty extends BaseDataActor {
const fields = foundry.data.fields;
return {
...super.defineSchema(),
active: new fields.BooleanField(),
partyMembers: new ForeignDocumentUUIDArrayField({ type: 'Actor' }, { prune: true }),
notes: new fields.HTMLField(),
gold: new fields.SchemaField({
@ -45,15 +44,6 @@ export default class DhParty extends BaseDataActor {
}
}
/**@inheritdoc */
async _preCreate(data, options, user) {
const allowed = await super._preCreate(data, options, user);
if (allowed === false) return;
if (!game.actors.some(x => x.type === 'party' && x.active))
await this.updateSource({ active: true });
}
_onDelete(options, userId) {
super._onDelete(options, userId);