Files
CalamityModPublic/Items/Potions/PurifiedJam.cs
T
Andrew Marheine de49f1a3ff 1 - Fixed Third Sage healing for sure now.
2 - Reworked Cal Clone's AI completely.
3 - Reworked Cryogen's attacks to be cooler...get it?
4 - Malice Mode affects more things.
5 - Malice Mode can be used outside of Rev Mode.
6 - Wall of Flesh shoots a demon scythe from its mouth in rev+ when it belches out leeches.
7 - Made some Malice Mode bosses harder and some easier.
8 - Malice Mode increases certain projectile speeds by 25%.
9 - Malice Mode increases boss damage by 35%.
10 - Rev+ Golem falls faster.
11 - Golem Head hitbox is remaining fucked because I hate the glowmask code, I'm not touching it.
12 - Malice Mode bosses have increased timed DR.
2021-04-29 14:06:18 -05:00

63 lines
1.9 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.World;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class PurifiedJam : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Purified Jam");
Tooltip.SetDefault("Makes you immune to all damage and most debuffs for 10 seconds\n" +
"Causes potion sickness when consumed\n" +
"Cannot be consumed while potion sickness is active\n" +
"Revengeance drop");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 18;
item.useTurn = true;
item.maxStack = 999;
item.rare = ItemRarityID.Orange;
item.useAnimation = 17;
item.useTime = 17;
item.useStyle = ItemUseStyleID.EatingUsing;
item.UseSound = SoundID.Item3;
item.consumable = true;
item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void ModifyTooltips(List<TooltipLine> list)
{
if (CalamityWorld.death || CalamityWorld.malice)
{
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
{
line2.text = "Makes you immune to all damage and most debuffs for 5 seconds";
}
}
}
}
public override bool CanUseItem(Player player)
{
return player.FindBuffIndex(BuffID.PotionSickness) == -1;
}
public override bool UseItem(Player player)
{
player.AddBuff(ModContent.BuffType<Invincible>(), (CalamityWorld.death || CalamityWorld.malice) ? 300 : 600);
player.AddBuff(BuffID.PotionSickness, player.pStone ? 1500 : 1800);
return true;
}
}
}