Files
CalamityModPublic/Items/Tools/Grax.cs
T
Andrew Marheine 75fd5299b2 1 - Increased Grax, Wave Pounder, Biofusillade, Plasma Rifle, Purge Guzzler, Mistlestorm, Devil's Sunrise, Holy Collider, The Mutilator, Seeking Scorcher, Lacerator, Lifehunt Scythe, Solar Flare, Verdant, Alpha Virus, Molten Amputator, Profaned Partisan, Sealed Singularity, Shattered Sun, Tarragon Throwing Dart and Dazzling Stabber Staff damage.
2 - Reduced Prismatic Armor set bonus laser beam damage.
3 - Increased Plasma Caster and Divine Retribution area of effect size.
4 - Reduced Thunderstorm, Mourningstar, Lunar Kunai, Aether's Whisper and Sylvan Slasher damage.
5 - Increased Post-Provi Cal Clone brother HP.
6 - Ultra Liquidator, Dragonblood Disgorger and Alpha Virus projectiles move faster.
7 - Viscera, Lifehunt Scythe and Seeking Scorcher projectiles pierce more.
2020-12-23 14:11:58 -06:00

76 lines
2.4 KiB
C#

using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Tools
{
public class Grax : ModItem
{
private static int HammerPower = 200;
private static int AxePower = 50;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Grax");
Tooltip.SetDefault("Hitting an enemy will greatly boost your defense and melee stats for a short time\n" +
"Right click to use without hammering down walls or chopping down trees");
}
public override void SetDefaults()
{
item.width = 62;
item.height = 62;
item.scale = 1.5f;
item.damage = 480;
item.melee = true;
item.useAnimation = 16;
item.useStyle = ItemUseStyleID.SwingThrow;
item.useTime = 4;
item.useTurn = true;
item.axe = AxePower;
item.hammer = HammerPower;
item.knockBack = 8f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.tileBoost += 5;
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = ItemRarityID.Purple;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override bool AltFunctionUse(Player player) => true;
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.axe = 0;
item.hammer = 0;
}
else
{
item.axe = AxePower;
item.hammer = HammerPower;
}
return base.CanUseItem(player);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<InfernaCutter>());
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 5);
recipe.AddRecipeGroup("LunarHamaxe");
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
player.AddBuff(ModContent.BuffType<GraxDefense>(), 600);
}
}
}