Rotten Brain on hurt effect changes
This commit is contained in:
1 parent
2952393f13
commit
96b2ae1cde
2 files changed
+8
-6
No files matched your search
@@ -2643,7 +2643,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (rBrain)
|
||||
{
|
||||
if (!CalamityUtils.AnyProjectiles(ModContent.ProjectileType<ShadeNimbus>()))
|
||||
if (!(CalamityUtils.AnyProjectiles(ModContent.ProjectileType<ShadeNimbus>()) || CalamityUtils.AnyProjectiles(ModContent.ProjectileType<ShadeNimbusSpawner>())))
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<RottenBrain>()));
|
||||
int effectStrength = amalgam ? 3 : aBrain ? 2 : 1;
|
||||
|
||||
@@ -45,13 +45,15 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
|
||||
// Spawn shade rain clouds out to the sides
|
||||
// Number of clouds and their damage scale based on what accessory in the upgrade path triggered it (damage is set when the spawner is created)
|
||||
int cloudAmt = EffectStrength == 3f ? 10 : EffectStrength == 2f ? 6 : 4;
|
||||
for (int c = -(cloudAmt / 2); c < cloudAmt / 2; c++)
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
Vector2 cloudVelocity = Vector2.UnitX.RotatedByRandom(MathHelper.Pi / 72f) * Main.rand.NextFloat(4.5f, 11f);
|
||||
cloudVelocity *= c < 0f ? -1f : 1f;
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
int cloudAmt = EffectStrength == 3f ? 11 : EffectStrength == 2f ? 7 : 5;
|
||||
for (int c = -(cloudAmt - 1) / 2; c <= (cloudAmt - 1) / 2; c++)
|
||||
{
|
||||
Vector2 cloudVelocity = c == 0 ? Vector2.Zero : Vector2.UnitX.RotatedByRandom(MathHelper.Pi / 72f) * Main.rand.NextFloat(3f, 9.5f);
|
||||
cloudVelocity *= c < 0f ? -1f : 1f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, cloudVelocity, ModContent.ProjectileType<ShadeNimbus>(), Projectile.damage, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user