1 - Renamed Exocrystals to Exo Prisms

2 - Added Miracle Matter
3 - Changed all Exo Weapon recipes to require 1 Miracle Matter
4 - Improved the tooltips of most late game crafting materials
5 - Changed some late game crafting recipes around
This commit is contained in:
Ozzatron committed 2021-09-12 20:07:49 -04:00
1 parent d186670529
commit cdb8a5489e
25 files changed
+293 -260

No files matched your search

+18 -19
View File
@@ -1,17 +1,16 @@
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.DataStructures;
namespace CalamityMod.Items.Materials
{
public class AscendantSpiritEssence : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ascendant Spirit Essence");
@@ -26,21 +25,21 @@ namespace CalamityMod.Items.Materials
item.maxStack = 999;
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.value = Item.sellPrice(gold: 25);
item.value = Item.sellPrice(gold: 40);
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AscendantSpiritEssenceGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AscendantSpiritEssenceGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
{
@@ -54,8 +53,8 @@ namespace CalamityMod.Items.Materials
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 2);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
+35 -39
View File
@@ -11,54 +11,54 @@ namespace CalamityMod.Items.Materials
{
public class AuricBar : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Auric Tesla Bar");
Tooltip.SetDefault("It radiates godly energy");
DisplayName.SetDefault("Auric Bar");
Tooltip.SetDefault("Godlike power emanates from the metal");
}
public override void SetDefaults()
{
item.createTile = ModContent.TileType<AuricTeslaBar>();
item.createTile = ModContent.TileType<AuricTeslaBar>();
item.width = 50;
item.height = 30;
item.maxStack = 999;
item.value = Item.sellPrice(gold: 60);
item.Calamity().customRarity = CalamityRarity.Violet;
item.useStyle = ItemUseStyleID.SwingThrow;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
item.useStyle = ItemUseStyleID.SwingThrow;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
}
public override void UseStyle(Player player)
{
player.itemLocation += new Vector2(-10f * player.direction, 10f * player.gravDir).RotatedBy(player.itemRotation);
}
public override void UseStyle(Player player)
{
player.itemLocation += new Vector2(-10f * player.direction, 10f * player.gravDir).RotatedBy(player.itemRotation);
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated");
spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated");
spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBarGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBarGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
{
@@ -69,15 +69,11 @@ namespace CalamityMod.Items.Materials
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<BarofLife>());
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 10);
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>(), 2);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>());
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>());
// TODO -- Cosmic Anvil, you won't have DF yet for Auric Bars
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this, 2);
recipe.SetResult(this, 5);
recipe.AddRecipe();
}
}
+2 -2
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ashes of Annihilation");
Tooltip.SetDefault("It burns with untold power");
Tooltip.SetDefault("The smoldering essence of the Witch's wrath");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 6));
}
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Materials
item.height = 56;
item.maxStack = 999;
item.rare = ItemRarityID.Purple;
item.value = Item.sellPrice(gold: 24);
item.value = Item.sellPrice(gold: 66, silver: 66, copper: 66);
item.Calamity().customRarity = CalamityRarity.Violet;
}
+15 -15
View File
@@ -9,12 +9,12 @@ namespace CalamityMod.Items.Materials
{
public class DarksunFragment : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Darksun Fragment");
Tooltip.SetDefault("A shard of lunar and solar energy");
Tooltip.SetDefault("An impacted crystal suffused with opposing celestial energies");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 8));
}
@@ -23,23 +23,23 @@ namespace CalamityMod.Items.Materials
item.width = 28;
item.height = 32;
item.maxStack = 999;
item.rare = ItemRarityID.Purple;
item.rare = ItemRarityID.Purple;
item.value = Item.sellPrice(gold: 12);
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/DarksunFragmentGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 8, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/DarksunFragmentGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 8, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
{
+15 -15
View File
@@ -7,14 +7,14 @@ using Terraria.ID;
namespace CalamityMod.Items.Materials
{
public class EndothermicEnergy : ModItem
public class EndothermicEnergy : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Endothermic Energy");
Tooltip.SetDefault("Great for preventing heat stroke");
Tooltip.SetDefault("Its deathly chill sucks the life from its surroundings");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
}
@@ -28,18 +28,18 @@ namespace CalamityMod.Items.Materials
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/EndothermicEnergyGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/EndothermicEnergyGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
{
@@ -6,11 +6,11 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Materials
{
public class ExoCrystal : ModItem
public class ExoPrism : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Exocrystal");
DisplayName.SetDefault("Exo Prism");
Tooltip.SetDefault("Fractal energies shimmer across its surface");
}
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Materials
item.height = 52;
item.maxStack = 999;
item.rare = ItemRarityID.Purple;
item.value = Item.sellPrice(gold: 24);
item.value = Item.sellPrice(gold: 60);
item.Calamity().customRarity = CalamityRarity.Violet;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Materials
item.width = 10;
item.height = 14;
item.maxStack = 999;
item.value = Item.sellPrice(gold: 16);
item.value = Item.sellPrice(gold: 45);
item.Calamity().customRarity = CalamityRarity.Violet;
}
}
+44
View File
@@ -0,0 +1,44 @@
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Materials
{
public class MiracleMatter : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Miracle Matter");
Tooltip.SetDefault("Its amorphous form contains untold potential\n" + "One is required for every Exo Weapon");
}
public override void SetDefaults()
{
item.width = 46;
item.height = 64;
item.maxStack = 999;
item.rare = ItemRarityID.Purple;
item.value = Item.sellPrice(platinum: 6, gold: 50);
item.Calamity().customRarity = CalamityRarity.Violet;
}
// TODO -- Miracle Matter should probably look cooler than it does. Right now it just glows in the dark.
public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, 0);
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<ExoPrism>(), 5);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 1);
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 1);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 1);
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 3);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this, 1);
recipe.AddRecipe();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

