Implemented a javascript code style

This commit is contained in:
Stefan Zermatten
2015-04-22 12:44:25 +02:00
parent dce20375b5
commit fada0f5136
113 changed files with 1614 additions and 1650 deletions

View File

@@ -5,21 +5,21 @@
Schemas.Adjustment = new SimpleSchema({
name: {
type: String,
optional: true
optional: true,
},
//which stat the adjustment is applied to
stat: {
type: String,
optional: true
optional: true,
},
//the value added to the stat
value: {
type: Number,
decimal: true,
optional: true
optional: true,
},
calculation: {
type: String,
optional: true
}
optional: true,
},
});

View File

@@ -3,11 +3,11 @@ Schemas.Attribute = new SimpleSchema({
//should be zero after reset
adjustment: {
type: Number,
defaultValue: 0
defaultValue: 0,
},
reset: {
type: String,
defaultValue: "longRest",
allowedValues: ["longRest", "shortRest"]
}
allowedValues: ["longRest", "shortRest"],
},
});

View File

@@ -3,20 +3,20 @@ Schemas.DeathSave = new SimpleSchema({
type: Number,
min: 0,
max: 3,
defaultValue: 0
defaultValue: 0,
},
fail: {
type: Number,
min: 0,
max: 3,
defaultValue: 0
defaultValue: 0,
},
canDeathSave: {
type: Boolean,
defaultValue: true
defaultValue: true,
},
stable: {
type: Boolean,
defaultValue: false
}
defaultValue: false,
},
});

View File

@@ -1,4 +1,4 @@
Schemas.Skill = new SimpleSchema({
//attribute name that this skill used as base mod for roll
ability: { type: String, defaultValue: "" },
ability: {type: String, defaultValue: ""},
});