Files
Cielonos/Assets/Scripts/MainGame/AttackArea/AttackInfo/AttackInfo.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

51 lines
1.3 KiB
C#

using System;
using SLSFramework.General;
using SLSUtilities.FunctionalAnimation;
using UnityEngine;
namespace Cielonos.MainGame
{
public enum AttackType
{
Energy = 1,
Kinetics = 2,
Explosion = 3,
Magic = 4,
Elemental = 5,
Pure = 6
}
public enum BreakthroughType
{
None = 0,
Weak = 10,
Medium = 20,
Heavy = 30,
SuperHeavy = 40
}
public class AttackValue : ICloneable<AttackValue>
{
public bool isCritical;
public float damage;
public AttackType attackType;
public BreakthroughType breakthroughType;
public DisruptionType disruptionType;
public AttackValue(bool isCritical, float damage, AttackType attackType,
DisruptionType disruptionType = DisruptionType.None, BreakthroughType breakthroughType = BreakthroughType.None)
{
this.isCritical = isCritical;
this.damage = damage;
this.attackType = attackType;
this.disruptionType = disruptionType;
this.breakthroughType = breakthroughType;
}
public AttackValue Clone()
{
return new AttackValue(isCritical, damage, attackType, disruptionType, breakthroughType);
}
}
}