-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathSE_Slow.cs
41 lines (36 loc) · 988 Bytes
/
SE_Slow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace ValheimLegends
{
public class SE_Slow : SE_Stats
{
public static Sprite AbilityIcon;
public static GameObject GO_SEFX;
[Header("SE_VL_Slow")]
public static float m_baseTTL = 4f;
public float speedDuration = 3f;
public float speedAmount = .4f;
private float m_timer = 1f;
public SE_Slow()
{
base.name = "SE_VL_Slow";
m_icon = AbilityIcon;
m_tooltip = "Slow";
m_name = "Slow";
m_ttl = m_baseTTL;
}
public override void ModifySpeed(float baseSpeed, ref float speed)
{
speed *= speedAmount;
base.ModifySpeed(baseSpeed, ref speed);
}
public override bool CanAdd(Character character)
{
return true;
}
}
}