Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to roll the Power Supply automatically when you use a weapon with a Power Supply Rating? #143

Open
pwatson100 opened this issue Nov 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request parked

Comments

@pwatson100
Copy link
Owner

Suggested by Lukey84

@pwatson100 pwatson100 added the enhancement New feature or request label Nov 30, 2021
@pwatson100 pwatson100 self-assigned this Nov 30, 2021
@pwatson100 pwatson100 added this to To do in Alien RPG for Foundry VTT via automation Nov 30, 2021
@pwatson100
Copy link
Owner Author

It can be done by adding
if (item.data.attributes.power.value >0) {
const ilabel = game.i18n.localize('ALIENRPG.Power') + ' ' + game.i18n.localize('ALIENRPG.Supply');
const consUme = 'power';
this.actor.consumablesCheck(this.actor, consUme, ilabel, item._id);
}
to the item roll function but it breaks the Push code so will have to look into alternatives. Additionally as the weapon template done not have an indicator to say the weapon is powered it's not possible to stop the player from rolling when the power is zero.

Will park for now and consider other options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parked
Projects
None yet
Development

No branches or pull requests

1 participant