diff --git a/Projectiles/Boss/SporeGasPlantera.cs b/Projectiles/Boss/SporeGasPlantera.cs index ac7d85083d..99555ff1b0 100644 --- a/Projectiles/Boss/SporeGasPlantera.cs +++ b/Projectiles/Boss/SporeGasPlantera.cs @@ -3,6 +3,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent; using Terraria.ID; using Terraria.ModLoader; @@ -11,10 +12,13 @@ namespace CalamityMod.Projectiles.Boss public class SporeGasPlantera : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Boss"; + public override string Texture => "Terraria/Images/Projectile_" + ProjectileID.SporeGas; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Type] = 2; ProjectileID.Sets.TrailingMode[Type] = 0; + Main.instance.LoadProjectile(ProjectileID.SporeGas2); + Main.instance.LoadProjectile(ProjectileID.SporeGas3); } public override void SetDefaults() @@ -86,10 +90,10 @@ namespace CalamityMod.Projectiles.Boss case 0: break; case 1: - texture = ModContent.Request("CalamityMod/Projectiles/Boss/SporeGasPlantera2").Value; + texture = TextureAssets.Projectile[ProjectileID.SporeGas2].Value; break; case 2: - texture = ModContent.Request("CalamityMod/Projectiles/Boss/SporeGasPlantera3").Value; + texture = TextureAssets.Projectile[ProjectileID.SporeGas3].Value; break; default: break; diff --git a/Projectiles/Boss/SporeGasPlantera.png b/Projectiles/Boss/SporeGasPlantera.png deleted file mode 100644 index d96df4734e..0000000000 Binary files a/Projectiles/Boss/SporeGasPlantera.png and /dev/null differ diff --git a/Projectiles/Boss/SporeGasPlantera2.png b/Projectiles/Boss/SporeGasPlantera2.png deleted file mode 100644 index 43de36f76c..0000000000 Binary files a/Projectiles/Boss/SporeGasPlantera2.png and /dev/null differ diff --git a/Projectiles/Boss/SporeGasPlantera3.png b/Projectiles/Boss/SporeGasPlantera3.png deleted file mode 100644 index 031824c267..0000000000 Binary files a/Projectiles/Boss/SporeGasPlantera3.png and /dev/null differ diff --git a/Projectiles/Summon/PlantationStaffSeed.cs b/Projectiles/Summon/PlantationStaffSeed.cs index afec1f3ece..b454f87a61 100644 --- a/Projectiles/Summon/PlantationStaffSeed.cs +++ b/Projectiles/Summon/PlantationStaffSeed.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent; using Terraria.ID; using Terraria.ModLoader; @@ -9,6 +10,7 @@ namespace CalamityMod.Projectiles.Summon public class PlantationStaffSeed : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "Terraria/Images/Projectile_" + ProjectileID.SeedPlantera; public ref float RandomTexture => ref Projectile.ai[0]; @@ -18,6 +20,7 @@ namespace CalamityMod.Projectiles.Summon ProjectileID.Sets.MinionShot[Type] = true; ProjectileID.Sets.TrailingMode[Type] = 2; ProjectileID.Sets.TrailCacheLength[Type] = 3; + Main.instance.LoadProjectile(ProjectileID.PoisonSeedPlantera); } public override void SetDefaults() @@ -54,7 +57,7 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { - Texture2D texture = (RandomTexture == 0f) ? Terraria.GameContent.TextureAssets.Projectile[Type].Value : ModContent.Request("CalamityMod/Projectiles/Summon/PlantationStaffSeed2").Value; + Texture2D texture = (RandomTexture == 0f) ? Terraria.GameContent.TextureAssets.Projectile[ProjectileID.PoisonSeedPlantera].Value : TextureAssets.Projectile[Type].Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); Vector2 origin = frame.Size() * 0.5f; diff --git a/Projectiles/Summon/PlantationStaffSeed.png b/Projectiles/Summon/PlantationStaffSeed.png deleted file mode 100644 index 14abac4751..0000000000 Binary files a/Projectiles/Summon/PlantationStaffSeed.png and /dev/null differ diff --git a/Projectiles/Summon/PlantationStaffSeed2.png b/Projectiles/Summon/PlantationStaffSeed2.png deleted file mode 100644 index 56d10c0cdd..0000000000 Binary files a/Projectiles/Summon/PlantationStaffSeed2.png and /dev/null differ