diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index d52fac474c..001d63e635 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1068,6 +1068,9 @@ namespace CalamityMod.Items case CalamityRarity.Rainbow: tt2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); break; + case CalamityRarity.DraedonRust: + tt2.overrideColor = new Color(204, 71, 35); + break; case CalamityRarity.RareVariant: tt2.overrideColor = new Color(255, 140, 0); break; diff --git a/Items/DraedonsLog.cs b/Items/DraedonsLog.cs index 337678cf9d..ac8fd422b7 100644 --- a/Items/DraedonsLog.cs +++ b/Items/DraedonsLog.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items { item.width = 40; item.height = 40; - item.rare = 11; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.useAnimation = item.useTime = 20; item.useStyle = ItemUseStyleID.HoldingUp; } diff --git a/Items/Materials/DubiousPlating.cs b/Items/Materials/DubiousPlating.cs index 4ab4787e59..30d2dca04a 100644 --- a/Items/Materials/DubiousPlating.cs +++ b/Items/Materials/DubiousPlating.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Materials @@ -15,8 +16,9 @@ namespace CalamityMod.Items.Materials item.width = 30; item.height = 24; item.maxStack = 999; - item.value = Item.sellPrice(silver: 3); - item.rare = 1; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; + item.value = Item.sellPrice(silver: 6); } } } diff --git a/Items/Materials/MysteriousCircuitry.cs b/Items/Materials/MysteriousCircuitry.cs index af61434ab7..374634ce67 100644 --- a/Items/Materials/MysteriousCircuitry.cs +++ b/Items/Materials/MysteriousCircuitry.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Materials @@ -15,8 +16,9 @@ namespace CalamityMod.Items.Materials item.width = 30; item.height = 24; item.maxStack = 999; - item.value = Item.sellPrice(silver: 3); - item.rare = 1; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; + item.value = Item.sellPrice(silver: 6); } } } diff --git a/Items/Placeables/DraedonsChargingStation.cs b/Items/Placeables/DraedonsChargingStation.cs index fb3c05b0af..3346d2aa33 100644 --- a/Items/Placeables/DraedonsChargingStation.cs +++ b/Items/Placeables/DraedonsChargingStation.cs @@ -1,8 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; -using CalamityMod.Items.Materials; +using CalamityMod.Tiles; +using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Tiles; namespace CalamityMod.Items.Placeables { @@ -11,11 +10,11 @@ namespace CalamityMod.Items.Placeables public override void SetStaticDefaults() { DisplayName.SetDefault("Draedon's Charging Station"); + Tooltip.SetDefault("Charges Draedon's weaponry using Power Cells"); } public override void SetDefaults() { - item.rare = 10; item.width = 26; item.height = 26; item.maxStack = 999; @@ -25,6 +24,10 @@ namespace CalamityMod.Items.Placeables item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); + + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; + item.value = Item.buyPrice(gold: 50); } } } diff --git a/Items/Placeables/DraedonsFuelFactoryItem.cs b/Items/Placeables/DraedonsFuelFactoryItem.cs index 5b4d5378c8..a167ceacaf 100644 --- a/Items/Placeables/DraedonsFuelFactoryItem.cs +++ b/Items/Placeables/DraedonsFuelFactoryItem.cs @@ -1,6 +1,7 @@ +using CalamityMod.Tiles; +using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Tiles; namespace CalamityMod.Items.Placeables { @@ -9,11 +10,11 @@ namespace CalamityMod.Items.Placeables public override void SetStaticDefaults() { DisplayName.SetDefault("Draedon's Fuel Factory"); + Tooltip.SetDefault("Produces Draedon Power Cells over time"); } public override void SetDefaults() { - item.rare = 10; item.width = 26; item.height = 26; item.maxStack = 999; @@ -23,6 +24,10 @@ namespace CalamityMod.Items.Placeables item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); + + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; + item.value = Item.buyPrice(gold: 50); } } } diff --git a/Items/PowerCell.cs b/Items/PowerCell.cs index d52091a977..4c6adf1574 100644 --- a/Items/PowerCell.cs +++ b/Items/PowerCell.cs @@ -1,5 +1,3 @@ -using CalamityMod.UI; -using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,14 +8,15 @@ namespace CalamityMod.Items public override void SetStaticDefaults() { DisplayName.SetDefault("Draedon Power Cell"); - Tooltip.SetDefault("Used at a charger to charge special weapons"); + Tooltip.SetDefault("Used to charge Draedon's weaponry at a charger"); } public override void SetDefaults() { item.width = 26; item.height = 14; - item.rare = 10; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.maxStack = 999; } } diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index 83ad263184..9fc2a72125 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -1,5 +1,4 @@ using CalamityMod.Items.Materials; -using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.DraedonsArsenal; using Microsoft.Xna.Framework; using Terraria; @@ -8,13 +7,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class GatlingLaser : ModItem + public class GatlingLaser : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Gatling Laser"); Tooltip.SetDefault("Large laser cannon used primarily by Yharim's fleet and base defense force\n" + - "Highly accurate, but lacks the power to punch through defensive targets"); + "Highly accurate, but lacks the power to punch through defensive targets"); } public override void SetDefaults() @@ -35,7 +34,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity8BuyPrice; - item.rare = 8; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.Calamity().ChargeMax = 135; } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0; + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0; public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { @@ -66,8 +66,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 20); + recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ItemID.LaserMachinegun); recipe.AddTile(TileID.LunarCraftingStation); diff --git a/Items/Weapons/DraedonsArsenal/GaussDagger.cs b/Items/Weapons/DraedonsArsenal/GaussDagger.cs index 87130e9935..a32a6401cd 100644 --- a/Items/Weapons/DraedonsArsenal/GaussDagger.cs +++ b/Items/Weapons/DraedonsArsenal/GaussDagger.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void SetStaticDefaults() { DisplayName.SetDefault("Gauss Dagger"); - Tooltip.SetDefault("Hitting enemies in rapid succession causes them to become enveloped in a magnetic flux"); + Tooltip.SetDefault("Repeat strikes envelop foes in magnetic flux"); } public override void SetDefaults() { @@ -28,7 +28,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.knockBack = 7f; item.value = CalamityGlobalItem.Rarity3BuyPrice; - item.rare = 3; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.UseSound = SoundID.Item1; item.autoReuse = true; @@ -55,7 +56,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 7); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ItemID.MeteoriteBar, 4); recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/GaussPistol.cs b/Items/Weapons/DraedonsArsenal/GaussPistol.cs index 81313d8487..8d6245d72b 100644 --- a/Items/Weapons/DraedonsArsenal/GaussPistol.cs +++ b/Items/Weapons/DraedonsArsenal/GaussPistol.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void SetStaticDefaults() { DisplayName.SetDefault("Gauss Pistol"); + Tooltip.SetDefault("Fires a devastating high velocity blast with extreme knockback"); } public override void SetDefaults() @@ -28,7 +29,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity5BuyPrice; - item.rare = 5; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; @@ -40,9 +42,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ItemID.HallowedBar, 5); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ItemID.HallowedBar, 10); + recipe.AddIngredient(ItemID.SpaceGun); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/GaussRifle.cs b/Items/Weapons/DraedonsArsenal/GaussRifle.cs index 2dab43881a..144ac20e54 100644 --- a/Items/Weapons/DraedonsArsenal/GaussRifle.cs +++ b/Items/Weapons/DraedonsArsenal/GaussRifle.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.DraedonsArsenal; using Microsoft.Xna.Framework; using Terraria; @@ -7,12 +8,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class GaussRifle : ModItem + public class GaussRifle : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Gauss Rifle"); - Tooltip.SetDefault("Fires an enormous pulse of energy"); + Tooltip.SetDefault("Fires a devastating high velocity blast with absurd knockback"); } public override void SetDefaults() @@ -30,7 +31,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity8BuyPrice; - item.rare = 8; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 27f; @@ -47,10 +49,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 18); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ItemID.LaserRifle); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs index 5d3679aec1..2cdaa7ff59 100644 --- a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs +++ b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void SetStaticDefaults() { DisplayName.SetDefault("Hydraulic Volt Crasher"); - Tooltip.SetDefault("Zaps nearby enemies on hit"); + Tooltip.SetDefault("An electrically charged jackhammer which shocks all nearby foes on hit"); } public override void SetDefaults() @@ -27,8 +27,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.UseSound = SoundID.Item23; item.shoot = ModContent.ProjectileType(); - item.rare = 5; item.value = CalamityGlobalItem.Rarity5BuyPrice; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.noMelee = true; item.noUseGraphic = true; @@ -42,9 +43,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ItemID.HallowedBar, 5); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddIngredient(ItemID.HallowedBar, 10); + recipe.AddIngredient(ItemID.SoulofMight, 20); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/LaserRifle.cs b/Items/Weapons/DraedonsArsenal/LaserRifle.cs index f09c2e3701..18a9b59409 100644 --- a/Items/Weapons/DraedonsArsenal/LaserRifle.cs +++ b/Items/Weapons/DraedonsArsenal/LaserRifle.cs @@ -32,8 +32,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.Turquoise; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; @@ -50,23 +50,12 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal velocity.Normalize(); velocity *= 5f; } - for (int i = 0; i < 2; i++) { float SpeedX = velocity.X + Main.rand.Next(-1, 2) * 0.05f; float SpeedY = velocity.Y + Main.rand.Next(-1, 2) * 0.05f; Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, i, 0f); } - - // Consume 4 ammo per shot - CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, 4); - - return false; - } - - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) - { return false; } @@ -80,9 +69,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddIngredient(ItemID.LaserRifle); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ItemID.LunarBar, 4); + recipe.AddIngredient(ItemID.SniperRifle); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/MountedScanner.cs b/Items/Weapons/DraedonsArsenal/MountedScanner.cs index 6c336c8ed4..89b9eb6cfb 100644 --- a/Items/Weapons/DraedonsArsenal/MountedScanner.cs +++ b/Items/Weapons/DraedonsArsenal/MountedScanner.cs @@ -30,7 +30,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity5BuyPrice; - item.rare = 5; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; @@ -78,8 +79,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ItemID.HallowedBar, 5); - recipe.AddTile(TileID.Anvils); + recipe.AddIngredient(ItemID.HallowedBar, 10); + recipe.AddIngredient(ItemID.SoulofFright, 20); + recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index 9023469ff9..8b0da9e7cd 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.value = CalamityGlobalItem.RarityVioletBuyPrice; item.rare = ItemRarityID.Red; - item.Calamity().customRarity = CalamityRarity.RareVariant; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.UseSound = SoundID.Item1; item.autoReuse = true; @@ -65,8 +65,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 25); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(saberID); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); diff --git a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs index 8541c26364..c1ab052d43 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.DraedonsArsenal; using Microsoft.Xna.Framework; using Terraria; @@ -7,7 +8,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class PlasmaCaster : ModItem + public class PlasmaCaster : ModItem { public const int BaseDamage = 1100; public override void SetStaticDefaults() @@ -34,8 +35,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.Turquoise; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; @@ -62,31 +63,19 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal velocity *= 5f; } - int ammoConsumed = 20; float SpeedX = velocity.X + (float)Main.rand.Next(-3, 4) * 0.05f; float SpeedY = velocity.Y + (float)Main.rand.Next(-3, 4) * 0.05f; float damageMult = 1f; float kbMult = 1f; if (player.altFunctionUse == 2) { - ammoConsumed = 5; SpeedX = velocity.X + (float)Main.rand.Next(-15, 16) * 0.05f; SpeedY = velocity.Y + (float)Main.rand.Next(-15, 16) * 0.05f; damageMult = 0.3333f; - kbMult = 3f/7f; + kbMult = 3f / 7f; } Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), (int)(damage * damageMult), knockBack * kbMult, player.whoAmI, 0f, 0f); - - // Consume 20 or 5 ammo per shot - CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, ammoConsumed); - - return false; - } - - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) - { return false; } @@ -100,8 +89,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ItemID.LunarBar, 5); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ItemID.LunarBar, 4); + // still awkward that the item called Plasma Rifle is the same class and exact same tier as this item + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index 5df934b1e7..1c3689ece4 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -33,14 +33,15 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.UseSound = SoundID.Item1; item.autoReuse = true; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.RareVariant; + item.value = Item.sellPrice(silver: 80); + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; item.Calamity().rogue = true; } + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile grenade = Projectile.NewProjectileDirect(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); @@ -55,7 +56,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal recipe.AddIngredient(ModContent.ItemType(), 1); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.AddTile(ModContent.TileType()); - recipe.SetResult(this, 800); + recipe.SetResult(this, 999); recipe.AddRecipe(); } } diff --git a/Items/Weapons/DraedonsArsenal/PoleWarper.cs b/Items/Weapons/DraedonsArsenal/PoleWarper.cs index 18de89b972..5915d29fce 100644 --- a/Items/Weapons/DraedonsArsenal/PoleWarper.cs +++ b/Items/Weapons/DraedonsArsenal/PoleWarper.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.DraedonsArsenal; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; @@ -8,7 +9,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class PoleWarper : ModItem + public class PoleWarper : ModItem { public override void SetStaticDefaults() { @@ -29,8 +30,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.knockBack = 8f; item.value = CalamityGlobalItem.RarityVioletBuyPrice; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.RareVariant; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.UseSound = SoundID.Item15; item.autoReuse = true; @@ -75,9 +76,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 25); + recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/PulsePistol.cs b/Items/Weapons/DraedonsArsenal/PulsePistol.cs index 1baec0fcff..f884470200 100644 --- a/Items/Weapons/DraedonsArsenal/PulsePistol.cs +++ b/Items/Weapons/DraedonsArsenal/PulsePistol.cs @@ -31,10 +31,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity3BuyPrice; - item.rare = 3; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 5.2f; // Keep in mind that the shot has extra updates. + item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates. item.Calamity().Chargeable = true; item.Calamity().ChargeMax = 50; @@ -43,24 +44,19 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); - - // Consume 6 ammo per shot - CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, 6); - return false; } public override Vector2? HoldoutOffset() => new Vector2(10f, 0f); - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) => false; - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 7); - recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ItemID.MeteoriteBar, 4); + recipe.AddIngredient(ItemID.FlintlockPistol); recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index a1caa6d4b9..726ce10f29 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -36,9 +36,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PulseRifleFire"); item.noMelee = true; - item.value = Item.buyPrice(1, 80, 0, 0); - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.RareVariant; + item.value = CalamityGlobalItem.RarityVioletBuyPrice; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; @@ -59,32 +59,19 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal float SpeedY = velocity.Y + (float)Main.rand.Next(-1, 2) * 0.05f; Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); - - // Consume 6 ammo per shot - CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, 6); - return false; } - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) - { - return false; - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-10, 0); public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 16); + recipe.AddIngredient(ModContent.ItemType(), 24); + recipe.AddIngredient(ModContent.ItemType(), 4); + // The only arsenal weapon that is an upgrade of another arsenal weapon (and it makes sense). recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ItemID.LaserRifle); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs index c651736a51..56eff42954 100644 --- a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs +++ b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs @@ -7,11 +7,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class PulseTurretRemote : ModItem + public class PulseTurretRemote : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Pulse Turret Remote"); + Tooltip.SetDefault("Summons a pulse turret which eradicates nearby foes with focused energy blasts\n" + + "Especially effective against inorganic targets"); } public override void SetDefaults() @@ -29,7 +31,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.Rarity5BuyPrice; - item.rare = 5; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; @@ -62,9 +65,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ItemID.HallowedBar, 5); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddIngredient(ItemID.HallowedBar, 10); + recipe.AddIngredient(ItemID.SoulofSight, 20); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs index 647e28108a..8b1f2229ba 100644 --- a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs +++ b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.DraedonsArsenal; using Microsoft.Xna.Framework; using Terraria; @@ -7,7 +8,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.DraedonsArsenal { - public class SnakeEyes : ModItem + public class SnakeEyes : ModItem { public override void SetStaticDefaults() { @@ -26,9 +27,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 3f; - item.value = CalamityGlobalItem.Rarity10BuyPrice; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.Turquoise; + + item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; + item.UseSound = SoundID.Item15; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); @@ -47,8 +50,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 10); - recipe.AddIngredient(ItemID.LunarBar, 5); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ItemID.LunarBar, 4); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs index 716fef4d87..73d217f786 100644 --- a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs +++ b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void SetStaticDefaults() { DisplayName.SetDefault("Star Swallower Containment Unit"); - Tooltip.SetDefault("Summons a mechanical frog that vomits plasma onto enemies"); + Tooltip.SetDefault("Summons a biomechanical frog that vomits plasma onto enemies"); } public override void SetDefaults() @@ -27,7 +27,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.knockBack = 2.25f; item.value = CalamityGlobalItem.Rarity3BuyPrice; - item.rare = 3; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.UseSound = SoundID.Item15; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); @@ -48,9 +49,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 6); - recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ItemID.MeteoriteBar, 4); + recipe.AddIngredient(ItemID.Frog); recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index d6974f5e0f..7d95251538 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -36,8 +36,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noMelee = true; item.value = CalamityGlobalItem.RarityVioletBuyPrice; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.RareVariant; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.DraedonRust; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; @@ -58,30 +58,17 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal float SpeedY = velocity.Y + (float)Main.rand.Next(-1, 2) * 0.02f; Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); - - // Consume 30 ammo per shot - CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, 30); - return false; } - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) - { - return false; - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-20, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-20, 0); public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddIngredient(ModContent.ItemType(), 25); recipe.AddIngredient(ModContent.ItemType(), 15); - recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(ItemID.ChargedBlasterCannon); recipe.AddTile(ModContent.TileType()); recipe.SetResult(this); diff --git a/Utilities/Enums.cs b/Utilities/Enums.cs index ee589e1ee3..831072c3f1 100644 --- a/Utilities/Enums.cs +++ b/Utilities/Enums.cs @@ -19,6 +19,7 @@ namespace CalamityMod Developer = 16, Rainbow = 30, RareVariant = 31, - Dedicated = 32 + Dedicated = 32, + DraedonRust = 33, } } diff --git a/Walls/DraedonStructures/RustedPlateBeam.cs b/Walls/DraedonStructures/RustedPlateBeam.cs index 4dc8f86a73..e03ee628b2 100644 --- a/Walls/DraedonStructures/RustedPlateBeam.cs +++ b/Walls/DraedonStructures/RustedPlateBeam.cs @@ -1,7 +1,7 @@ -using Terraria; using Microsoft.Xna.Framework; -using Terraria.ID; +using Terraria; using Terraria.ModLoader; + namespace CalamityMod.Walls.DraedonStructures { public class RustedPlateBeam : ModWall @@ -10,7 +10,7 @@ namespace CalamityMod.Walls.DraedonStructures public override void SetDefaults() { dustType = 32; - drop = ModContent.ItemType(); + drop = ModContent.ItemType(); Main.wallHouse[Type] = true; AddMapEntry(new Color(74, 47, 39)); diff --git a/Walls/DraedonStructures/RustedPlatePillar.cs b/Walls/DraedonStructures/RustedPlatePillar.cs index 4d2e22a510..c45e84988d 100644 --- a/Walls/DraedonStructures/RustedPlatePillar.cs +++ b/Walls/DraedonStructures/RustedPlatePillar.cs @@ -1,7 +1,7 @@ -using Terraria; using Microsoft.Xna.Framework; -using Terraria.ID; +using Terraria; using Terraria.ModLoader; + namespace CalamityMod.Walls.DraedonStructures { public class RustedPlatePillar : ModWall @@ -10,7 +10,7 @@ namespace CalamityMod.Walls.DraedonStructures public override void SetDefaults() { dustType = 32; - drop = ModContent.ItemType(); + drop = ModContent.ItemType(); Main.wallHouse[Type] = true; AddMapEntry(new Color(99, 71, 60));