figured out why it was nulling (more TP support)
This commit is contained in:
1 parent
8fa7d7c4a9
commit
b85f0d0ee9
7 files changed
+10
-3
No files matched your search
@@ -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<Texture2D>("CalamityMod/Projectiles/Boss/SporeGasPlantera2").Value;
|
||||
texture = TextureAssets.Projectile[ProjectileID.SporeGas2].Value;
|
||||
break;
|
||||
case 2:
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/SporeGasPlantera3").Value;
|
||||
texture = TextureAssets.Projectile[ProjectileID.SporeGas3].Value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 520 B |
Binary file not shown.
|
Before Width: | Height: | Size: 533 B |
Binary file not shown.
|
Before Width: | Height: | Size: 489 B |
@@ -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<Texture2D>("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;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 389 B |
Binary file not shown.
|
Before Width: | Height: | Size: 381 B |
Reference in new issue
Block a user