Gameplay

Gameplay mechanics of Shadowreach.

## Movement

Characters can move throughout the environment freely. By default movement will not affect a player's energy. Sprinting allows a player to move faster but their energy will be depleted by x/sec.

## Energy

Energy is the measure of a character's life-force and ability to perform certain actions. When a character's energy reaches 0 they will die.

The following actions will drain your energy by a fixed amount over time:

* Sprinting (x/sec)
* Attacking (variable)

The following actions will drain your energy immediately by a fixed amount:

* Taking Damage (variable)

If energy is regenerating and the player is hit by an attack, several things will happen:

* Energy regeneration will halt at the energy the player was attacked
* The player's energy will be reduced using the standard Damage calculation
* The maximum energy that can be regenerated will be set at this level

To increase the maximum amount of energy that can be regenerated the player can drink an energy potion or rest at a shrine.

Armor will reduce a player's maximum energy unless they have the minimum points required in the armor skill to avoid this penalty.

For more information see the full article on Energy.

## Shrines

Shrines are places where the player can rest and be resurrected. Resting at a shrine also allows the player to increase their level and assign perks.

When a player rests at a shrine the following occurs:

* Player energy is restored to max
* All enemies are resurrected in the world
* The player can increase their level and assign perks

For more information see the full article on Shrines. For more information on leveling and perks see the full article on Player Level.

## Resurrection

Characters are resurrected when a player rests at a shrine or when the player dies and is resurrected at a shrine.

Characters that are not resurrected when the player rests at a shrine:

* Bosses
* Friendly Characters

For more information see the full article on Resurrection.

## Interaction

Characters and the player can interact with one another and the environment. To interact with characters and the environment use the Action Button. (See Default Controls for key bindings)

## Dodging

When a character or player dodges they avoid all damage during most of the dodge action. Each dodge will immediately deplete energy by x. This energy can be regenerated unless the player is hit.

For more information see the full article on Energy.

## Blocking

When a character is blocking with their weapon or a shield they will receive less damage when attacked. While blocking energy regeneration is reduced by x%.

For more information see Damage and Defense.

## Knockback

Knockback occurs when a character is struck by an attack and is staggered by it. When a character is knocked back they can't attack, dodge or move until the knockback has worn off. In general, heavier weapons will cause more knockback while lighter weapons and unarmed attacks will cause little or no knockback. A character's armor rating is used when calculating the amount of knockback. The higher the armor rating the more knockback will be reduced.

For more information see the full article on Damage and Defense.

## Damage

Damage is applied when a weapon strikes the attacked character. Damage dealt to a character is calculated using the following:

* wpn = attacker's weapon
* dmg = damage
* mod = damage modifier (weapon buffs, nerfs etc.)
* ench = weapon enchantments
* blk = block rating (shield or weapon blocking)

damage\_dealt = [(wpn\_dmg x dmg\_mod) + (ench\_dmg x ench\_mod)] - (armor\_rating + blk)

For more information see the full article on Damage and Defense.

## Defense (Armor Rating)

Defense (or armor rating) is the amount of damage that will be subtracted from attack damage when a character is attacked.

Armor Rating is calculated by the sum of the following factors:

* Head-slot armor rating
* Chest-slot armor rating
* Legs-slot armor rating
* Boots-slot armor rating
* Armor modifiers
* Weapon defense bonuses
* Enchant defense bonuses

Armor Rating is NOT modified by the following:

* Any vanity-slot armor ratings

For more information see the full article on Damage and Defense.