Merge pull request #125 from UncleDanny/ArsenalRarityAndRecipes

Draedon's Arsenal unique rarity, overhauled recipes, fixed wall drop bug
This commit is contained in:
DominicKarma authored and GitHub committed 2020-07-23 13:54:17 -05:00
commit 63f636c15e
27 files changed
+155 -162

No files matched your search

+3
View File
@@ -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;
+2 -1
View File
@@ -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;
}
+4 -2
View File
@@ -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);
}
}
}
+4 -2
View File
@@ -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);
}
}
}
+7 -4
View File
@@ -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<DraedonItemCharger>();
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.DraedonRust;
item.value = Item.buyPrice(gold: 50);
}
}
}
+7 -2
View File
@@ -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<DraedonFuelFactory>();
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.DraedonRust;
item.value = Item.buyPrice(gold: 50);
}
}
}
+3 -4
View File
@@ -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;
}
}
@@ -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<GatlingLaserProj>();
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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 10);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 20);
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
recipe.AddIngredient(ModContent.ItemType<InfectedArmorPlating>(), 5);
recipe.AddIngredient(ItemID.LaserMachinegun);
recipe.AddTile(TileID.LunarCraftingStation);
+5 -3
View File
@@ -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<MysteriousCircuitry>(), 5);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 7);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 10);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 4);
recipe.AddIngredient(ItemID.MeteoriteBar, 4);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
+7 -4
View File
@@ -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<GaussPistolShot>();
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<MysteriousCircuitry>(), 6);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 6);
recipe.AddIngredient(ItemID.HallowedBar, 5);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 12);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 8);
recipe.AddIngredient(ItemID.HallowedBar, 10);
recipe.AddIngredient(ItemID.SpaceGun);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
+9 -6
View File
@@ -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<GaussRifleBlast>();
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<MysteriousCircuitry>(), 20);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 10);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 18);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 12);
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
recipe.AddIngredient(ModContent.ItemType<InfectedArmorPlating>(), 5);
recipe.AddIngredient(ItemID.LaserRifle);
recipe.AddIngredient(ModContent.ItemType<SpectreRifle>());
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
@@ -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<HydraulicVoltCrasherProjectile>();
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<MysteriousCircuitry>(), 10);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 10);
recipe.AddIngredient(ItemID.HallowedBar, 5);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 8);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 12);
recipe.AddIngredient(ItemID.HallowedBar, 10);
recipe.AddIngredient(ItemID.SoulofMight, 20);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
+5 -16
View File
@@ -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<LaserRifleShot>();
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<LaserRifleShot>(), 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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 10);
recipe.AddIngredient(ItemID.LunarBar, 5);
recipe.AddIngredient(ItemID.LaserRifle);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 8);
recipe.AddIngredient(ItemID.LunarBar, 4);
recipe.AddIngredient(ItemID.SniperRifle);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
@@ -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<MountedScannerSummon>();
item.shootSpeed = 1f;
@@ -78,8 +79,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 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();
}
+3 -3
View File
@@ -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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 25);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(saberID);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
+9 -18
View File
@@ -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<PlasmaCasterShot>();
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<PlasmaCasterShot>(), (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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 10);
recipe.AddIngredient(ItemID.LunarBar, 5);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 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<Wingman>());
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
@@ -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<PlasmaGrenadeProjectile>();
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<DubiousPlating>(), 1);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 1);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this, 800);
recipe.SetResult(this, 999);
recipe.AddRecipe();
}
}
+8 -6
View File
@@ -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<MysteriousCircuitry>(), 6);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 6);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 25);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<DazzlingStabberStaff>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+6 -10
View File
@@ -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<PulseRifleShot>();
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<PulsePistolShot>(), 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<MysteriousCircuitry>(), 5);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 7);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 10);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 4);
recipe.AddIngredient(ItemID.MeteoriteBar, 4);
recipe.AddIngredient(ItemID.FlintlockPistol);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
+8 -21
View File
@@ -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<PulseRifleShot>();
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<PulseRifleShot>(), 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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 16);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 24);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
// The only arsenal weapon that is an upgrade of another arsenal weapon (and it makes sense).
recipe.AddIngredient(ModContent.ItemType<PulsePistol>());
recipe.AddIngredient(ItemID.LaserRifle);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
@@ -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<PulseTurret>();
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<MysteriousCircuitry>(), 10);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 10);
recipe.AddIngredient(ItemID.HallowedBar, 5);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 8);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 12);
recipe.AddIngredient(ItemID.HallowedBar, 10);
recipe.AddIngredient(ItemID.SoulofSight, 20);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
+10 -6
View File
@@ -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<SnakeEyesSummon>();
@@ -47,8 +50,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 10);
recipe.AddIngredient(ItemID.LunarBar, 5);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 8);
recipe.AddIngredient(ItemID.LunarBar, 4);
recipe.AddIngredient(ModContent.ItemType<GodspawnHelixStaff>());
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
@@ -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<StarSwallowerSummon>();
@@ -48,9 +49,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 6);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 6);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 8);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 8);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 4);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 4);
recipe.AddIngredient(ItemID.MeteoriteBar, 4);
recipe.AddIngredient(ItemID.Frog);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
+5 -18
View File
@@ -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<TeslaCannonShot>();
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<TeslaCannonShot>(), 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<MysteriousCircuitry>(), 15);
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 25);
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 15);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ItemID.ChargedBlasterCannon);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
+2 -1
View File
@@ -19,6 +19,7 @@ namespace CalamityMod
Developer = 16,
Rainbow = 30,
RareVariant = 31,
Dedicated = 32
Dedicated = 32,
DraedonRust = 33,
}
}
+3 -3
View File
@@ -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<Items.Placeables.Walls.DraedonStructures.RustedPlatingWall>();
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlateBeam>();
Main.wallHouse[Type] = true;
AddMapEntry(new Color(74, 47, 39));
+3 -3
View File
@@ -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<Items.Placeables.Walls.DraedonStructures.RustedPlatingWall>();
drop = ModContent.ItemType<Items.Placeables.Walls.DraedonStructures.RustedPlatePillar>();
Main.wallHouse[Type] = true;
AddMapEntry(new Color(99, 71, 60));