Files
CalamityModPublic/Items/SummonItems/ChickenEgg.cs
T
Andrew Marheine f75d79ef4f 1 - Enemies no longer deal 20% less damage before your first boss is defeated.
2 - Endgame boss summons can now be used at any time.
3 - Alluvion and Monsoon are no longer rng.
4 - Post-ML Blood Moon enemies no longer scale up to absurd levels.
5 - Most hardmode enemies deal 25% less contact damage.
6 - Reduced the amount of extra damage post-ML dungeon enemies get.
7 - Nailhead nail projectiles deal the damage they're supposed to in expert mode.
8 - Most hardmode enemy projectiles (and Hoplite javelins) deal 35% less damage.
9 - Removed contact damage entirely from Snowman Gangsta, Snow Balla, Eyezor and Nailhead.
2021-03-21 13:55:26 -05:00

60 lines
1.9 KiB
C#

using CalamityMod.Events;
using CalamityMod.Items.Materials;
using CalamityMod.NPCs.Yharon;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.SummonItems
{
public class ChickenEgg : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dragon Egg");
Tooltip.SetDefault("Summons the loyal guardian of the tyrant king\n" +
"It yearns for the jungle\n" +
"Not consumable");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 18;
item.useAnimation = 45;
item.useTime = 45;
item.useStyle = ItemUseStyleID.HoldingUp;
item.consumable = false;
item.rare = ItemRarityID.Purple;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool CanUseItem(Player player)
{
return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType<Yharon>()) && !BossRushEvent.BossRushActive;
}
public override bool UseItem(Player player)
{
Main.PlaySound(SoundID.Roar, player.position, 0);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Yharon>());
else
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<Yharon>());
return true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 15);
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 15);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}