Files
CalamityModPublic/Items/Potions/AstralInjection.cs
T
Andrew Marheine 3981fe1e24 1 - New goblin weapon reforge system.
2 - Abyssal Diving Suit allows you to move faster as the armor plates get closer to breaking.
3 - Fabled Tortoise Shell gives 36 defense, this gets cut in half but restores most movement speed for 3 seconds if you get hit.
4 - Rev+ Moon Lord projectiles inflict Nightwither.
5 - Celestial Jewel defense boost reduced from 20 to 15 when affected by a damaging debuff.
6 - Affliction now gives 10 defense instead of 20.
7 - Dark Sun Ring gives 15 defense instead of 30 during night/solar eclipse.
8 - Giant Tortoise Shell gives 12 defense instead of 8.
9 - Amalgam gives 20 defense instead of 40 while underwater.
10 - Increased buff durations of alchols and buff potions.
11 - Reduced Tarragon Rogue bonus immunity frames from 5 to 3.
12 - Reduced Cirrus candle price.
13 - Mariana spawns orbs on hit instead of on enemy death.
14 - Colossal Squids spawn in layer 4 as well as 3.
15 - Yharon and Flares inflict Lethal Lava Burn.
16 - Spiteful Candle no longer ignores timed DR.
17 - Moon Lord spawns Luminite Ore on first kill.
18 - Providence anti-heal orbs kill adrenaline.
19 - Submarine Shocker nerfed.
20 - All vanilla spears autoswing.
2020-11-25 17:59:05 -06:00

68 lines
2.4 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class AstralInjection : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Astral Injection");
Tooltip.SetDefault("Gives mana sickness and hurts you when used, but you regenerate mana extremely quickly even while moving or casting spells");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 18;
item.useTurn = true;
item.maxStack = 999;
item.rare = 3;
item.useAnimation = 17;
item.useTime = 17;
item.useStyle = ItemUseStyleID.EatingUsing;
item.UseSound = SoundID.Item3;
item.consumable = true;
item.buffType = ModContent.BuffType<AstralInjectionBuff>();
item.buffTime = CalamityUtils.SecondsToFrames(5f);
item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void OnConsumeItem(Player player)
{
player.AddBuff(BuffID.ManaSickness, Player.manaSickTime / 2, true);
player.statLife -= 5;
if (Main.myPlayer == player.whoAmI)
{
player.HealEffect(-5, true);
}
if (player.statLife <= 0)
{
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + "'s blood vessels burst from drug overdose."), 1000.0, 0, false);
}
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater, 4);
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 4);
recipe.AddIngredient(ModContent.ItemType<AstralJelly>());
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this, 4);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater, 4);
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 5);
recipe.AddIngredient(ModContent.ItemType<AstralJelly>());
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this, 8);
recipe.AddRecipe();
}
}
}