Add Hunter NPC and Teleporter features with associated prefabs and effects
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
32
Assets/Scripts/Core/Domain/Status/Effects/HoverEffect.cs
Normal file
32
Assets/Scripts/Core/Domain/Status/Effects/HoverEffect.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a774d5cade7c04beba69252a04501099
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user