Itemdatabase

If an item needs to exist in the database, it needs to be added to the database.

The item database maps item IDs to item data. The item ID is a unique identifier for the item, and the item data contains all the information about the item.

The database is a dictionary that is broadly used in the game to look up item data using an item ID.

Complex items are partially stored in the item database

The item database only contains simple items. Complex items are split into two parts: the simple item and the complex item extending it.

Complex items, such as weapons, armor, and consumables with unique functionality, are not directly stored in the item database. Instead, their simple item (base item) is stored in the item database. The unique attributes and which functionality they have are stored in their respective databases. The functions themselves are stored in the client scripts.