RiftMayhem/Assets/Scripts/AbilitySystem/Effects/BleedEffectInstance.cs
Pedro Gomes 078fda69ac Continued Stat revamp scaling
- updated all abilities to scale with new stat system
- updated difficulty settings using new stat system
- added S+ difficulty as the end game
- updated items using new stat system
- small re-balance to make things a bit more fun to test
2024-08-18 14:45:57 +01:00

31 lines
691 B
C#

using Photon.Pun;
public class BleedEffectInstance : BaseDamageOverTimeEffectInstance
{
public override DamageOverTimeType DamageType => DamageOverTimeType.Bleed;
protected override void Awake()
{
base.Awake();
mitigationType = global::DamageType.Attack;
}
[PunRPC]
public void RPC_ApplyDamageOverTimeEffectBleed(int effectIndex, float value)
{
ApplyEffect(StatusEffectIndexer.Instance.StatusEffects[effectIndex], value);
}
[PunRPC]
public void RPC_EffectAppliedBleed()
{
OnEffectStackAddedEvent.Invoke();
}
[PunRPC]
public void RPC_EffectEndedBleed()
{
OnEffectEnded.Invoke();
}
}