jamespdaily / pf2e-sheet-skill-actions

0 stars 14 forks source link

[Request] Add bonuses from weapons #19

Open Unikatze opened 2 years ago

Unikatze commented 2 years ago

This may be a tricky one. But say I have a +1 Warhammer worn, which has the shove trait. Perhaps the module will add a toggle for me to add the +1 item bonus to my shove?

andriusch commented 2 years ago

One more thing to consider here - you might not have warhammer equipped. So either:

I think first is preferrable, but probably harder to implement.

Unikatze commented 2 years ago

I'd go with the First Option.

If you select Shove and you have a Warhammer equipped, it could just come up with a toggable Item bonus to the shove (default off).

Glunty commented 2 years ago

For your information, this feature is to be added in system action macros within the next release, with this MR : https://gitlab.com/hooking/foundry-vtt---pathfinder-2e/-/merge_requests/7260

andriusch commented 2 years ago

As far as I understand it modifies game.pf2e.actions to add those bonuses. Since this module uses those actions under the hood everything should work automatically in this module too.

Glunty commented 2 years ago

Yep, should be good, we'll be sure on 11 Feb when new core version shall be released.

jamespdaily commented 2 years ago

Can I close this one in light of the Feb 11 release?

andriusch commented 2 years ago

I'd say wait until it arrives and let's see if it works :smile:

Glunty commented 2 years ago

I tested it with my branch on the system, it works. The only thing is that the item bonus is not showed on the button. But if it's a bug, it's quite a minor one

image

andriusch commented 2 years ago

Yeah, it's a bug since we calculate the roll modifier ourselves, not sure if it can be made to take it from PF2e. But yeah it's minor.

Glunty commented 2 years ago

I'm even sure it can't be taken from PF2e yet because that specific modifier is computed in an asynch function when a check is asked : even if you have the SimpleRollActionCheckOptions, you can't see weapon modifiers in it before the roll is called and message comes in the chat.

Can't think of a way to get them dynamically... perhaps by adding a RuleElement to all weapons with athletism traits, or something like that... won't be done soon I guess

dapperdancer commented 2 years ago

Is there also a way to integrate whether a weapon with a shove/trip/disarm trait is agile?