+14 -14
View File
@@ -7,10 +7,10 @@ using Terraria.ID;
namespace CalamityMod.Items.Materials
{
public class NightmareFuel : ModItem
public class NightmareFuel : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Nightmare Fuel");
@@ -28,18 +28,18 @@ namespace CalamityMod.Items.Materials
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = Main.itemTexture[item.type];
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/NightmareFuelGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/NightmareFuelGlow");
spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
{
+3 -2
View File
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Phantoplasm");
Tooltip.SetDefault("It churns and seethes with ghastly malice");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 5));
}
@@ -20,8 +21,8 @@ namespace CalamityMod.Items.Materials
item.height = 12;
item.maxStack = 999;
item.value = Item.sellPrice(gold: 1);
item.rare = ItemRarityID.Purple;
}
item.rare = ItemRarityID.Purple;
}
public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, 0);
}
+4 -2
View File
@@ -12,9 +12,11 @@ namespace CalamityMod.Items.Materials
{
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shadowspec Bar");
Tooltip.SetDefault("A vile, black metal, so horrendous and powerful as to defy explanation");
}
public override void SetDefaults()
@@ -30,7 +32,7 @@ namespace CalamityMod.Items.Materials
item.autoReuse = true;
item.consumable = true;
item.value = Item.sellPrice(gold: 85);
item.value = Item.sellPrice(platinum: 1, gold: 92);
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
}
@@ -53,7 +55,7 @@ namespace CalamityMod.Items.Materials
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<AuricBar>());
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>());
recipe.AddIngredient(ModContent.ItemType<ExoPrism>());
recipe.AddIngredient(ModContent.ItemType<CalamitousEssence>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
+2 -1
View File
@@ -9,6 +9,7 @@ namespace CalamityMod.Items.Placeables.Ores
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Auric Ore");
Tooltip.SetDefault("Laced with the dormant power of a deity");
}
public override void SetDefaults()
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Ores
item.width = 10;
item.height = 10;
item.maxStack = 999;
item.value = Item.sellPrice(gold: 2);
item.value = Item.sellPrice(gold: 4);
item.Calamity().customRarity = CalamityRarity.Violet;
}
}
+4 -5
View File
@@ -9,7 +9,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class SubsumingVortex : ModItem
public class SubsumingVortex : ModItem
{
public override void SetStaticDefaults()
{
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.knockBack = 5f;
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.Violet;
item.value = Item.buyPrice(platinum: 2, gold: 50);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<EnormousConsumingVortex>();
item.shootSpeed = 7f;
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow"));
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow"));
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
@@ -56,8 +56,7 @@ namespace CalamityMod.Items.Weapons.Magic
recipe.AddIngredient(ModContent.ItemType<AuguroftheElements>());
recipe.AddIngredient(ModContent.ItemType<EventHorizon>());
recipe.AddIngredient(ModContent.ItemType<TearsofHeaven>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+6 -7
View File
@@ -14,10 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic
{
DisplayName.SetDefault("Vivid Clarity");
Tooltip.SetDefault("Fires five randomized beams of elemental energy at the cursor\n" +
"On enemy and tile hits, beams either explode into a big flash,\n" +
"summon an additonal laser from the sky,\n" +
"or split into energy orbs\n" +
"High IQ increases the weapon's potential");
"On enemy and tile hits, beams either explode into a big flash,\n" +
"summon an additonal laser from the sky,\n" +
"or split into energy orbs\n" +
"Its majesty inspires a stroke of unparalleled genius");
Item.staff[item.type] = true;
}
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 7.5f;
item.value = Item.buyPrice(2, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.UseSound = SoundID.Item60;
item.autoReuse = true;
@@ -84,8 +84,7 @@ namespace CalamityMod.Items.Weapons.Magic
recipe.AddIngredient(ModContent.ItemType<UltraLiquidator>());
recipe.AddIngredient(ModContent.ItemType<PhantasmalFury>());
recipe.AddIngredient(ModContent.ItemType<ShadowboltStaff>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+93 -94
View File
@@ -8,17 +8,17 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class DraedonsExoblade : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Exoblade");
Tooltip.SetDefault("Ancient blade of Yharim's weapons and armors expert, Draedon\n" +
"Fires an exo beam that homes in on the player and explodes\n" +
"Striking an enemy with the blade causes several comets to fire\n" +
"All attacks briefly freeze enemies hit\n" +
"Enemies hit at very low HP explode into frost energy and freeze nearby enemies");
}
public class DraedonsExoblade : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Exoblade");
Tooltip.SetDefault("Ancient blade of Yharim's weapons and armors expert, Draedon\n" +
"Fires an exo beam that homes in on the player and explodes\n" +
"Striking an enemy with the blade causes several comets to fire\n" +
"All attacks briefly freeze enemies hit\n" +
"Enemies hit at very low HP explode into frost energy and freeze nearby enemies");
}
public override void SetDefaults()
{
@@ -33,104 +33,103 @@ namespace CalamityMod.Items.Weapons.Melee
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.height = 114;
item.value = Item.buyPrice(2, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.shoot = ModContent.ProjectileType<Exobeam>();
item.shootSpeed = 19f;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(4))
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 107, 0f, 0f, 100, new Color(0, 255, 255));
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(4))
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 107, 0f, 0f, 100, new Color(0, 255, 255));
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (crit)
damage /= 2;
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (crit)
damage /= 2;
if (target.life <= (target.lifeMax * 0.05f))
Projectile.NewProjectile(target.Center, Vector2.Zero, ModContent.ProjectileType<Exoboom>(), damage, knockback, Main.myPlayer);
if (target.life <= (target.lifeMax * 0.05f))
Projectile.NewProjectile(target.Center, Vector2.Zero, ModContent.ProjectileType<Exoboom>(), damage, knockback, Main.myPlayer);
target.ExoDebuffs();
Main.PlaySound(SoundID.Item88, player.Center);
float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt();
float yPos = player.position.Y + Main.rand.Next(-800, 801);
Vector2 startPos = new Vector2(xPos, yPos);
Vector2 velocity = target.position - startPos;
float dir = 10 / startPos.X;
velocity.X *= dir * 150;
velocity.Y *= dir * 150;
velocity.X = MathHelper.Clamp(velocity.X, -15f, 15f);
velocity.Y = MathHelper.Clamp(velocity.Y, -15f, 15f);
if (player.ownedProjectileCounts[ModContent.ProjectileType<Exocomet>()] < 8)
{
for (int comet = 0; comet < 2; comet++)
{
float ai1 = Main.rand.NextFloat() + 0.5f;
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), damage, knockback, player.whoAmI, 0f, ai1);
}
}
target.ExoDebuffs();
Main.PlaySound(SoundID.Item88, player.Center);
float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt();
float yPos = player.position.Y + Main.rand.Next(-800, 801);
Vector2 startPos = new Vector2(xPos, yPos);
Vector2 velocity = target.position - startPos;
float dir = 10 / startPos.X;
velocity.X *= dir * 150;
velocity.Y *= dir * 150;
velocity.X = MathHelper.Clamp(velocity.X, -15f, 15f);
velocity.Y = MathHelper.Clamp(velocity.Y, -15f, 15f);
if (player.ownedProjectileCounts[ModContent.ProjectileType<Exocomet>()] < 8)
{
for (int comet = 0; comet < 2; comet++)
{
float ai1 = Main.rand.NextFloat() + 0.5f;
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), damage, knockback, player.whoAmI, 0f, ai1);
}
}
if (!target.canGhostHeal || player.moonLeech)
return;
if (!target.canGhostHeal || player.moonLeech)
return;
int healAmount = Main.rand.Next(3) + 5;
player.statLife += healAmount;
player.HealEffect(healAmount);
}
int healAmount = Main.rand.Next(3) + 5;
player.statLife += healAmount;
player.HealEffect(healAmount);
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (crit)
damage /= 2;
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (crit)
damage /= 2;
if (target.statLife <= (target.statLifeMax2 * 0.05f))
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<Exoboom>(), damage, item.knockBack, Main.myPlayer);
if (target.statLife <= (target.statLifeMax2 * 0.05f))
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<Exoboom>(), damage, item.knockBack, Main.myPlayer);
target.ExoDebuffs();
Main.PlaySound(SoundID.Item88, player.Center);
float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt();
float yPos = player.position.Y + Main.rand.Next(-800, 801);
Vector2 startPos = new Vector2(xPos, yPos);
Vector2 velocity = target.position - startPos;
float dir = 10 / startPos.X;
velocity.X *= dir * 150;
velocity.Y *= dir * 150;
velocity.X = MathHelper.Clamp(velocity.X, -15f, 15f);
velocity.Y = MathHelper.Clamp(velocity.Y, -15f, 15f);
if (player.ownedProjectileCounts[ModContent.ProjectileType<Exocomet>()] < 8)
{
for (int comet = 0; comet < 2; comet++)
{
float ai1 = Main.rand.NextFloat() + 0.5f;
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), damage, item.knockBack, player.whoAmI, 0f, ai1);
}
}
target.ExoDebuffs();
Main.PlaySound(SoundID.Item88, player.Center);
float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt();
float yPos = player.position.Y + Main.rand.Next(-800, 801);
Vector2 startPos = new Vector2(xPos, yPos);
Vector2 velocity = target.position - startPos;
float dir = 10 / startPos.X;
velocity.X *= dir * 150;
velocity.Y *= dir * 150;
velocity.X = MathHelper.Clamp(velocity.X, -15f, 15f);
velocity.Y = MathHelper.Clamp(velocity.Y, -15f, 15f);
if (player.ownedProjectileCounts[ModContent.ProjectileType<Exocomet>()] < 8)
{
for (int comet = 0; comet < 2; comet++)
{
float ai1 = Main.rand.NextFloat() + 0.5f;
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), damage, item.knockBack, player.whoAmI, 0f, ai1);
}
}
if (player.moonLeech)
return;
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(3) + 5;
player.statLife += healAmount;
player.HealEffect(healAmount);
}
int healAmount = Main.rand.Next(3) + 5;
player.statLife += healAmount;
player.HealEffect(healAmount);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<Terratomere>());
recipe.AddIngredient(ModContent.ItemType<AnarchyBlade>());
recipe.AddIngredient(ModContent.ItemType<FlarefrostBlade>());
recipe.AddIngredient(ModContent.ItemType<PhoenixBlade>());
recipe.AddIngredient(ModContent.ItemType<StellarStriker>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<Terratomere>());
recipe.AddIngredient(ModContent.ItemType<AnarchyBlade>());
recipe.AddIngredient(ModContent.ItemType<FlarefrostBlade>());
recipe.AddIngredient(ModContent.ItemType<PhoenixBlade>());
recipe.AddIngredient(ModContent.ItemType<StellarStriker>());
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
+20 -22
View File
@@ -2,7 +2,6 @@ using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.UseSound = SoundID.Item1;
item.useTurn = true;
item.autoReuse = true;
item.value = Item.buyPrice(2, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.shoot = ModContent.ProjectileType<ExoGladProj>();
item.shootSpeed = 19f;
@@ -52,8 +51,7 @@ namespace CalamityMod.Items.Weapons.Melee
recipe.AddIngredient(ModContent.ItemType<GalileoGladius>());
recipe.AddIngredient(ModContent.ItemType<CosmicShiv>());
recipe.AddIngredient(ModContent.ItemType<Lucrecia>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
@@ -65,27 +63,27 @@ namespace CalamityMod.Items.Weapons.Melee
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 107);
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.ExoDebuffs();
OnHitEffects(player);
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.ExoDebuffs();
OnHitEffects(player);
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
target.ExoDebuffs();
OnHitEffects(player);
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
target.ExoDebuffs();
OnHitEffects(player);
}
private void OnHitEffects(Player player)
{
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
if (player.immuneTime < item.useTime)
@@ -102,5 +100,5 @@ namespace CalamityMod.Items.Weapons.Melee
CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 25f, ModContent.ProjectileType<ExoGladComet>(), damage, 15f, player.whoAmI);
}
}
}
}
}
+1 -2
View File
@@ -110,8 +110,7 @@ namespace CalamityMod.Items.Weapons.Ranged
recipe.AddIngredient(ItemType<Galeforce>());
recipe.AddIngredient(ItemType<PlanetaryAnnihilation>());
recipe.AddIngredient(ItemType<TheBallista>());
recipe.AddIngredient(ItemType<AuricBar>(), 4);
recipe.AddIngredient(ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ItemType<MiracleMatter>());
recipe.AddTile(TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+2 -3
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
DisplayName.SetDefault("Magnomaly Cannon");
Tooltip.SetDefault("Launches a powerful exo rocket to nuke anything and everything\n" +
"Rockets are surrounded by an invisible damaging aura and split into damaging beams on hit\n" +
"Rockets are surrounded by an invisible damaging aura and split into damaging beams on hit\n" +
"66% chance to not consume rockets");
}
@@ -65,8 +65,7 @@ namespace CalamityMod.Items.Weapons.Ranged
recipe.AddIngredient(ModContent.ItemType<BlissfulBombardier>());
recipe.AddIngredient(ModContent.ItemType<AethersWhisper>());
recipe.AddIngredient(ItemID.ElectrosphereLauncher);
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+1 -2
View File
@@ -110,8 +110,7 @@ namespace CalamityMod.Items.Weapons.Ranged
recipe.AddIngredient(ModContent.ItemType<ElementalEruption>());
recipe.AddIngredient(ModContent.ItemType<CleansingBlaze>());
recipe.AddIngredient(ModContent.ItemType<HalleysInferno>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+2 -3
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.UseSound = SoundID.Item1;
item.noMelee = true;
item.noUseGraphic = true;
item.value = Item.buyPrice(platinum: 2, gold: 50);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.Violet;
}
@@ -56,8 +56,7 @@ namespace CalamityMod.Items.Weapons.Rogue
recipe.AddIngredient(ModContent.ItemType<MoltenAmputator>());
recipe.AddIngredient(ModContent.ItemType<FrostcrushValari>());
recipe.AddIngredient(ModContent.ItemType<EnchantedAxe>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+5 -6
View File
@@ -31,7 +31,7 @@ Stealth strikes release energy as they fly");
item.UseSound = SoundID.Item15;
item.autoReuse = true;
item.height = 36;
item.value = Item.buyPrice(platinum: 2, gold: 50);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.shoot = ModContent.ProjectileType<SupernovaBomb>();
item.shootSpeed = 16f;
@@ -45,8 +45,8 @@ Stealth strikes release energy as they fly");
{
damage = (int)(damage * 0.9f);
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
return false;
}
return true;
@@ -61,10 +61,9 @@ Stealth strikes release energy as they fly");
recipe.AddIngredient(ModContent.ItemType<ShockGrenade>(), 200);
recipe.AddIngredient(ModContent.ItemType<Penumbra>());
recipe.AddIngredient(ModContent.ItemType<StarofDestruction>());
recipe.AddIngredient(ModContent.ItemType<SealedSingularity>());
recipe.AddIngredient(ModContent.ItemType<SealedSingularity>());
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+2 -2
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon
item.useTime = item.useAnimation = 10;
item.noMelee = true;
item.knockBack = 0f;
item.value = Item.buyPrice(2, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = ItemRarityID.Red;
item.UseSound = SoundID.Item60;
item.shoot = ModContent.ProjectileType<CosmicEnergySpiral>();
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Summon
recipe.AddIngredient(ModContent.ItemType<AncientIceChunk>());
recipe.AddIngredient(ModContent.ItemType<ElementalAxe>());
recipe.AddIngredient(ModContent.ItemType<EnergyStaff>());
recipe.AddIngredient(ModContent.ItemType<ExoCrystal>(), 3);
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
+1 -1
View File
@@ -726,7 +726,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
// Materials
int minCrystalQuantity = Main.expertMode ? 15 : 12;
int maxCrystalQuantity = Main.expertMode ? 18 : 15;
DropHelper.DropItem(npc, ModContent.ItemType<ExoCrystal>(), true, minCrystalQuantity, maxCrystalQuantity);
DropHelper.DropItem(npc, ModContent.ItemType<ExoPrism>(), true, minCrystalQuantity, maxCrystalQuantity);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)