70 lines
2.7 KiB
C#
70 lines
2.7 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Weapons.Melee;
|
|
using CalamityMod.Items.Weapons.Summon;
|
|
using CalamityMod.Projectiles.Magic;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class Apotheosis : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Apotheosis");
|
|
Tooltip.SetDefault("Unleashes interdimensional projection magic\n" +
|
|
"Eat worms");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 366;
|
|
item.magic = true;
|
|
item.mana = 42;
|
|
item.width = 30;
|
|
item.height = 34;
|
|
item.useTime = 21;
|
|
item.useAnimation = 21;
|
|
item.useStyle = 5;
|
|
item.useTurn = false;
|
|
item.noMelee = true;
|
|
item.knockBack = 4f;
|
|
item.value = Item.buyPrice(5, 0, 0, 0);
|
|
item.rare = 10;
|
|
item.UseSound = SoundID.Item92;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<ApothMark>();
|
|
item.shootSpeed = 15;
|
|
item.Calamity().postMoonLordRarity = 16;
|
|
}
|
|
|
|
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
|
{
|
|
Vector2 origin = new Vector2(15f, 15f);
|
|
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/ApotheosisGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<SubsumingVortex>());
|
|
recipe.AddIngredient(ModContent.ItemType<CosmicDischarge>());
|
|
recipe.AddIngredient(ModContent.ItemType<StaffoftheMechworm>(), 2);
|
|
recipe.AddIngredient(ModContent.ItemType<Excelsus>(), 2);
|
|
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 33);
|
|
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 33);
|
|
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 33);
|
|
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 33);
|
|
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 33);
|
|
recipe.AddIngredient(ModContent.ItemType<ShadowspecBar>(), 5);
|
|
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|