Removed variable names from items, now only use tags. Items can also be attuned

This commit is contained in:
Thaum Rystra
2020-04-30 14:52:41 +02:00
parent 4180e153dd
commit 1ca6bc834a
2 changed files with 40 additions and 30 deletions

View File

@@ -1,19 +1,10 @@
import SimpleSchema from 'simpl-schema';
import VARIABLE_NAME_REGEX from '/imports/constants/VARIABLE_NAME_REGEX.js';
ItemSchema = new SimpleSchema({
const ItemSchema = new SimpleSchema({
name: {
type: String,
optional: true,
defaultValue: "New Item",
},
// Variable name to reference this item as ammunition or in formulae
variableName: {
type: String,
regEx: VARIABLE_NAME_REGEX,
min: 3,
defaultValue: 'newAttribute',
},
// Plural name of the item, if there is more than one
plural: {
type: String,
@@ -47,6 +38,10 @@ ItemSchema = new SimpleSchema({
type: Boolean,
optional: true,
},
attuned: {
type: Boolean,
optional: true,
},
// Show increment/decrement buttons in item lists
showIncrement: {
type: Boolean,