Implemented and cleaned up character schemas
This commit is contained in:
17
rpg-docs/Model/Character/SubSchemas/Effect/Buff.js
Normal file
17
rpg-docs/Model/Character/SubSchemas/Effect/Buff.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* 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);
|
||||
};
|
||||
Reference in New Issue
Block a user