UDgame/Game Mechanics

This is a list of game mechanics in *UD*.

## User Interface

**NOTE:** The mouse cursor is hidden and locked to only rotate the camera until Tab is held.

1. Your inventory. The bottom row of slots are visible at any time, and you can hold Tab to see the rest of the inventory. Any items you collect will appear here, and you can switch between which item you are currently holding by using the mouse wheel, clicking on an item in the inventory, or pressing 0-9 numbers on the keyboard. You can also sort your inventory by dragging items around in it.
2. The pocket crafting button. You can press this button to open a crafting interface, where you can combine certain items together to produce new items. This works in a very similar way to the combine machine, however not all possible crafting recipes are able to be used with pocket crafting.
3. The hunger and thirst bars.
4. The effects bar. Any status effects you have will appear as icons on this bar, as shown above with the immune boost effect. You can also hover over any icons in this bar to see the effect's name, duration and amplification level.
5. The amount of money you have. Money can be used to buy items at the shop machine, to upgrade tools, and many other useful purposes.
6. The equip menu. If you obtains any accessory items, you can equip them and they will appear in this menu. The blue number on an accessory's icon indicates how much protection it gives you, and the red number indicates the item's durability.
7. The protection meter.
8. The minimap. This shows a top-down view of the dungeon, with your current location shown as a green arrow. Corpses are shown as white squares, map markers are shown as red squares, and if a beacon is placed, it will be marked with a yellow-green square and an arrow of the same color will appear on the minimap pointing towards it.
9. The health meter.
10. The temperature meter.
11. The stamina meter.

## Vital Bars

There are multiple "vital bars", mostly shown as numbers on the screen, that communicate useful information about the player.

### Health

**Health**, or **HP**, is the most important vital bar in the game. It appears as a red number in the bottom-left corner of the screen.

It shows how much health the player has left. When the player is reborn, the health bar is set to 16.6, but over time will restore to 20. The health will decrease whenever the player is hurt by any external or internal source. Some examples of things that can decrease the health meter are enemies (Fossilhounds, Lookers, Spidrs), negative status effects (fire, blood loss, poison), and being crushed by rocks.

The health bar can be restored by using items, such as food, canned liquids, or a medkit.

The maximum amount of health is 64. If the player's health reaches 0, they will die.

### Stamina

**Stamina** is another important vital bar. It appears as a green number in the bottom-left corner of the screen.

It shows how much "energy" the player has left. When the player sprints, uses a tool, or does any other energy-draining activity, the stamina meter will decrease. The maximum amount of stamina is 512. When it goes below 256, it will become yellow, and the player will slow down slightly. If it goes below 128, it will become orange, and movement speed will slightly increase but sprinting will no longer affect movement speed (only draining stamina). If the stamina meter gets below 64, it will turn red, and the player will become slow, and if it goes below 32, the player will take damage when walking, crawling, or doing anything that drains stamina.

The stamina bar recovers over time while standing still or crawling, and an amount is instantly recovered by consuming various food and drink items. Stamina restores faster while sitting.

**Temperature** is a minor vital bar. It appears as a grey number in the bottom-left corner of the screen.

It shows the player's current body temperature. Usually, it stays at a normal level, however it can be affected by certain environmental changes, such as standing in cold water, or standing near a heater or cooler. If the temperature meter gets too low, the screen will begin to "freeze", and the player will experience multiple negative effects. It's unknown what happens if the temperature gets too high.

### Hunger

**Hunger** is a minor vital bar. It appears as a brown bar at the top of the screen, to the right of the inventory.

It shows how hungry or full the player currently is; the lower the bar gets, the more hungry the player is. The hunger bar can be increased by eating various food items. If it gets too low, the player will begin to starve.

### Thirst

**Thirst** is a minor vital bar. It appears as a blue bar below the hunger bar.

Similarly to the hunger bar, the lower the thirst bar is, the more thirsty the player is. The thirst bar can be increased by drinking various drinks. If it gets too low, the player will begin to die of thirst.

### Protection

**Protection** is a somewhat important vital bar. It appears as a cyan number next to the equip menu.

It shows how much protection the player currently has from external damage. This bar is increased by wearing accessories, such as armor and amulets.

## Other Mechanics

### Death and Rebirth

If the health bar reaches 0, the player will die, and a corpse will be left on the ground where they once were. This corpse will contain all the items the player had before they died. After this, the player can be "rebirthed", make their way to their corpse and salvage the items from it.

Any money that wasn't in a purse when the player dies is permanently lost.

### Minimap

The minimap is shown at the bottom-right corner of the player's screen at all times (except in dungeon subrooms). It shows a top-down view of the area the player is currently in. It also shows:

* The player's current location as a green arrow.
* The shop machine and the dig spot as large red crosses.
* The upgrade machine as a green dot.
* Any map markers as small red dots.
* Any beacons as big yellow-green dots with an arrow pointing towards it.

The minimap will be obscured whenever the Voice in the Walls makes a noise near the player. The view range of the minimap can also be upgraded by using a minimap ortho upgrade.

### Status Effects

Various status effects can be inflicted upon the player throughout the game, from accessories, enemies, or consumable items. They have various different effects upon the player, and are shown in the top-right corner of the screen as icons.

For a list of status effects that can be inflicted on the player, see this article.

### Asthma

Every time the player is reborn, they have a 5% (1 in 20) chance of being diagnosed with asthma. If the player is diagnosed with asthma, every 60 seconds they will be inflicted with the asthma status effect. The more the player runs, the shorter the time between inflictions will become.

While the player has the asthma status effect, their health will be slowly drained. The effect can be temporarily removed with an inhaler.

### Allergies

When the player is reborn, they may have certain allergies. If the player is allergic to a certain food or drink, consuming that food or drink will give the player a certain negative status effect. There is no way of knowing which allergies the player has unless they use an allergy test.

Each of the below allergies have a 50% chance of being inflicted upon the player when they are reborn. These are not mutually exclusive, so the player can have many allergies, a single allergy, or no allergies at all.

## See Also

* UD
* Status effects