evil dust monster has been tamed

This commit is contained in:
Shayy committed 2023-07-24 14:31:12 -04:00
1 parent 9b146d91e8
commit fd0b1efe09
1 file changed
+20 -3
+20 -3
View File
@@ -196,12 +196,29 @@ namespace CalamityMod.CalPlayer
{
if (Player != null && !Player.dead)
{
Lighting.AddLight((int)Player.Center.X / 16, (int)Player.Center.Y / 16, 123 / 240f, 205 / 240f, 237 / 240f);
Lighting.AddLight((int)Player.Center.X / 16, (int)Player.Center.Y / 16, 123 / 245f, 205 / 245f, 237 / 245f);
if (!Player.mount.Active)
{
if (Main.rand.NextBool(10) && drawInfo.shadow == 0f)
{
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, 206, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity *= 0.5f;
drawInfo.DustCache.Add(dust);
}
if (noRogueStealth)
{
r *= 0.15f;
g *= 0.025f;
b *= 0.1f;
fullBright = true;
}
}
if (!Player.StandingStill() && !Player.mount.Active)
{
if (Main.rand.NextBool(5) && drawInfo.shadow == 0f)
if (Main.rand.NextBool(20) && drawInfo.shadow == 0f)
{
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, Main.rand.NextBool(2) ? 57 : 206, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, Main.rand.NextBool(2) ? 204 : 213, Player.velocity.X * 0.4f, Player.velocity.Y * 0.4f, 100, default, 1.5f);
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity *= 0.5f;
drawInfo.DustCache.Add(dust);