70 lines
2.7 KiB
C#
70 lines
2.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class StatisBeltOfCurses : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Statis' Belt of Curses");
|
|
Tooltip.SetDefault("Increases jump speed and allows constant jumping\n" +
|
|
"Can climb walls, dash, and dodge attacks\n" +
|
|
"10% increased rogue damage and velocity\n" +
|
|
"5% increased rogue crit chance\n" +
|
|
"Increased max minions by 3 and 10% increased minion damage\n" +
|
|
"Increased minion knockback\n" +
|
|
"Grants shadowflame powers to all minions\n" +
|
|
"Minions make enemies cry on hit\n" +
|
|
"Minion attacks have a chance to instantly kill normal enemies\n" +
|
|
"Toggle visibility of this accessory to enable/disable the dash");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 28;
|
|
item.height = 32;
|
|
item.value = Item.buyPrice(0, 90, 0, 0);
|
|
item.accessory = true;
|
|
item.Calamity().postMoonLordRarity = 14;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.statisBeltOfCurses = true;
|
|
modPlayer.shadowMinions = true;
|
|
modPlayer.tearMinions = true;
|
|
player.minionKB += 2.5f;
|
|
player.minionDamage += 0.1f;
|
|
player.maxMinions += 3;
|
|
player.autoJump = true;
|
|
player.jumpSpeedBoost += 1.2f;
|
|
player.extraFall += 50;
|
|
player.blackBelt = true;
|
|
if (!hideVisual)
|
|
player.dash = 1;
|
|
player.spikedBoots = 2;
|
|
player.Calamity().throwingDamage += 0.1f;
|
|
player.Calamity().throwingCrit += 5;
|
|
player.Calamity().throwingVelocity += 0.1f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<StatisNinjaBelt>());
|
|
recipe.AddIngredient(ModContent.ItemType<StatisCurse>());
|
|
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 20);
|
|
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 20);
|
|
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 20);
|
|
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|