Cyberware Weapon Corruption
Description of problem
Adjusting any of the weapon related details of a cyberware weapon corrupts the sheet.
Version-release number of Foundry VTT & Cyberpunk RED Core
FoundryVTT v10.285
Cyberpunk Red v0.82.0
Have you been able to reproduce issue?
Yes, 10/10 times.
(I've also tried your Dev branch with the same result)
Steps to Reproduce
1.a Grab the Popup Ranged Weapon from the Cybernetics compendium and add it either to a character sheet or to the world items tab.
1.b Or Create a new Cybernetic and enable the "Is a Weapon" option
- Edit any of the following properties: ROF, Weapon Type, Weapon Skill, Attack Modifier, Damage, DV Table
Actual results
The following set of undesired changes occur when editing any of the cyberarm weapon properties:
- Weapon Type turns into Assault Rifle
- Weapon Skill turns into Archery
- Damage seems to duplicate its previous state and stacks it on top of the new desired damage. It straight doubles it (2d6 -> 2d6, 2d6 -> 2d6, 2d6, 2d6, 2d6) if you edit anything other than the damage property. If you edit the damage property: If you try 2d6 -> 3d6, then damage turns into "3d6, 2d6". Try again to turn that into 3d6 turns and it into "3d6, 3d6, 2d6".
Expected results:
For sheet properties to be editable and damage to not self-multiply.
If bug concerns a 3rd party module
I tested this in a fresh world with 0 modules enabled.
Edited by WV