2 - An extremely large number of recipe changes. Far too many to remember. 3 - Occult Stone and furniture are now made at the Ancient Manipulator. 4 - 1 Core of Calamity now requires 1 Ashes of Calamity. 5 - Renamed the Calamitous Altar to Altar of the Accursed. 6 - All Cosmilite tier items are made at the Cosmic Anvil. 7 - Standardized the costs of all late game (Cosmilite tier and beyond) items.
57 lines
2.1 KiB
C#
57 lines
2.1 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class Nucleogenesis : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Nucleogenesis");
|
|
Tooltip.SetDefault("Increases max minions by 4, does not stack with downgrades\n" +
|
|
"15% increased minion damage\n" +
|
|
"Increased minion knockback\n" +
|
|
"Minions inflict a variety of debuffs\n" +
|
|
"Minions spawn damaging sparks on enemy hits"); //subject to change to be "cooler"
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 28;
|
|
item.height = 32;
|
|
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
|
item.accessory = true;
|
|
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.nucleogenesis = true;
|
|
modPlayer.shadowMinions = true; //shadowflame
|
|
modPlayer.holyMinions = true; //holy flames
|
|
modPlayer.voltaicJelly = true; //electrified
|
|
modPlayer.starTaintedGenerator = true; //astral infection and irradiated
|
|
player.minionKB += 3f;
|
|
player.minionDamage += 0.15f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<StarTaintedGenerator>());
|
|
recipe.AddIngredient(ModContent.ItemType<StatisCurse>());
|
|
recipe.AddIngredient(ItemID.LunarBar, 8);
|
|
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 4);
|
|
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 4);
|
|
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|