Completed the stats tab, conditions not added yet

This commit is contained in:
Stefan Zermatten
2019-01-21 16:03:05 +02:00
parent e43718f034
commit 60dfba3b46
13 changed files with 310 additions and 49 deletions

View File

@@ -5,7 +5,7 @@ import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
let Attributes = new Mongo.Collection("attributes");
/*
* Attributes are whole numbered stats of a character
* Attributes are numbered stats of a character
*/
attributeSchema = new SimpleSchema({
charId: {
@@ -32,7 +32,8 @@ attributeSchema = new SimpleSchema({
allowedValues: [
"ability", //Strength, Dex, Con, etc.
"stat", // Speed, Armor Class
"hitDice",
"modifier", // Proficiency Bonus, Initiative
"hitDice", // d12 hit dice
"healthBar", // Hitpoints, Temporary Hitpoints
"resource", // Rages, sorcery points
"spellSlot", // Level 1, 2, 3... spell slots

View File

@@ -71,15 +71,11 @@ let skillSchema = new SimpleSchema({
type: SimpleSchema.Integer,
optional: true,
},
enabled: {
type: Boolean,
defaultValue: true,
},
});
Skills.attachSchema(skillSchema);
//Skills.attachBehaviour("softRemovable");
makeChild(Skills, ["enabled"]); //children of lots of things
makeChild(Skills); //children of lots of things
export default Skills;