alienrpg icon indicating copy to clipboard operation
alienrpg copied to clipboard

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

Open pwatson100 opened this issue 3 years ago • 1 comments

Suggested by Lukey84

pwatson100 avatar Nov 30 '21 17:11 pwatson100

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.

pwatson100 avatar Dec 01 '21 13:12 pwatson100