Terra weapon resprites

* And gave them glowmasks
This commit is contained in:
CongratsIsTrash committed 2024-04-21 21:11:31 -04:00
1 parent 9d9f485c9f
commit 307bf1afa6
24 files changed
+77 -39

No files matched your search

+31 -27
View File
@@ -37,30 +37,10 @@ namespace CalamityMod.CalPlayer.DrawLayers
// This is ugly and I don't give a fuck.
// If you want it to look better, do it yourself.
Texture2D glowMask = default;
if (itemType == ModContent.ItemType<IridescentExcalibur>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/IridescentExcaliburGlow").Value;
else if (itemType == ModContent.ItemType<AbyssShocker>())
if (itemType == ModContent.ItemType<AbyssShocker>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/AbyssShocker_mask").Value;
else if (itemType == ModContent.ItemType<Apotheosis>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/ApotheosisGlow").Value;
else if (itemType == ModContent.ItemType<DeathhailStaff>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow").Value;
else if (itemType == ModContent.ItemType<FatesReveal>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/FatesRevealGlow").Value;
else if (itemType == ModContent.ItemType<SoulPiercer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value;
else if (itemType == ModContent.ItemType<SubsumingVortex>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value;
else if (itemType == ModContent.ItemType<EssenceFlayer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow").Value;
else if (itemType == ModContent.ItemType<Excelsus>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ExcelsusGlow").Value;
else if (itemType == ModContent.ItemType<PrismaticBreaker>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value;
else if (itemType == ModContent.ItemType<TerrorBlade>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value;
else if (itemType == ModContent.ItemType<TheEnforcer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value;
else if (itemType == ModContent.ItemType<Auralis>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/AuralisGlow").Value;
else if (itemType == ModContent.ItemType<AuroraBlazer>())
@@ -69,20 +49,44 @@ namespace CalamityMod.CalPlayer.DrawLayers
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/CleansingBlazeGlow").Value;
else if (itemType == ModContent.ItemType<CosmicBolter>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/CosmicBolterGlow").Value;
else if (itemType == ModContent.ItemType<DeathhailStaff>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow").Value;
else if (itemType == ModContent.ItemType<Deathwind>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/DeathwindGlow").Value;
else if (itemType == ModContent.ItemType<EssenceFlayer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow").Value;
else if (itemType == ModContent.ItemType<EtherealSubjugator>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow").Value;
else if (itemType == ModContent.ItemType<GreatswordofJudgement>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value;
else if (itemType == ModContent.ItemType<Orderbringer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/OrderbringerGlow").Value;
else if (itemType == ModContent.ItemType<MajesticGuard>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/MajesticGuardGlow").Value;
else if (itemType == ModContent.ItemType<Excelsus>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ExcelsusGlow").Value;
else if (itemType == ModContent.ItemType<IridescentExcalibur>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/IridescentExcaliburGlow").Value;
else if (itemType == ModContent.ItemType<FatesReveal>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/FatesRevealGlow").Value;
else if (itemType == ModContent.ItemType<GrandGuardian>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GrandGuardianGlow").Value;
else if (itemType == ModContent.ItemType<GreatswordofJudgement>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value;
else if (itemType == ModContent.ItemType<MajesticGuard>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/MajesticGuardGlow").Value;
else if (itemType == ModContent.ItemType<NecroplasmicBeacon>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/NecroplasmicBeaconGlow").Value;
else if (itemType == ModContent.ItemType<Orderbringer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/OrderbringerGlow").Value;
else if (itemType == ModContent.ItemType<PlantationStaff>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/PlantationStaffGlow").Value;
else if (itemType == ModContent.ItemType<PrismaticBreaker>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value;
else if (itemType == ModContent.ItemType<SoulPiercer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value;
else if (itemType == ModContent.ItemType<SubsumingVortex>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value;
else if (itemType == ModContent.ItemType<TerraRay>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/TerraRayGlow").Value;
else if (itemType == ModContent.ItemType<TerrorBlade>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value;
else if (itemType == ModContent.ItemType<TheEnforcer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value;
if (glowMask == default)
return;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 B

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 B

After

Width:  |  Height:  |  Size: 418 B

+8 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -18,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
Item.width = 54;
Item.height = 54;
Item.width = 58;
Item.height = 58;
Item.damage = 60;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
@@ -44,6 +45,11 @@ namespace CalamityMod.Items.Weapons.Magic
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/TerraRayGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

+9 -2
View File
@@ -1,5 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee.Spears;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -16,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 44;
Item.height = 44;
Item.width = 112;
Item.height = 112;
Item.damage = 88;
Item.DamageType = DamageClass.Melee;
Item.noMelee = true;
@@ -37,6 +39,11 @@ namespace CalamityMod.Items.Weapons.Melee
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TerraLanceGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B

+2 -2
View File
@@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.width = 50;
Item.height = 112;
Item.width = 68;
Item.height = 94;
Item.damage = 48;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 20;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 1.1 KiB

+8 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -17,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
Item.width = 68;
Item.height = 22;
Item.width = 114;
Item.height = 58;
Item.damage = 78;
Item.DamageType = DamageClass.Ranged;
Item.useTime = TerraUseTime;
@@ -47,6 +48,11 @@ namespace CalamityMod.Items.Weapons.Ranged
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/TerraFlamebursterGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

+8 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -14,8 +15,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SetDefaults()
{
Item.width = 46;
Item.height = 46;
Item.width = 60;
Item.height = 64;
Item.damage = 100;
Item.knockBack = 4f;
Item.useAnimation = Item.useTime = 30;
@@ -46,6 +47,11 @@ namespace CalamityMod.Items.Weapons.Rogue
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Rogue/TerraDiskGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+8 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -34,8 +35,8 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
Item.width = 46;
Item.height = 48;
Item.width = 50;
Item.height = 50;
Item.damage = 58;
Item.DamageType = DamageClass.Summon;
Item.shoot = ModContent.ProjectileType<PlantationStaffSummon>();
@@ -58,6 +59,11 @@ namespace CalamityMod.Items.Weapons.Summon
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/PlantationStaffGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

@@ -1,6 +1,7 @@
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Projectiles.BaseProjectiles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
@@ -12,6 +13,8 @@ namespace CalamityMod.Projectiles.Ranged
public class TerraFlamebursterHoldout : BaseGunHoldoutProjectile
{
public override int AssociatedItemID => ModContent.ItemType<TerraFlameburster>();
public override string Texture => "CalamityMod/Projectiles/Ranged/TerraFlamebursterHoldout";
public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitX.RotatedBy(Projectile.rotation) * 17f - (Vector2.UnitY.RotatedBy(Projectile.rotation) * 7f * Projectile.spriteDirection);
public override float MaxOffsetLengthFromArm => 20f;
public override float OffsetXUpwards => -5f;
public override float BaseOffsetY => -5f;
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB