Buffs no longer have the "applied" field, it was redundant

Because children of actions are always inactive in the new engine, buffs 
that are children of actions are inactive while buffs elsewhere on the 
character sheet are active, making it redundant to keep the extra field
This commit is contained in:
Stefan Zermatten
2021-10-18 13:46:38 +02:00
parent 7a11a4aa22
commit 417ff6e210
6 changed files with 13 additions and 98 deletions

View File

@@ -21,8 +21,9 @@ function discoverInlineCalculationFields(prop, schemas){
prop._computationDetails.inlineCalculations.push(inlineCalcObj);
// Extract the calculations and store them on the property
let string = inlineCalcObj.text;
// If there is no text, delete the whole field
if (!string){
delete inlineCalcObj.hash;
unset(prop, calcKey);
return;
}
const inlineCalcHash = cyrb53(inlineCalcObj.text);