Add Hunter NPC and Teleporter features with associated prefabs and effects

This commit is contained in:
2025-12-13 00:01:29 +01:00
parent c0fb207768
commit d8b0583fac
32 changed files with 823 additions and 217 deletions

View File

@@ -6,5 +6,7 @@ namespace Core.Domain.Status.Effects
{
public static readonly Color LightFootedColor = new Color(0.8f, 0.8f, 0.8f);
public static readonly Color SpeedBoostColor = new Color(1f, 0.5f, 0f);
public static readonly Color HoverColor = new Color(0.5f, 1f, 0.5f); // Green
public static readonly Color TimeSlowColor = new Color(0.2f, 0.2f, 1f); // Blue
}
}

View File

@@ -0,0 +1,32 @@
namespace Core.Domain.Status.Effects
{
public class HoverEffect : IStatusEffect
{
private float _duration;
public bool IsExpired => _duration <= 0;
public HoverEffect(float duration)
{
_duration = duration;
}
public void Tick(float deltaTime)
{
_duration -= deltaTime;
}
public void ModifyCapabilities(ref PlayerCapabilities caps)
{
caps.CanHover = true;
}
public void OnApply()
{
}
public void OnRemove()
{
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a774d5cade7c04beba69252a04501099

View File

@@ -4,11 +4,13 @@ namespace Core.Domain.Status
{
public bool CanTriggerDecay;
public float SpeedMultiplier;
public bool CanHover;
public static PlayerCapabilities Default => new PlayerCapabilities
{
CanTriggerDecay = true,
SpeedMultiplier = 1f
SpeedMultiplier = 1f,
CanHover = false
};
}
}