Improved slot schema, added ui for slots
This commit is contained in:
@@ -16,6 +16,8 @@ export default function computeEndStepProperty(prop, memo){
|
||||
case 'spellList':
|
||||
computeSpellList(prop, memo);
|
||||
break;
|
||||
case 'propertySlot':
|
||||
computeSlot(prop, memo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,3 +96,13 @@ function computeSpellList(prop, memo){
|
||||
delete prop.maxPreparedErrors;
|
||||
}
|
||||
}
|
||||
|
||||
function computeSlot(prop, memo){
|
||||
let {value, errors} = evaluateCalculation(prop.slotCondition, memo);
|
||||
prop.slotConditionResult = value;
|
||||
if (errors.length){
|
||||
prop.slotConditionErrors = errors;
|
||||
} else {
|
||||
delete prop.slotConditionErrors;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user