hallowed rune no longer vores enemies
This commit is contained in:
1 parent
bda71dba1d
commit
4d90c79be9
4 files changed
+16
-11
No files matched your search
@@ -465,6 +465,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool starbusterCore = false;
|
||||
public bool starTaintedGenerator = false;
|
||||
public bool hallowedRune = false;
|
||||
public int hallowedRuneCooldown = 0;
|
||||
public bool silvaWings = false;
|
||||
public int icicleCooldown = 0;
|
||||
|
||||
@@ -1686,6 +1687,7 @@ namespace CalamityMod.CalPlayer
|
||||
sandCloakCooldown = false;
|
||||
icicleCooldown = 0;
|
||||
statisTimer = 0;
|
||||
hallowedRuneCooldown = 0;
|
||||
|
||||
alcoholPoisoning = false;
|
||||
shadowflame = false;
|
||||
|
||||
@@ -918,6 +918,8 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.icicleCooldown--;
|
||||
if (modPlayer.statisTimer > 0 && player.dashDelay >= 0)
|
||||
modPlayer.statisTimer = 0;
|
||||
if (modPlayer.hallowedRuneCooldown > 0)
|
||||
modPlayer.hallowedRuneCooldown--;
|
||||
|
||||
// Silva invincibility effects
|
||||
if (modPlayer.silvaCountdown > 0 && modPlayer.hasSilvaEffect && modPlayer.silvaSet)
|
||||
|
||||
@@ -3640,17 +3640,6 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.hallowedPower)
|
||||
{
|
||||
if (isSummon && Main.rand.NextBool(4))
|
||||
{
|
||||
Vector2 spawnPosition = npc.Center - new Vector2(0f, 920f).RotatedByRandom(0.3f);
|
||||
float speed = Main.rand.NextFloat(17f, 23f);
|
||||
Projectile.NewProjectile(spawnPosition, Vector2.Normalize(npc.Center - spawnPosition) * speed,
|
||||
ModContent.ProjectileType<HallowedStarSummon>(), projectile.damage, 3f, projectile.owner);
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.corrosiveSpine && projectile.Calamity().rogue)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
|
||||
@@ -1580,6 +1580,18 @@ namespace CalamityMod.Projectiles
|
||||
modPlayer.jellyDmg += (float)num;
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.hallowedPower)
|
||||
{
|
||||
if (Main.rand.NextBool(3) && modPlayer.hallowedRuneCooldown <= 0)
|
||||
{
|
||||
modPlayer.hallowedRuneCooldown = 60;
|
||||
Vector2 spawnPosition = npc.Center - new Vector2(0f, 920f).RotatedByRandom(0.3f);
|
||||
float speed = Main.rand.NextFloat(17f, 23f);
|
||||
Projectile.NewProjectile(spawnPosition, Vector2.Normalize(npc.Center - spawnPosition) * speed,
|
||||
ModContent.ProjectileType<HallowedStarSummon>(), projectile.damage / 3, 3f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user