Lots of progress testing and fixing computation engine

This commit is contained in:
Stefan Zermatten
2021-09-16 14:31:28 +02:00
parent dfd7ad4af5
commit a660ccc458
34 changed files with 775 additions and 90 deletions

View File

@@ -4,7 +4,8 @@ export default function computeInactiveStatus(node){
const prop = node.node;
if (isActive(prop)) return;
// Unequipped items disable their children, but are not disabled themselves
if (prop.type !== 'item'){
// All notes do the same
if (prop.type !== 'item' && prop.type !== 'note' ){
prop.inactive = true;
prop.deactivatedBySelf = true;
}