-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathitem-prototypes.js
21 lines (21 loc) · 1.18 KB
/
item-prototypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** Configure ItemPrototype object */
module.exports.configItemPrototype = (world) => {
return {
tableName: `item_prototypes`,
className: `ItemPrototype`,
properties: [
{ name: `author`, type: `varchar`, length: 32, default: `Anonymous` },
{ name: `created`, type: `datetime`, default: new Date() },
{ name: `description`, type: `varchar`, length: 512, default: `It looks like a wieghtless and translucent spherical form of bound energy.` },
{ name: `details`, type: `object` },
{ name: `flags`, type: `Array`, arrayOf: { type: `int` } },
{ name: `id`, type: `int` },
{ name: `name`, type: `varchar`, length: 32, default: `a translucent sphere of energy` },
{ name: `names`, type: `Array`, arrayOf: { type: `varchar`, length: 32 }, default: [`sphere`, `energy`] },
{ name: `rarity`, type: `int`, default: world.constants().rarities.COMMON },
{ name: `roomDescription`, type: `varchar`, length: 80, default: `a translucent sphere of energy is floating here` },
{ name: `slot`, type: `int`, default: world.constants().slots.NONE },
{ name: `type`, type: `int`, default: world.constants().itemTypes.OTHER }
]
};
};