TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
ShimmerUnstuckHelper.cs
Go to the documentation of this file.
2
4
6{
7 public int TimeLeftUnstuck;
8
10
11 public bool ShouldUnstuck
12 {
13 get
14 {
16 {
17 return TimeLeftUnstuck > 0;
18 }
19 return true;
20 }
21 }
22
23 public void Update(Player player)
24 {
25 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
26 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
27 bool flag = !player.shimmering && !player.shimmerWet;
28 if (flag)
29 {
31 }
32 if (TimeLeftUnstuck > 0 && !flag)
33 {
35 }
37 {
39 if (TimeLeftUnstuck == 0)
40 {
42 {
43 PositionInWorld = player.Bottom
44 });
45 }
46 }
47 }
48
49 public void StartUnstuck()
50 {
52 TimeLeftUnstuck = 120;
53 }
54
55 public void Clear()
56 {
59 }
60}
bool shimmerWet
Definition Entity.cs:59
static void BroadcastOrRequestParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)