diff --git a/Items/Ammo/MortarRound.cs b/Items/Ammo/MortarRound.cs new file mode 100644 index 0000000000..7c3d361918 --- /dev/null +++ b/Items/Ammo/MortarRound.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Ammo +{ + public class MortarRound : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Ammo"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 99; + } + + public override void SetDefaults() + { + Item.damage = 20; + Item.DamageType = DamageClass.Ranged; + Item.width = 20; + Item.height = 14; + Item.maxStack = 9999; + Item.consumable = true; + Item.knockBack = 7.5f; + Item.value = Item.sellPrice(copper: 20); + Item.rare = ModContent.RarityType(); + Item.ammo = AmmoID.Bullet; + Item.shoot = ModContent.ProjectileType(); + } + + public override void AddRecipes() + { + CreateRecipe(100). + AddIngredient(ItemID.RocketIV, 100). + AddIngredient(). + AddTile(TileID.LunarCraftingStation). + Register(); + } + } +} diff --git a/Items/Ammo/MortarRound.png b/Items/Ammo/MortarRound.png new file mode 100644 index 0000000000..37ef5e341c Binary files /dev/null and b/Items/Ammo/MortarRound.png differ diff --git a/Items/Ammo/RubberMortarRound.cs b/Items/Ammo/RubberMortarRound.cs new file mode 100644 index 0000000000..3607df7033 --- /dev/null +++ b/Items/Ammo/RubberMortarRound.cs @@ -0,0 +1,41 @@ +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Ammo +{ + public class RubberMortarRound : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Ammo"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 99; + } + + public override void SetDefaults() + { + Item.damage = 25; + Item.DamageType = DamageClass.Ranged; + Item.width = 20; + Item.height = 14; + Item.maxStack = 9999; + Item.consumable = true; + Item.knockBack = 7.5f; + Item.value = Item.sellPrice(copper: 20); + Item.rare = ModContent.RarityType(); + Item.ammo = AmmoID.Bullet; + Item.shoot = ModContent.ProjectileType(); + } + + public override void AddRecipes() + { + CreateRecipe(100). + AddIngredient(100). + AddIngredient(ItemID.PinkGel, 5). + AddTile(TileID.LunarCraftingStation). + Register(); + } + } +} diff --git a/Items/Ammo/RubberMortarRound.png b/Items/Ammo/RubberMortarRound.png new file mode 100644 index 0000000000..60f816dbe2 Binary files /dev/null and b/Items/Ammo/RubberMortarRound.png differ