diff --git a/app/imports/api/creature/computation/engine/computeEndStepProperty.js b/app/imports/api/creature/computation/engine/computeEndStepProperty.js
index e6f1a705..1a3bba1d 100644
--- a/app/imports/api/creature/computation/engine/computeEndStepProperty.js
+++ b/app/imports/api/creature/computation/engine/computeEndStepProperty.js
@@ -21,6 +21,8 @@ export default function computeEndStepProperty(prop, memo){
break;
case 'spellList':
computePropertyField(prop, memo, 'maxPrepared');
+ computePropertyField(prop, memo, 'attackRollBonus');
+ computePropertyField(prop, memo, 'dc');
break;
case 'propertySlot':
computePropertyField(prop, memo, 'quantityExpected');
diff --git a/app/imports/api/properties/SpellLists.js b/app/imports/api/properties/SpellLists.js
index 1ff0f39e..19d9e5c9 100644
--- a/app/imports/api/properties/SpellLists.js
+++ b/app/imports/api/properties/SpellLists.js
@@ -23,6 +23,16 @@ let SpellListSchema = new SimpleSchema({
type: String,
optional: true,
},
+ // Calculation of The attack roll bonus used by spell attacks in this list
+ attackRollBonus: {
+ type: String,
+ optional: true,
+ },
+ // Calculation of the save dc used by spells in this list
+ dc: {
+ type: String,
+ optional: true,
+ },
});
const ComputedOnlySpellListSchema = new SimpleSchema({
@@ -33,6 +43,7 @@ const ComputedOnlySpellListSchema = new SimpleSchema({
},
'descriptionCalculations.$': InlineComputationSchema,
+ // maxPrepared
maxPreparedResult: {
type: Number,
optional: true,
@@ -44,6 +55,32 @@ const ComputedOnlySpellListSchema = new SimpleSchema({
'maxPreparedErrors.$':{
type: ErrorSchema,
},
+
+ // attackRollBonus
+ attackRollBonusResult: {
+ type: Number,
+ optional: true,
+ },
+ attackRollBonusErrors: {
+ type: Array,
+ optional: true,
+ },
+ 'attackRollBonusErrors.$':{
+ type: ErrorSchema,
+ },
+
+ // dc
+ dcResult: {
+ type: Number,
+ optional: true,
+ },
+ dcErrors: {
+ type: Array,
+ optional: true,
+ },
+ 'dcErrors.$':{
+ type: ErrorSchema,
+ },
});
const ComputedSpellListSchema = new SimpleSchema()
diff --git a/app/imports/ui/properties/forms/SpellListForm.vue b/app/imports/ui/properties/forms/SpellListForm.vue
index aa24cee4..cb79a32f 100644
--- a/app/imports/ui/properties/forms/SpellListForm.vue
+++ b/app/imports/ui/properties/forms/SpellListForm.vue
@@ -25,7 +25,7 @@
@change="change('description', ...arguments)"
/>
-
+
+
+
+
+
+
+
+
+