mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Compare commits
No commits in common. "1f4241437eecf210f51abec23e26f877e20866d7" and "774141a8da52286075113c51976d5fc77cc01fb3" have entirely different histories.
1f4241437e
...
774141a8da
3 changed files with 7 additions and 5 deletions
|
|
@ -113,6 +113,7 @@
|
||||||
"sectionTitle": "Areas",
|
"sectionTitle": "Areas",
|
||||||
"shape": "Shape",
|
"shape": "Shape",
|
||||||
"size": "Size"
|
"size": "Size"
|
||||||
|
|
||||||
},
|
},
|
||||||
"displayInChat": "Display in chat",
|
"displayInChat": "Display in chat",
|
||||||
"deleteTriggerTitle": "Delete Trigger",
|
"deleteTriggerTitle": "Delete Trigger",
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,11 @@ export default class DHActionConfig extends DHActionBaseConfig {
|
||||||
effectId = this.action.area[areaIndex].effects[index];
|
effectId = this.action.area[areaIndex].effects[index];
|
||||||
const data = this.action.toObject();
|
const data = this.action.toObject();
|
||||||
data.area[areaIndex].effects.splice(index, 1);
|
data.area[areaIndex].effects.splice(index, 1);
|
||||||
this.constructor.updateForm.call(this, null, null, { object: foundry.utils.flattenObject(data) });
|
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
effectId = this.action.effects[index]._id;
|
effectId = this.action.effects[index]._id;
|
||||||
this.constructor.removeElement.call(this, event, button);
|
this.constructor.removeElement.bind(this)(event, button);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.action.item.deleteEmbeddedDocuments('ActiveEffect', [effectId]);
|
this.action.item.deleteEmbeddedDocuments('ActiveEffect', [effectId]);
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,10 @@ export default class DHActionSettingsConfig extends DHActionBaseConfig {
|
||||||
effectId = this.action.area[areaIndex].effects[index];
|
effectId = this.action.area[areaIndex].effects[index];
|
||||||
const data = this.action.toObject();
|
const data = this.action.toObject();
|
||||||
data.area[areaIndex].effects.splice(index, 1);
|
data.area[areaIndex].effects.splice(index, 1);
|
||||||
this.constructor.updateForm.call(this, null, null, { object: foundry.utils.flattenObject(data) });
|
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
|
||||||
} else {
|
} else {
|
||||||
effectId = this.action.effects[index]._id;
|
effectId = this.action.effects[index]._id;
|
||||||
this.constructor.removeElement.call(this, event, button);
|
this.constructor.removeElement.bind(this)(event, button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue