Began migrating action engine to async

To suspending actions to await user input
This commit is contained in:
ThaumRystra
2023-11-13 00:24:51 +02:00
parent 800ef3328c
commit 5a2df36e8b
17 changed files with 222 additions and 71 deletions

View File

@@ -1,5 +1,5 @@
import Creatures from '/imports/api/creature/creatures/Creatures.js';
import { getCreature } from '/imports/api/engine/loadCreatures';
export default function getRootCreatureAncestor(property){
return Creatures.findOne(property.ancestors[0].id);
export default function getRootCreatureAncestor(property) {
return getCreature(property.ancestors[0].id);
}