Implemented Features and Items granting effects, actions, attacks and spells
This commit is contained in:
29
rpg-docs/Model/Character/SubSchemas/Action.js
Normal file
29
rpg-docs/Model/Character/SubSchemas/Action.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Actions are given to a character by items and features
|
||||
*/
|
||||
Schemas.Action = new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
autoValue: function(){
|
||||
if(!this.isSet) return Random.id();
|
||||
}
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
description: {
|
||||
type: String
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
allowedValues: ["action, bonus, reaction, free"],
|
||||
defaultValue: "action"
|
||||
},
|
||||
selfBuffs: {
|
||||
type: [Schemas.Buff], defaultValue: []
|
||||
},
|
||||
selfAdjustments: {
|
||||
type: [Schemas.Adjustment], defaultValue: []
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user