afonsolage / skyon

Sandbox MMORPG
0 stars 0 forks source link

Add items #13

Closed afonsolage closed 3 years ago

afonsolage commented 3 years ago

Add the items concept. The items should have the following types:

Each item should have a unique icon also. The icon can be used in any slot-capable item, like inventory, equipment, auction house, loot bags and so on.

afonsolage commented 3 years ago

Item Resource

Item resources is the basic attribute, which doesn't change once the item is instantiated. All item resources are static and live on resources files, be it on client or server. There are some properties that should exists only on server-side.

Most item resources will have base properties, like category, name, icon, slots and so on.

Items have the following categories:

All items will share the following common properties:

Consumables will have the following unique properties:

Equipment will have the following unique properties:

Item Instance

Items Instance represents an unique instance of a given Item Resource. Many of properties of Item Instance will be used from Item Resource or generated when the item instance is created.

Item Resources are generated on runtime and lives on a DB, due to some guaranties needed, like ACID transactions when creating, updating or deleting items.

All items instances will share a common:

Consumable will have the following unique properties:

Equipment will have the following unique properties: