Added baseValue to attributes

This commit is contained in:
Stefan Zermatten
2018-08-28 09:55:22 +02:00
parent b4506fd939
commit fa3cca7193
2 changed files with 6 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ Schemas.Attribute = new SimpleSchema({
"utility", // Aren't displayed, Jump height, Carry capacity
],
},
baseValue: {
Number,
decimal: true,
optional: true,
},
value: {
type: Number,
decimal: true,

View File

@@ -111,9 +111,9 @@ const buildCharacter = function (charId){
busyComputing: false,
type: "attribute",
attributeType: attribute.type,
base: attribute.baseValue || 0,
result: 0,
mod: 0, // The resulting modifier if this is an ability
base: 0,
add: 0,
mul: 1,
min: Number.NEGATIVE_INFINITY,