Changed Characters to creatures, as the new attributes system is generalisable

This commit is contained in:
Stefan Zermatten
2018-08-24 12:14:03 +02:00
parent 7c9687955d
commit 5c40a84660
24 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Notes = new Mongo.Collection("notes");
Schemas.Note = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, optional: true, trim: false},
description: {type: String, optional: true, trim: false},
color: {
type: String,
allowedValues:_.pluck(colorOptions, "key"),
defaultValue: "q",
},
});
Notes.attachSchema(Schemas.Note);
Notes.attachBehaviour("softRemovable");
Notes.allow(CHARACTER_SUBSCHEMA_ALLOW);
Notes.deny(CHARACTER_SUBSCHEMA_DENY);