refactored action engine into individual files

This commit is contained in:
Thaum Rystra
2024-02-15 22:30:50 +02:00
parent 19f7d40386
commit aee9d6b8cb
63 changed files with 1854 additions and 2898 deletions

View File

@@ -163,12 +163,13 @@ export function getPropertyDescendants(creatureId, propertyId) {
if (
prop.left > property.left
&& prop.right < property.right
&& prop.removed !== true
) {
props.push(prop);
}
}
const cloneProps = EJSON.clone(props);
return cloneProps
const cloneProps = EJSON.clone(props).sort((a, b) => a.left - b.left);
return cloneProps;
} else {
return CreatureProperties.find({
...getFilter.descendants(property),