17 lines
328 B
JavaScript
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);
|
|
}; |