rename /rpg-docs to /app
This commit is contained in:
21
app/Model/Character/SubSchemas/Adjustment.js
Normal file
21
app/Model/Character/SubSchemas/Adjustment.js
Normal 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,
|
||||
},
|
||||
});
|
||||
13
app/Model/Character/SubSchemas/Attribute.js
Normal file
13
app/Model/Character/SubSchemas/Attribute.js
Normal 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"],
|
||||
},
|
||||
});
|
||||
22
app/Model/Character/SubSchemas/DeathSaves.js
Normal file
22
app/Model/Character/SubSchemas/DeathSaves.js
Normal 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,
|
||||
},
|
||||
});
|
||||
4
app/Model/Character/SubSchemas/Skill.js
Normal file
4
app/Model/Character/SubSchemas/Skill.js
Normal file
@@ -0,0 +1,4 @@
|
||||
Schemas.Skill = new SimpleSchema({
|
||||
//attribute name that this skill used as base mod for roll
|
||||
ability: {type: String, defaultValue: ""},
|
||||
});
|
||||
Reference in New Issue
Block a user