Vendare / DarkHeresy2E-FoundryVTT

GNU General Public License v3.0
25 stars 54 forks source link

Ammo in clip sync dispite "actor data link" turned off. #134

Open Faultone opened 1 year ago

Faultone commented 1 year ago

If you create multiple tokens while "actor data link" checkbox is empty, wounds and other things counted separately but ammo in weapon clip synced between all tokens (if one token fires weapon, everyone looses ammo in clip).

Vendare commented 1 year ago

This stops happening the moment any value of the weapon is edited. There is some problem going on with the itemIds on the Sheet that are pulled to update the weapons Magazin Value. This requires further experimentation and investigation

Faultone commented 1 year ago

I have experimented a bit on different versions and got strange results:

  1. In v10 304 clips sync only after refresh (F5) (probably this helped this bug to live for so long), but after refresh somehow change ammo count of original actor.
  2. In v10 and v11 if you try to add weapon to NPC token's gear and use it, ammo is not substracted from the clip of a new weapon.

Hope this can help somehow.

Vendare commented 4 months ago

The cause of this is that the items are generelly copied over from the tokens actor and any changes to those items are stored in a delta that is applied per token. Makes it hard to handle individual ammo consumption on a perr Item basis. This needs a work around for NPC Tokens