Began refactoring character computations

This commit is contained in:
Stefan Zermatten
2020-03-16 17:28:53 +02:00
parent 5ed8e08993
commit 1a0c2bca78
6 changed files with 420 additions and 469 deletions

View File

@@ -23,6 +23,7 @@ let EffectSchema = new SimpleSchema({
'passiveAdd',
'fail',
'conditional',
'rollBonus',
],
},
calculation: {

View File

@@ -55,7 +55,7 @@ ItemSchema = new SimpleSchema({
// Unequipped items shouldn't affect creature stats
equipped: {
type: Boolean,
optional: true,
defaultValue: false,
},
});

View File

@@ -1,8 +1,16 @@
import SimpleSchema from 'simpl-schema';
let ProficiencySchema = new SimpleSchema({
// The variableName of the skill to apply this to
skill: {
name: {
type: String,
optional: true,
},
// The variableNames of the skills, tags, or attributes to apply proficiency to
stats: {
type: Array,
defaultValue: [],
},
'stats.$': {
type: String,
optional: true,
},