Changed rpg-docs folder to app

This commit is contained in:
Stefan Zermatten
2018-05-21 14:21:07 +02:00
parent 45e9f491ff
commit 52baf297ca
419 changed files with 12 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
/*
* Adjustments make instantaneous changes to the value of some attribute
* Damage, healing and resource cost/recovery are all adjustments
*/
Schemas.Adjustment = new SimpleSchema({
//which stat the adjustment is applied to
stat: {
type: String,
optional: true,
},
//the value added to the stat
value: {
type: Number,
decimal: true,
optional: true,
},
calculation: {
type: String,
optional: true,
},
});

View File

@@ -0,0 +1,13 @@
Schemas.Attribute = new SimpleSchema({
//the temporary shift of the attribute
//should be zero after reset
adjustment: {
type: Number,
defaultValue: 0,
},
reset: {
type: String,
defaultValue: "longRest",
allowedValues: ["longRest", "shortRest"],
},
});

View File

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

View File

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