Changed how effects are applied and removed to enable effects expiring after a set duration.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
Schemas.Feature = new SimpleSchema({
|
||||
_id: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
character: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
name: {type: String},
|
||||
description:{type: String},
|
||||
buffs: {type: [Schemas.Buff], optional: true},
|
||||
@@ -8,4 +7,4 @@ Schemas.Feature = new SimpleSchema({
|
||||
expires: {type: Number, optional: true},
|
||||
duration: {type: Number, optional: true},
|
||||
uses: {type: Number, min: 0, optional: true},
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user