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

Strange behavior with consumables #6

Open
mech-tools opened this issue Feb 11, 2022 · 2 comments
Open

Strange behavior with consumables #6

mech-tools opened this issue Feb 11, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@mech-tools
Copy link
Contributor

Hello,

FVTT 0.9.249
5e 1.5.7
This module 2.0.0

Assuming the following consumable configuration:
image

And the following quantity (2):
image

First use case:✅

  • Use the first charge
  • item is sent to chat along with the effect chat card
  • User drag & drop the effect on another token (the Paladin is the origin actor)
    image
  • User use the last charge and drag & drop the second effect chat card into himself (paladin)
    image
    -Everything is ok ✅

Second use case:❎

  • Use the first charge
  • item is sent to chat along with the effect chat card
  • User drag & drop the effect on himself (the Paladin)
    image
  • User use the last charge and send the item and the effect chat card into the chat again
    image
    -The effect created on the origin actor (The paladin) is deleted as soon as the item is destroyed and the chat cards are created ❎

Here is the object if you need it: (GitLab won't let me upload a JSON, if you are not comfortable with a zip I can send you the JSON over Discord)
fvtt-Item-acid-(vial).zip

@akrigline
Copy link
Member

I believe this is a behavior inherited from Core and I'm not really sure what to do about that.

Since the actor who owns the item with the effect is applying the effect to themself, the core system seems to treat it as though the effect is tied to the item's existence (similar to a 'normal' magic item with effects e.g. Cloak of Protection).

So following that same logic, as soon as the item is gone, the effect gets deleted (as it would for an item like a cloak of protection).

This can be demonstrated without the Effects to Chat module active by setting the Acid effect to Automatically Transfer but be disabled. Enable the effect on the owning actor manually, then use the consumable. The effect is removed as the item is destroyed.

@akrigline akrigline added the wontfix This will not be worked on label Feb 11, 2022
@mech-tools
Copy link
Contributor Author

Not sure if I understand the core logic here.
Should we open a ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants