# Defense System

In our system, defense helps reduce incoming damage, but it **never makes you completely invincible.** Instead of blocking a flat amount, defense reduces damage based on how much you have compared to the attack’s strength.

## The Formula

When you take damage, this formula is applied:

```
#damage# * (1 - (#defense# / (#defense# + #damage# * 0.4 + 50)))
```

## Breaking It Down ![](/files/y9fuSlFsi7sHpUsT37GI)

* The more defense you have, the less damage you take. Defense reduces incoming damage by a percentage instead of a fixed amount. This means high-damage attacks still deal some damage, even against tanks.
* Diminishing Returns – Defense gets less effective at higher values. Early defense upgrades make a big difference. Later on, stacking even more defense still helps, but the effect slows down.&#x20;
* **Even weak attacks will still do some damage.** The + 50 in the formula ensures that small attacks aren’t reduced to 0.

## Example Scenarios

### Example 1 - Medium Defense Vs. Attack

A player with 200 defense is hit by an attack that dealt 500 damage:

<figure><img src="/files/cjcu56pFBElLXHVPpC18" alt=""><figcaption><p><strong>Final Damage = 278</strong></p></figcaption></figure>

Damage is reduced by \~44.4%, but the player still takes a good chunk of damage.

### Example 2 – High Defense Vs. Strong Attack

A 1000-defense player is hit by a 1000-damage attack:

<figure><img src="/files/yii7IzE2imeLG1U00Gfo" alt=""><figcaption><p><strong>Final Damage = 311</strong></p></figcaption></figure>

Damage is reduced by \~68.9%, but even tanks still take some damage from strong attacks!nuevo

## What This Means for You?

* Building defense is great, but <mark style="color:blue;">you won’t be invincible</mark>.
* Stronger attacks will always deal some damage, even against tanks.
* Defense has diminishing returns, so balancing offense and defense is key.

Here's some graphs to visualize this as well.

<div><figure><img src="/files/D4ZF1nZ2BST2BegTdeTV" alt=""><figcaption></figcaption></figure> <figure><img src="/files/YrCHbYuQvmaGMnn2ILN9" alt=""><figcaption></figcaption></figure></div>

To sum it up, <mark style="color:orange;">**the higher your defense, the higher the damage reduction**</mark>**.**&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.drgnshield.com/mmorpg/mechanics/defense-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
