- 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
31 lines
695 B
C#
31 lines
695 B
C#
using Photon.Pun;
|
|
|
|
public class PoisonEffectInstance : BaseDamageOverTimeEffectInstance
|
|
{
|
|
public override DamageOverTimeType DamageType => DamageOverTimeType.Poison;
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
|
|
mitigationType = global::DamageType.Spell;
|
|
}
|
|
|
|
[PunRPC]
|
|
public void RPC_ApplyDamageOverTimeEffectPoison(int effectIndex, float value)
|
|
{
|
|
ApplyEffect(StatusEffectIndexer.Instance.StatusEffects[effectIndex], value);
|
|
}
|
|
|
|
[PunRPC]
|
|
public void RPC_EffectAppliedPoison()
|
|
{
|
|
OnEffectStackAddedEvent.Invoke();
|
|
}
|
|
|
|
[PunRPC]
|
|
public void RPC_EffectEndedPoison()
|
|
{
|
|
OnEffectEnded.Invoke();
|
|
}
|
|
} |