alot of stuff i forgot to commit

This commit is contained in:
Sylvia 2026-06-24 22:09:38 -07:00
parent fc2329a873
commit b8d516e734
60 changed files with 7397 additions and 64 deletions

View file

@ -0,0 +1,21 @@
using UnityEngine;
public class EffectInstance : MonoBehaviour
{
public Effect thisEffect;
public EntityStats affectedEntity;
public float timeElapsed;
private void Update()
{
timeElapsed += Time.deltaTime;
if (timeElapsed > thisEffect.duration)
{
thisEffect.RemoveEffect(affectedEntity);
return;
}
if (thisEffect.isConstant)
{
thisEffect.EffectTick(affectedEntity);
}
}
}