-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCalTestHelpersPlayer.cs
More file actions
38 lines (33 loc) · 963 Bytes
/
CalTestHelpersPlayer.cs
File metadata and controls
38 lines (33 loc) · 963 Bytes
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
using CalTestHelpers.Items;
using CalTestHelpers;
using log4net;
using Terraria;
using Terraria.GameInput;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalTestHelpers
{
public class CalTestHelpersPlayer : ModPlayer
{
/// <summary>
/// Used to turn off Rogue procs for the player
/// </summary>
public bool CannotProcRogue = false;
//private static readonly ILog Log;
public int statChangeCooldown = 0;
public override void UpdateDead()
{
statChangeCooldown = 0;
}
public override void PostUpdateMiscEffects()
{
if (statChangeCooldown > 0)
statChangeCooldown--;
}
public override void ProcessTriggers(TriggersSet triggersSet)
{
if (CalTestHelpers.ToggleUIsHotkey.JustPressed)
CalTestHelpers.ShouldDisplayUIs = !CalTestHelpers.ShouldDisplayUIs;
}
}
}