mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Feature/200 beastform (#255)
* Temp * Dialog setup * Fixed basic beastform * Reworked beastform to hold it's data entirely in the beastformEffect * UpdateActorTokens fix * Removed hardcoded tierlimit on beastform * PR fixes
This commit is contained in:
parent
c4448226e0
commit
d071fadf7d
41 changed files with 1102 additions and 298 deletions
|
|
@ -97,16 +97,16 @@ export default class DHItem extends foundry.documents.Item {
|
|||
|
||||
async use(event) {
|
||||
const actions = this.system.actions;
|
||||
let response;
|
||||
if (actions?.length) {
|
||||
let action = actions[0];
|
||||
if (actions.length > 1 && !event?.shiftKey) {
|
||||
// Actions Choice Dialog
|
||||
action = await this.selectActionDialog();
|
||||
}
|
||||
if (action) response = action.use(event);
|
||||
if (action) return action.use(event);
|
||||
}
|
||||
return response;
|
||||
|
||||
return this.toChat();
|
||||
}
|
||||
|
||||
async toChat(origin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue