Added baseValue to attributes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user