ElfFriend-DnD / foundryvtt-item-effects-to-chat-5e

A module which allows a GM to interact with effects on rolled items from chat.
MIT License
0 stars 2 forks source link

Strange behavior with consumables #6

Open DarKDinDoN opened 2 years ago

DarKDinDoN commented 2 years ago

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:✅

Second use case:❎

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 commented 2 years ago

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.

DarKDinDoN commented 2 years ago

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