mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Dialog created. Tokens not dragged(tbd).
This commit is contained in:
parent
f5e00dedb2
commit
506a17bd03
6 changed files with 66 additions and 77 deletions
|
|
@ -2,40 +2,4 @@ import DHBaseAction from './baseAction.mjs';
|
|||
|
||||
export default class DHSummonAction extends DHBaseAction {
|
||||
static extraSchemas = [...super.extraSchemas, 'summon'];
|
||||
|
||||
// get defaultValues() {
|
||||
// return {
|
||||
// summon: []
|
||||
// };
|
||||
// }
|
||||
|
||||
// async trigger(event, ...args) {
|
||||
// if (!this.canSummon || !canvas.scene){
|
||||
// ui.notifications.warn(game.i18n.localize("DAGGERHEART.ACTIONS.TYPES.summon.error"));
|
||||
// return;
|
||||
// }
|
||||
// await this._performAction();
|
||||
// }
|
||||
|
||||
// get canSummon() {
|
||||
// return game.user.can('TOKEN_CREATE');
|
||||
// }
|
||||
|
||||
// async _performAction(event, ...args) {
|
||||
// const validSummons = this.summon.filter(entry => entry.actorUUID);
|
||||
// if (validSummons.length === 0) {
|
||||
// ui.notifications.warn("No actors configured for this Summon action.");
|
||||
// return;
|
||||
// }
|
||||
// // FOR NOW: Just log the data to prove the schema working or not
|
||||
// console.group("Summon Action Triggered");
|
||||
|
||||
// for (const entry of validSummons) {
|
||||
// const actor = await fromUuid(entry.actorUUID);
|
||||
// console.log(`- Ready to summon ${entry.count}x [${actor?.name || "Unknown Actor"}]`);
|
||||
// }
|
||||
// console.groupEnd();
|
||||
|
||||
// //Todo: Open Summon Dialog
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue