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
|
"utility", // Aren't displayed, Jump height, Carry capacity
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
baseValue: {
|
||||||
|
Number,
|
||||||
|
decimal: true,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
value: {
|
value: {
|
||||||
type: Number,
|
type: Number,
|
||||||
decimal: true,
|
decimal: true,
|
||||||
|
|||||||
@@ -111,9 +111,9 @@ const buildCharacter = function (charId){
|
|||||||
busyComputing: false,
|
busyComputing: false,
|
||||||
type: "attribute",
|
type: "attribute",
|
||||||
attributeType: attribute.type,
|
attributeType: attribute.type,
|
||||||
|
base: attribute.baseValue || 0,
|
||||||
result: 0,
|
result: 0,
|
||||||
mod: 0, // The resulting modifier if this is an ability
|
mod: 0, // The resulting modifier if this is an ability
|
||||||
base: 0,
|
|
||||||
add: 0,
|
add: 0,
|
||||||
mul: 1,
|
mul: 1,
|
||||||
min: Number.NEGATIVE_INFINITY,
|
min: Number.NEGATIVE_INFINITY,
|
||||||
|
|||||||
Reference in New Issue
Block a user