Penumbra dust adjustment

This commit is contained in:
Storm2103 committed 2023-12-31 16:58:46 -06:00
1 parent dbe49a56d2
commit 8412c82c04
3 files changed
+9 -12

No files matched your search

+3 -6
View File
@@ -9,17 +9,14 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class Cinquedea : RogueWeapon
{
public static int BaseDamage = 36;
public static float Knockback = 5f;
public static float Speed = 8f;
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.damage = BaseDamage;
Item.damage = 36;
Item.rare = ItemRarityID.Orange;
Item.knockBack = Knockback;
Item.knockBack = 5;
Item.autoReuse = true;
Item.useTime = 15;
Item.useAnimation = 15;
@@ -28,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.noMelee = true;
Item.noUseGraphic = true;
Item.shoot = ModContent.ProjectileType<CinquedeaProj>();
Item.shootSpeed = Speed;
Item.shootSpeed = 8;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.DamageType = RogueDamageClass.Instance;
}
+4 -4
View File
@@ -57,16 +57,16 @@ namespace CalamityMod.Projectiles.Rogue
Projectile.rotation = (Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi)) + (MathHelper.ToRadians(180)*Projectile.direction);
//Dust
float dfreq = Projectile.Calamity().stealthStrike ? 4f : 2f;
float dfreq = Projectile.Calamity().stealthStrike ? 8f : 4f;
if (Projectile.ai[0] == dfreq)
{
Vector2 dustspeed = Projectile.velocity * Main.rand.NextFloat(0.5f,0.8f);
int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.4f);
int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.4f);
Main.dust[d].velocity = dustspeed;
if (Projectile.Calamity().stealthStrike)
{
Vector2 dustspeed2 = new Vector2 (Main.rand.NextFloat(-3f,3f),Main.rand.NextFloat(-3f,3f));
int d2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed2.X, dustspeed2.Y, 0, new Color(38, 30, 43), 1.3f);
int d2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed2.X, dustspeed2.Y, 0, new Color(38, 30, 43), 1.3f);
Main.dust[d2].velocity = dustspeed2;
}
Projectile.ai[0] = 0f;
@@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Rogue
for (int i = 0; i < maxDust; i++)
{
Vector2 dustspeed = new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-6f, 6f));
int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.6f);
int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.6f);
}
SoundEngine.PlaySound(SoundID.Item14, Projectile.Center);
Projectile.width = 110;
+2 -2
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue
int trailDust = 1;
for (int i = 0; i < trailDust; ++i)
{
int dustID = DustID.Shadowflame;
int dustID = 54; //Used by Wraiths and other shadowy stuff
int idx = Dust.NewDust(Projectile.position - Projectile.velocity, Projectile.width, Projectile.height, dustID,0f,0f, 0, new Color(38, 30, 43));
Main.dust[idx].noGravity = true;
@@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Rogue
int onHitDust = Main.rand.Next(6, 11);
for (int i = 0; i < onHitDust; ++i)
{
int dustID = DustID.Shadowflame;
int dustID = 54;
int idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustID, 0f, 0f,0, new Color(38, 30, 43));
Main.dust[idx].noGravity = true;