57 lines
2.0 KiB
C#
57 lines
2.0 KiB
C#
using CalamityMod.Buffs.DamageOverTime;
|
|
using CalamityMod.Buffs.StatDebuffs;
|
|
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class Nucleogenesis : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
//subject to change to be "cooler"
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 28;
|
|
Item.height = 32;
|
|
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
|
Item.accessory = true;
|
|
Item.rare = ModContent.RarityType<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.GetKnockback<SummonDamageClass>() += 3f;
|
|
player.GetDamage<SummonDamageClass>() += 0.15f;
|
|
player.buffImmune[ModContent.BuffType<Shadowflame>()] = true;
|
|
player.buffImmune[ModContent.BuffType<Irradiated>()] = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<StarTaintedGenerator>().
|
|
AddIngredient<StatisCurse>().
|
|
AddIngredient(ItemID.LunarBar, 8).
|
|
AddIngredient<GalacticaSingularity>(4).
|
|
AddIngredient<AscendantSpiritEssence>(4).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|