Files
CalamityModPublic/Items/SummonItems/OverloadedSludge.cs
T
Andrew Marheine 7d8048f0c2 1 - rebalanced the fucking halibut cannon.
2 - unfucked plantera in rev+.
3 - large slimes now spawn from the slime god core when it spawns instead of randomly from the summoning item.
4 - fixed EoW and PBG lore life regen.
5 - bottled honey now gives honey buff.
6 - halibut cannon drop rates increased.
7 - fixed profaned guardian flare dust.
8 - fixed dragonfolly.
2020-07-31 15:08:48 -05:00

63 lines
2.1 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.NPCs.SlimeGod;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.SummonItems
{
public class OverloadedSludge : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Overloaded Sludge");
Tooltip.SetDefault("It looks corrupted\n" +
"Summons the Slime God");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.maxStack = 20;
item.rare = 4;
item.useAnimation = 45;
item.useTime = 45;
item.useStyle = ItemUseStyleID.HoldingUp;
item.consumable = true;
}
public override bool CanUseItem(Player player)
{
return !NPC.AnyNPCs(ModContent.NPCType<SlimeGodCore>()) && !NPC.AnyNPCs(ModContent.NPCType<SlimeGod>()) &&
!NPC.AnyNPCs(ModContent.NPCType<SlimeGodSplit>()) && !NPC.AnyNPCs(ModContent.NPCType<SlimeGodRun>()) && !NPC.AnyNPCs(ModContent.NPCType<SlimeGodRunSplit>());
}
public override bool UseItem(Player player)
{
Main.PlaySound(SoundID.Roar, player.position, 0);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<SlimeGodCore>());
else
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<SlimeGodCore>());
return true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<EbonianGel>(), 25);
recipe.AddRecipeGroup("AnyEvilBlock", 25);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 25);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}