Fixed massive writes to creature.variables on calc
Now only writes changed variables, preventing oplog from being polluted with massive updates
This commit is contained in:
@@ -54,7 +54,7 @@ function getCreature(creatureId){
|
||||
|
||||
export function buildComputationFromProps(properties, creature){
|
||||
|
||||
const computation = new CreatureComputation(properties);
|
||||
const computation = new CreatureComputation(properties, creature);
|
||||
// Dependency graph where edge(a, b) means a depends on b
|
||||
// The graph includes all dependencies even of inactive properties
|
||||
// such that any properties changing without changing their dependencies
|
||||
|
||||
Reference in New Issue
Block a user