-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathSE_PowerShot.cs
42 lines (37 loc) · 1 KB
/
SE_PowerShot.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
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace ValheimLegends
{
public class SE_PowerShot : StatusEffect
{
public static Sprite AbilityIcon;
public static GameObject GO_SEFX;
[Header("SE_VL_PowerShot")]
public static float m_baseTTL = 3f;
public int hitCount = 3;
public bool shouldActivate = true;
public SE_PowerShot()
{
base.name = "SE_VL_PowerShot";
m_icon = AbilityIcon;
m_tooltip = "PowerShot";
m_name = "PowerShot";
m_ttl = m_baseTTL;
hitCount = (int)m_ttl;
}
public override void UpdateStatusEffect(float dt)
{
m_ttl = hitCount;
m_time = 0;
base.UpdateStatusEffect(dt);
}
public override bool CanAdd(Character character)
{
return character.IsPlayer();
}
}
}