> For the complete documentation index, see [llms.txt](https://docs.champz.world/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.champz.world/main-screen/barracks/actions/fighting.md).

# Fighting

In Arborethia, the mushrooms defend the Tree of Life from attacking creatures. The fighting system is turn-based, and to engage in battle, you select the Fight option for a character in the Barracks. Fighting costs 1 Action Point (AP) and the formulars for attack and defense values can be seen at the bottom of the page.

<figure><img src="/files/FktyjZ27LPk638tXlCN5" alt=""><figcaption></figcaption></figure>

### The battle screen

The battle screen is openend when you command one of your characters to fight.

<figure><img src="/files/8gwvXYCbL3akqMjicS99" alt=""><figcaption></figcaption></figure>

There are different control buttons and status windows that effect the battle or the view on the battle.&#x20;

* <img src="/files/iXco8owxIFXdAAdmR0HC" alt="" data-size="line"> action button - normal attack <img src="/files/KYVJe8kMDW3JPHsNqabY" alt="" data-size="line">. Attack with 100% of the characters attack value with a miss chance of 10% on the selected target. Chances can be improved with items.
* <img src="/files/8JBMIq0gCJxnMq1hHjxo" alt="" data-size="line"> action button - strong attack <img src="/files/zri5xPdBWkbyt4uqSfOn" alt="" data-size="line">. Attack with 100% of the characters attack value with a miss chance of 60% on the selected target. Chances can be improved with items.
* <img src="/files/ajaYx16J8UDRwkaC8BoY" alt="" data-size="line"> action button - class spell <img src="/files/gtZbbnvtvJrsuOlUOhyW" alt="" data-size="line"><img src="/files/eTsnE4mVud6cIT9epDAL" alt="" data-size="line"><img src="/files/GMImQleZCE0pVowXCnsH" alt="" data-size="line"><img src="/files/avSAo4BDteXSjG0gSmZJ" alt="" data-size="line"><img src="/files/xKNVJdKtsO0ruIQG423h" alt="" data-size="line"><img src="/files/10LVqXr7wZuL7Wg3GchY" alt="" data-size="line">. Cast of the characters class specific spell on a valid target if at least 1 mana is available.
* <img src="/files/7L3aFW59a5e27U71InLM" alt="" data-size="line"> action button - surrender <img src="/files/Yw6QIf68mcLmqNci6XuR" alt="" data-size="line">. Flee from the fight
* <img src="/files/cm7K0x006y5ZGZgBzQEj" alt="" data-size="line"> skip fight button - The whole battle will be visually skipped and a normal attack will be performed until the battle is over. The end of battle screen is shown immediately.
* <img src="/files/ldNfa6lMrH2MWr7VSOoN" alt="" data-size="line"> history button. When pressing this button the history (attacks, damage, heal etc.) of the current battle is shown
* <img src="/files/hIRvrkK4Xf9yyXv9DWxt" alt="" data-size="line"> Character Information. At this panels the stats of your character and the enemy character can be seen. By hovering over the equipped items/abilites of the characters additional information is shown.
* <img src="/files/3AYVQ2gDsjwjvLo44kbf" alt="" data-size="line"> Animation speed. The animation speed can be changed. Possible animation speeds: 1x, 2x, 4x.

<figure><img src="/files/4ZKQJ2SmybkLTMDGkHCS" alt=""><figcaption></figcaption></figure>

After selecting all actions and targets, initiate the round by clicking the **Start Battle** button.

<figure><img src="/files/EOn8LGnb0CJ9G18DbkEc" alt=""><figcaption><p>Battle information</p></figcaption></figure>

**If a fight is lost:**

The Mushroom dies. If the player wants to continue the day with a dead mushroom, there is the option to revive a character. This can be done for the cost of a level-dependent amount of SPORES.

Arborethia revives every fallen defender when a new day begins.

**If a fight is won:**

The mushroom gets healed by 1/4 of its max HP and receives EXP based on the strength of the defeated creature. The EXP amount can be increased by traits or items. Additionally, there is a chance that the defeated creature drops loot. The loot can **either** be an item or a random amount of SPORES, or even Truffles when facing the Leprechaun.

<figure><img src="/files/FwjZyPNxsYdIMIZrtE32" alt=""><figcaption></figcaption></figure>

With increasing levels, the character will face more powerful creatures and it will become more difficult to win against those creatures. Items  will rise in importance as the game progresses.

<div align="center"><img src="/files/KgAc7FWxQmKCVVqfWK4t" alt=""> <img src="/files/wpuABFsreQRZwdO8moNY" alt=""></div>

**Damage formulars:**

$$
Atk = (Atk\_{Base} + Atk\_{TraitBase} +
Atk\_{ItemBase} + Atk\_{SpecItemBase} + Atk\_{BuffBase}) \*
$$

$$
(1 + Atk\_{TraitBonus} + Atk\_{ItemBonus} + Atk\_{SpecItemBonus} + Atk\_{BuffBonus})
$$

$$
Def = (Def\_{Base} + Def\_{TraitBase} + Def\_{ItemBase} + Def\_{SpecItemBase} + Def\_{BuffBase}) \*
$$

$$
(1 + Def\_{TraitBonus} + Def\_{ItemBonus} + Def\_{SpecItemBonus} + Def\_{BuffBonus})
$$

$$
HP\_{Reduction} = Atk \*(1 - DamageReduction)
$$

$$
HP\_{EOA} = HP - HP\_{Reduction}
$$

$$
HP\_{EOR} = HP\_{EOA} + HP\_{RoundEffects}
$$

<figure><img src="/files/CHqVfGddWrO66EN012sY" alt=""><figcaption></figcaption></figure>

EOA ... End of Attack

EOR ... End of Round
