# Calculator:Combat/Fungal Shield

Templates used Calculator:Template/Combat/Fungal Shield

## Analysis

A fungal shield is generated if the player falls below 20% of their maximum life points while wearing all 5 pieces of cryptbloom armour (provided it is not already on its 2 minute cooldown). The amount of life points stored in the shield, ${\displaystyle {\text{LP}}_{\text{Fungal Shield}}}$, takes on a random value in discrete steps based on the player's Defence level, ${\displaystyle {\text{L}}_{\text{Defence}}}$, and their Total Armour stat, ${\displaystyle {\text{A}}_{\text{Total}}}$. The possible values it can take on follows the following relation

${\displaystyle {\text{LP}}_{\text{Fungal Shield}}=\left\lfloor \left\lfloor 0.01\cdot {\text{L}}_{\text{Defence}}\cdot {\text{A}}_{\text{Total}}\right\rfloor +{\text{N}}\cdot (0.01)^{2}\cdot {\text{L}}_{\text{Defence}}\cdot {\text{A}}_{\text{Total}}\right\rfloor }$

where ${\displaystyle {\text{N}}}$ takes on a random integer between ${\displaystyle [-10,10]}$, giving 1 of 21 possible values.

template  = Calculator:Template/Combat/Fungal Shield
form      = fungalShieldCalcForm
result    = fungalShieldCalcResult

param     = defenceLevel| Current Defence level|99|int|1-133||Player's current level after boosts. Valid values are 1-133.
param     = totalArmour| Total Armour|3075|int|0-10000||The total armour value as found in the Combat Stats menu.

This text will disappear if the form is loaded properly.
This text will disappear if the form is submitted.
Template documentation
This documentation is transcluded from Calculator:Combat/Fungal Shield/doc.  [history] [purge]

### Description

The purpose of this calculator is to calculate possible amount of life points stored in the Fungal Shield based on the player's Defence level and Total Armour stat. The Fungal Shield can only be generated if the player falls below 20% of their maximum life points while wearing all 5 pieces of cryptbloom armour (and if it is not already on its 2 minute cooldown).

### Current Defence level

Player's Defence level after all buffs or debuffs. Valid values are 1-133.

### Total Armour

The total armour value as found in the Combat Stats menu.