-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConfigItemStatChanges.cs
35 lines (34 loc) · 1.23 KB
/
ConfigItemStatChanges.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
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace BettertakeaPowerTool
{
public class ConfigItemStatChanges : GlobalItem
{
public override void SetDefaults(Item item)
{
if(Config.BuffLunarDrills && item.type == ItemID.SolarFlareDrill || item.type == ItemID.NebulaDrill || item.type == ItemID.VortexDrill || item.type == ItemID.StardustDrill)
{
item.useTime = 6;
item.useAnimation = 12;
}
Mod tremor = ModLoader.GetMod("Tremor");
if (tremor != null && Config.DommhammerjackhammerSettings == 2 && item.type == ItemID.Pwnhammer)
{
item.damage = 53;
item.hammer = 90;
item.knockBack = 8;
item.useTime = 30;
item.useAnimation = 30;
}
if (tremor != null && Config.DommhammerjackhammerSettings == 2 && item.type == tremor.ItemType("Doomhammer"))
{
item.damage = 26;
item.hammer = 80;
item.knockBack = 7.5f;
item.useTime = 14;
item.useAnimation = 27;
}
}
}
}