Unique Draedon rarity, fixed any price/recipe issues
This commit is contained in:
1 parent
0691dc69ab
commit
dbdbc88d57
25 files changed
+79
-53
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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,7 +7,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class GatlingLaser : ModItem
|
||||
public class GatlingLaser : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -28,7 +28,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;
|
||||
|
||||
@@ -30,7 +30,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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -64,9 +64,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
void AddIndividualRecipe(int saberID)
|
||||
{
|
||||
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>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddIngredient(saberID);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -34,8 +34,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;
|
||||
|
||||
@@ -33,9 +33,9 @@ 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;
|
||||
|
||||
@@ -29,8 +29,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;
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
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<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -31,7 +31,8 @@ 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.
|
||||
|
||||
@@ -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;
|
||||
@@ -80,9 +80,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<AuricBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<PulsePistol>());
|
||||
recipe.AddIngredient(ItemID.LaserRifle);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
|
||||
@@ -29,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<PulseTurret>();
|
||||
item.shootSpeed = 1f;
|
||||
|
||||
@@ -26,9 +26,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>();
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -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;
|
||||
@@ -81,7 +81,7 @@ 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<AuricBar>(), 4);
|
||||
recipe.AddIngredient(ItemID.ChargedBlasterCannon);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
|
||||
+2
-1
@@ -19,6 +19,7 @@ namespace CalamityMod
|
||||
Developer = 16,
|
||||
Rainbow = 30,
|
||||
RareVariant = 31,
|
||||
Dedicated = 32
|
||||
Dedicated = 32,
|
||||
DraedonRust = 33,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user