2 - Evergreen Gin boosts sickness and water-related debuff damage by 50%. 3 - Eskimo Set boosts cold-related debuff damage by 50%. 4 - Removed organic and inorganic damage bonuses. 5 - Fixed Aegis Blade alt fire doing stupid damage.
76 lines
2.4 KiB
C#
76 lines
2.4 KiB
C#
using CalamityMod.CustomRecipes;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.DraedonsArsenal;
|
|
using Microsoft.Xna.Framework;
|
|
using System.Collections.Generic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
|
{
|
|
public class PulseTurretRemote : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Pulse Turret Remote");
|
|
Tooltip.SetDefault("A device used to defend against the weaker, less cognizant rogue creations of Draedon\n" +
|
|
"Summons a pulse turret which eradicates nearby foes with focused energy blasts\n" +
|
|
"Only one pulse turret may exist at a time");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
CalamityGlobalItem modItem = item.Calamity();
|
|
|
|
item.width = 28;
|
|
item.height = 26;
|
|
item.summon = true;
|
|
item.sentry = true;
|
|
item.damage = 100;
|
|
item.knockBack = 0f;
|
|
item.mana = 10;
|
|
item.useTime = item.useAnimation = 24;
|
|
item.autoReuse = true;
|
|
|
|
item.useStyle = ItemUseStyleID.HoldingUp;
|
|
item.UseSound = SoundID.Item15;
|
|
item.noMelee = true;
|
|
|
|
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
|
item.rare = ItemRarityID.Red;
|
|
modItem.customRarity = CalamityRarity.DraedonRust;
|
|
|
|
item.shoot = ModContent.ProjectileType<PulseTurret>();
|
|
item.shootSpeed = 1f;
|
|
|
|
modItem.UsesCharge = true;
|
|
modItem.MaxCharge = 135f;
|
|
modItem.ChargePerUse = 1f;
|
|
modItem.ChargePerAltUse = 0f;
|
|
}
|
|
|
|
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.OnlyOneSentry(player, type);
|
|
Projectile.NewProjectile(Main.MouseWorld, Vector2.Zero, type, damage, knockBack, player.whoAmI);
|
|
player.UpdateMaxTurrets();
|
|
return false;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 3);
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ArsenalTierGatedRecipe recipe = new ArsenalTierGatedRecipe(mod, 3);
|
|
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 12);
|
|
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 18);
|
|
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
|
recipe.AddIngredient(ModContent.ItemType<InfectedArmorPlating>(), 5);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|