You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
18 lines
516 B
C#
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;
|
|
}
|
|
}
|