2 - Made summoner and mage god slayer helms into vanity, they now drop from the sentinels. 3 - Made melee, ranged and rogue silva helms into vanity, they now drop from DoG. 4 - Reduced Eclipse Mirror evade explosion damage. 5 - Adjusted how Alchemical Flask works. 6 - Made various accessory and set bonus effects no longer random. 7 - Reduced various accessory projectile damage values. 8 - Most dodges are disabled if a reflection effect is on cooldown. 9 - Added Hallowed Ore item and tile. 10 - Astral Fossils and Silt no longer drop hardmode ores if the new progression requirements are not met. 11 - Vanilla fishing crates no longer drop hardmode ores if the new progression requirements are not met. 12 - Nerfed Aegis Blade right click. 13 - Mech bosses will not drop hallowed bars until they are all defeated. 14 - Wall of Flesh spawns hardmode tier 1 ores on death. 15 - Wall of Flesh sets broken altar count to 1 when it dies to enable natural mech boss spawns. 16 - First mech boss fought is 20% weaker in terms of damage and HP. 17 - First mech boss defeated spawns hardmode tier 2 ores. 18 - Second mech boss fought is 10% weaker in terms of damage and HP. 19 - Second mech boss defeated spawns hardmode tier 3 ores. 20 - Third mech boss defeated spawns Hallowed Ore in the hallow. 21 - Gave PBG a circular hitbox. 22 - Reduced Yharon's increased aggression as his HP lowers. 23 - Increased Ceaseless Void's tile enrage range so that it won't enrage as often. 24 - Astrum Deus now resists Tenebreus Tides bonus projectiles that appear from all around. 25 - Increased the drop rates of Bouncing Eyeball, Psychotic Amulet, Giant Shell, Fungal Carapace, Craw Carapace, Vital Jelly, Life Jelly, Mana Jelly, The First Shadowflame, Burning Strife, Elemental in a Bottle and Rare Elemental in a Bottle. 26 - Hopefully fixed Dragonfolly lightning aura damage. 27 - Demon Altars can no longer be broken. 28 - Removed demon altar tooltip from pwnhammer and hammush. 29 - Hallowed Bars can now be crafted from Hallowed Ore. 30 - DoG phase 2 head no longer instakills in death mode. 31 - Added a check for mech bosses in the AnyBossNPCS method. 32 - Made Yharon's total kill time 4 minutes 15 seconds, the extra 15 seconds is due to his invincibility phase that lasts 15 seconds.
69 lines
3.0 KiB
C#
69 lines
3.0 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Summon;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Summon
|
|
{
|
|
public class CosmicImmaterializer : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Cosmic Immaterializer");
|
|
Tooltip.SetDefault("Summons a cosmic energy spiral to fight for you\n" +
|
|
"The orb will fire swarms of homing energy bolts when enemies are detected by it\n" +
|
|
"Requires 10 minion slots to use\n" +
|
|
"There can only be one\n" +
|
|
"Without a summoner armor set bonus this minion will deal less damage");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.mana = 100;
|
|
item.damage = 3000;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.width = 74;
|
|
item.height = 72;
|
|
item.useTime = item.useAnimation = 10;
|
|
item.noMelee = true;
|
|
item.knockBack = 0f;
|
|
item.value = Item.buyPrice(2, 50, 0, 0);
|
|
item.rare = ItemRarityID.Red;
|
|
item.UseSound = SoundID.Item60;
|
|
item.shoot = ModContent.ProjectileType<CosmicEnergySpiral>();
|
|
item.shootSpeed = 10f;
|
|
item.summon = true;
|
|
item.Calamity().customRarity = CalamityRarity.Violet;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0 && player.maxMinions >= 10;
|
|
|
|
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
|
{
|
|
CalamityUtils.KillShootProjectiles(true, type, player);
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
bool hasSummonerSet = modPlayer.tarraSummon || modPlayer.bloodflareSummon || modPlayer.silvaSummon || modPlayer.dsSetBonus || modPlayer.omegaBlueSet || modPlayer.fearmongerSet; //demonshade included so summoner isn't forced to use auric for BR
|
|
Projectile.NewProjectile(Main.MouseWorld, Vector2.Zero, type, (int)(damage * (hasSummonerSet ? 1 : 0.66)), knockBack, player.whoAmI, 0f, 0f);
|
|
return false;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CorvidHarbringerStaff>());
|
|
recipe.AddIngredient(ModContent.ItemType<AncientIceChunk>());
|
|
recipe.AddIngredient(ModContent.ItemType<ElementalAxe>());
|
|
recipe.AddIngredient(ModContent.ItemType<EnergyStaff>());
|
|
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
|
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|