Prevented contextual variables #type from being written to creature variable list
This commit is contained in:
@@ -33,6 +33,8 @@ export default function writeCreatureVariables(memo, creatureId, fullRecompute =
|
|||||||
if (fullRecompute){
|
if (fullRecompute){
|
||||||
memo.creatureVariables = {};
|
memo.creatureVariables = {};
|
||||||
forOwn(memo.statsByVariableName, (stat, variableName) => {
|
forOwn(memo.statsByVariableName, (stat, variableName) => {
|
||||||
|
// Don't save context variables
|
||||||
|
if (variableName[0] === '#') return;
|
||||||
let condensedStat = pick(stat, fields);
|
let condensedStat = pick(stat, fields);
|
||||||
memo.creatureVariables[variableName] = condensedStat;
|
memo.creatureVariables[variableName] = condensedStat;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user