Files
DiceCloud/rpg-docs/Model/Character/SubSchemas/Effect/Buff.js
2014-11-13 09:30:54 +00:00

17 lines
328 B
JavaScript

/*
* A buff becomes an effect when applied on a creature.
* It is the effect plus the stat to which it should be applied
*/
Schemas.Buff = new SimpleSchema({
stat: {
type: String
},
effect: {
type: Schemas.Effect
}
});
Buff = function(name, stat, value){
this.stat = stat;
this.effect = new Effect(name, value);
};