1 - Smaller Lunic Corps shield to show that it's both stronger and more efficient (more compact).
2 - Glowmask for Plague Tainted SMG Drones.
This commit is contained in:
1 parent
76a0f0ae2f
commit
39863cda2a
6 files changed
+30
-5
No files matched your search
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
if (modPlayer.masterChefShieldDurability <= 0)
|
||||
continue;
|
||||
|
||||
float scale = 0.15f + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f));
|
||||
float scale = 0.1f + 0.02f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f));
|
||||
|
||||
if (playerFound == false)
|
||||
{
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 843 B |
@@ -55,11 +55,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
public override void PostDraw(Color lightColor)
|
||||
{
|
||||
Vector2 center = new Vector2(Projectile.Center.X, Projectile.Center.Y);
|
||||
Vector2 vector11 = new Vector2(ModContent.Request<Texture2D>(Texture).Value.Width / 2, ModContent.Request<Texture2D>(Texture).Value.Height / Main.projFrames[Projectile.type] / 2);
|
||||
Vector2 vector11 = new Vector2(ModContent.Request<Texture2D>(Texture).Value.Width / 2, ModContent.Request<Texture2D>(Texture).Value.Height / 2);
|
||||
Vector2 vector = center - Main.screenPosition;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Height / Main.projFrames[Projectile.type]) * 1f / 2f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 0f + 4f + Projectile.gfxOffY);
|
||||
Color color = new Color(127 - Projectile.alpha, 127 - Projectile.alpha, 127 - Projectile.alpha, 0).MultiplyRGBA(Color.Red);
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value.Height) * 1f / 2f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + Projectile.gfxOffY);
|
||||
Color color = Color.White;
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/PlagueStingerGoliathGlow").Value, vector,
|
||||
null, color, Projectile.rotation, vector11, Projectile.scale, SpriteEffects.None, 0);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
@@ -87,6 +88,29 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Projectile.velocity = Projectile.SuperhomeTowardsTarget(target, 12f, 15f);
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>(Texture).Value;
|
||||
int height = texture.Height / Main.projFrames[Projectile.type];
|
||||
int drawStart = height * Projectile.frame;
|
||||
Vector2 origin = Projectile.Size / 2;
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostDraw(Color lightColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>(Texture).Value;
|
||||
int height = texture.Height / Main.projFrames[Projectile.type];
|
||||
int drawStart = height * Projectile.frame;
|
||||
Vector2 origin = Projectile.Size / 2;
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (Projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/PlagueTaintedDroneGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0);
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 519 B |
@@ -84,6 +84,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
lightColor = Color.White;
|
||||
CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user