
I have a character sheet that I'm playing around with and would like to have the weight of armour ignored by the encumbrance calculation when a checkbox is ticked. In the wiki I found that code that includes it when ticked, but how do I do the opposite? The same checkbox is used for armour class calculations, so I don't want to break that. Code from wiki: on ( 'change:repeating_armour remove:repeating_armour' , function () {
repeatingSum ( "armour_weight" , "armour" ,[ "armour_piece" ,"armour_worn"]);
});