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:
@@ -10,7 +10,7 @@ export default function computeCreature(creatureId){
|
||||
try {
|
||||
computeCreatureComputation(computation);
|
||||
writeAlteredProperties(computation);
|
||||
writeScope(creatureId, computation.scope);
|
||||
writeScope(creatureId, computation);
|
||||
} catch (e){
|
||||
const errorText = e.reason || e.message || e.toString();
|
||||
computation.errors.push({
|
||||
|
||||
Reference in New Issue
Block a user