Performance much improved using a single JSON.
Will fetch all sheet values onOpen, then clone object, write and store JSON.
After which, all getAttrs() calls will fetch the single JSON.
setAttrs() writes the JSON back.
JSON is refreshed every onOpen event (improve data integrity).
Attribute removal also removes JSON entries for prolonged play and not killing performance.
Now when activating/deactivating Combat Technique which includes Rush Attack or Lightning Reflexes, their values will be added or removed, respectively, from rolls automatically.
commit 7c672c17217a11663edbd0aad5f617fc60fd24d5
Author: Darth-John <77751557+Darth-John@users.noreply.github.com>
Date: Mon Feb 7 22:59:14 2022 -0800
Added support for undetectable
Added support for undetectable tooltip descriptions.
* Added support for Attribute - Resilient
* Added support for Attribute – Unaffected
* Added tooltip descriptions for Enhancements and Limiters applied to Active Attributes
* Added new damage types: acid, disease, psychosomatic, and toxin.
* Weapons will now adjust the available damage types when Enhancements Insidious or Psionic are applied.
* Added new Armor Enhancement – Disperse. Converts 50% of normal damage stopped to Stun and applies to character. 100% of Stun damage taken is stopped.
* Added new Forcefield Enhancement – Specific. Doubles Armor Rating to 1 of 3 damage categories: chemical, energy, or physical, but does not protect against remaining 2 damage categories.
* Attribute Options menu now opens with accordion transition rather than modal.
* Minor bug fixes.
* Minor performance improvement.
Added support for range penalties on weapons when Range Enhancement is applied (Extras rulebook).
Added support for weapons with Ammo Limiter.
Added support for weapons with Autofire Enhancement.
New UI additions for players to interact with Range, Ammo, and Autofire.
Defect, Impaired Sense, now has field to select sense.
Impaired Sense now affects Perception Roll.
Cleaned up extraneous debug messages and commented code.
Added support for the Swarm attribute.
Fixed Weapon Selection logic.
Temporarily removing Telekinesis attribute as an weapon. Upon reading the Core rulebook on how this attribute can be used offensively, it was not implemented correctly. Will address in a future update.
Fixed focused ACV attributes not applying their value correctly (was 1:1 instead of 2:1).
Fixed *Mastery attributes from not applying correctly to attack/defense rolls.
Added roll template for rollable attributes
Fixed power flux and power variation stat assignment
Removed stat assignment from attribute group (was not actually used for anything)
Added weapon customizations to weapon attack roll templates.
Added protection layers to weapon defense roll templates.
Added shock value to weapon defense roll templates.
Few minor bug fixes.