Files
Darklings-FightingGame/Assets/_Project/Scripts/SimulationScripts/StateScripts/StatesScripts/HurtStateScripts/HurtParentState.cs
2023-01-06 03:10:59 +02:00

18 lines
516 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HurtParentState : State
{
public int CalculateDamage(int damage, float defense)
{
int calculatedDamage = (int)((DemonicsFloat)damage / (DemonicsFloat)defense);
return calculatedDamage;
}
public int CalculateRecoverableDamage(int damage, float defense)
{
int calculatedDamage = (int)((DemonicsFloat)damage / (DemonicsFloat)defense) - 200;
return calculatedDamage;
}
}