Guides/Storage

Each Building in Medieval Dynasty comes with some sort of a storage. Most often, it will be a storage chest located somewhere inside the building. Storage capacity is measured in weight (kilograms, kg).

## Different types of storage

In total, there are five types of storage available in game:

* the Storage Buildings Food Storage and Resource Storage,
* the storage chests in work buildings,
* the storage chests in villager homes,
* the player character inventory and
* pouches, backpacks and saddlebags

### Storage Buildings

The two most important types of storage buildings are the Food Storage and Resource Storage. Every game item has a description which mentions the preferred storage location: "Food Storage" or "Resource Storage". This can be looked up when clicking on the game item with a left mouse click. The information is mentioned in the top right corner of the item description (c. f. screenshot).

#### Shared Storage

Storage buildings of the same type share their storage, regardless of their Building Tier (T1, T2 or T3) or location on the Map.

#### Case study

The player character settles on the riverbank in the West of the NPC village of Gostovia. In particular, the player has built:

* a T1 Food Storage (200 kg storage capacity) and
* a T1 Resource Storage (1,000 kg storage capacity)
* as well as a few other buildings, e. g. a T1 Simple Small House and a T1 Hunting Lodge.

After a couple of years, the player decides to move to another building location which suits more their playstyle. They explore the lands and find a nice spot on the other side of the map, in a forest next to the NPC village of Jezerica.

Over there, the player builds

* a T2 Food Storage (1,000 kg storage capacity) and
* a T2 Resource Storage (2,000 kg storage capacity).

Around midnight, the player goes to sleep in their new home which they built in their new settlement next to Jezerica. The next morning, they wake up and look in their newly built T2 Food Storage and T2 Resource Storage chests.

**Result**
Without having to travel to their old settlement near Gostovia, the player character now has access not only to their food and resource items on site, but also to all the food and resource items that they once placed in the T1 Food Storage and T1 Resource Storage in their old settlement next to Gostovia. The new storage capacities are as follows:

* Food Storage capacity: 1,200 kg and
* Resource Storage capacity: 3,000 kg.

### Storage chests in work buildings

The storage chests in excavation buildings, hunting buildings (verification needed), survival buildings (verification needed), production buildings and farming buildings will serve as an "overflow" for game items whenever the Storage Buildings reach their storage capacity limit. The use of the storage chests in work buildings is optional, but generally not recommended as their storage capacity is very limited. Secondly, they do **not** share their storage with any other storage chest or the Storage Buildings.

### Storage chests in villager homes

Storage chests in villager homes are one of the first early game storage that are available to the player character. Similarly to the Storage chests in work buildings, their storage capacity is very limited. They also do not share their storage with any other storage chest or the Storage Buildings. Thirdly, they do not serve as an "overflow".

## Items and storage

All Items are supposed to go either to the Resource Storage or the Food Storage. All items will show where they want to go in the top right corner of their description.

If an item is in the wrong kind of storage, villagers *will not* consider using it.

This can be abused/used in the player's favor as a means to "hide" items from villagers. For example, Seeds and grains are expected to be in the Resource Storage. If the player put some Seeds in the Food storage instead, they will not be used by villagers - neither in the Barn or the Market Stall.

## Item Output order

When villagers produce things, they automatically put the produced items in the correct storage. So the Kitchen produces to the Food Storage, while the Smithy will produce to the Resource Storage.

But if the target storage is full, they cannot do that. **In that case, they will put the items in the chest belonging to the producing building.** Also, if the target storage becomes available again, they will not empty the chest in the producing building - that is left to the player. So avoid running out of space in the "big" storage.

## Item Input order

When a building needs something for production, like cabbage or iron ore, they will first look in the storage of the producing building. Only if there's nothing useful it will check the "big" storage.

That also means items in building storage will be used with priority. For example, when a smith needs a hammer he'll usually take the one with lowest durability first from the storage. But if the player puts high durability hammers in the building chests, they will use those first!

That's also true for non-producing buildings, i.e. Houses. If the player thinks the valuable mead looted from a bandit is safe in the chest in the house while the player's already married - it is not. The wife will now use the mead for water needs, with priority.

## Food spoilage

Items that can spoil will do so at season change, depending on where they are stored. Basically, Food Storage is best, dropped to the ground is worst.

Main Article: Food Spoilage

## Miscellaneous

* The only building that has no chest as storage is the well. It has a barrel instead.
* The Woodshed shows how much weight is in the chest visually in the building. It will show logs on the rails. It doesn't matter if there are really logs in the chest or stones.