Add GradualTP condition docs

This commit is contained in:
aldelaro5
2024-03-02 08:01:47 -05:00
parent 8eb060c2de
commit 97298a9fd0
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# GradualTP
A condition that increases instance.`tp` by 2 (clamped from 0 to instance.`maxtp`) every actor turn while active.
## [SetCondition](../Conditions%20methods/SetCondition.md)
When amending the condition, the turn amount is always increased by the existing one (meaning it stacks).
When inflicted as a new condition, nothing special happens.
## [AdvanceTurnEntity](../../Battle%20flow/AdvanceTurnEntity.md)
When the condition is processed (when instance.`tp` is above 0, but less than instance.`maxtp`):
- The `Heal2` sound is played
- [ShowDamageCounter](../Visual%20rendering/ShowDamageCounter.md) is called with type 2 (TP) with the amount being 2 with a start of the actor position + its `cursoroffset` and an end of Vector3.up
- instance.`tp` is incremented by 2 clamped from 0 to instance.`maxtp`
- A yield of 0.75 seconds is set to happen after the method is done
- The turn counter of the condition is decremented

View File

@@ -36,7 +36,7 @@ Here are the different BattleCondition that exists in the game and a summary of
|11|[Taunted](BattleCondition/Taunted.md)|A condition that prevents a player party member from selecting the `Skill`, `Item` and `Relay` vine menu [Actions](../../Player%20UI/Actions.md) and prevents other player party member from relaying to them|
|12|[Sturdy](BattleCondition/Sturdy.md)|A condition that prevents other conditions from being inflicted (even through using an [item](../../../Enums%20and%20IDs/Items.md)) while also getting a -3 damage effect applied in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) at the expense that the actor cannot be relayed to|
|13|[GradualHP](BattleCondition/GradualHP.md)|A condition that increases the actor's `hp` by 2 (clamped from 0 to `maxhp`) every actor turn while active|
|14|[GradualTP](BattleCondition/GradualTP.md)||
|14|[GradualTP](BattleCondition/GradualTP.md)|A condition that increases instance.`tp` by 2 (clamped from 0 to instance.`maxtp`) every actor turn while active|
|15|[Eaten](BattleCondition/Eaten.md)||
|16|[EventStop](BattleCondition/EventStop.md)||
|17|[Fire](BattleCondition/Fire.md)||