Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
7738fe4d33
7 files changed
+10
-6
No files matched your search
@@ -4498,7 +4498,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.ClearBuff(BuffID.WindPushed);
|
||||
}
|
||||
if (Player.statMana < 0)
|
||||
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
|
||||
{
|
||||
Player.AddBuff(BuffType<ManaBurn>(), 10);
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
{
|
||||
// Mana Burn VFX disabled when hih
|
||||
if (Player.statMana < 0)
|
||||
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
|
||||
{
|
||||
float compactness = Player.width * 0.6f;
|
||||
if (compactness < 10f)
|
||||
|
||||
@@ -256,7 +256,7 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
witheredWeaponHoldTime = 0;
|
||||
|
||||
if (Player.statMana < 0)
|
||||
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
|
||||
{
|
||||
totalNegativeLifeRegen -= Player.statMana/100f * Items.Accessories.ChaosStone.LostRegenPer100Mana;
|
||||
}
|
||||
|
||||
@@ -230,6 +230,8 @@ public class BrainOfCthulhuSystem : ModSystem
|
||||
|
||||
public override void PostUpdateNPCs()
|
||||
{
|
||||
if (VerletTendrils is null)
|
||||
return;
|
||||
if (!NPC.AnyNPCs(NPCID.BrainofCthulhu))
|
||||
BrainOfCthulhuAI.SummonedViaItem = false;
|
||||
|
||||
|
||||
@@ -4694,7 +4694,7 @@ namespace CalamityMod.Projectiles
|
||||
if (BloodstoneOrbValue > 0)
|
||||
Projectile.NewProjectile(projectile.GetSource_OnHit(target), projectile.Center, projectile.velocity.SafeNormalize(Vector2.Zero) * Math.Min(((projectile.velocity.Length() * projectile.MaxUpdates) / 4f), 4f) * Main.rand.NextFloat(0.75f, 1.25f), ModContent.ProjectileType<BloodstoneHealOrb>(), BloodstoneOrbValue, 0f, Main.player[projectile.owner].whoAmI);
|
||||
//Mana Burn
|
||||
if (Main.player[projectile.owner].statMana < 0)
|
||||
if (Main.player[projectile.owner].statMana < 0 && Main.player[projectile.owner].Calamity().ChaosStone)
|
||||
{
|
||||
var player = Main.player[projectile.owner];
|
||||
float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana;
|
||||
|
||||
@@ -25,6 +25,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.timeLeft = 25;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.UI.ResourceSets
|
||||
public static CalamityUIResourceSet GetManaTextureSet()
|
||||
{
|
||||
CalamityPlayer modPlayer = Main.LocalPlayer.Calamity();
|
||||
if (Main.LocalPlayer.statMana < 0)
|
||||
if (Main.LocalPlayer.statMana < 0 && Main.LocalPlayer.Calamity().ChaosStone)
|
||||
return CalamityUIResourceSets.MPManaBurn;
|
||||
if (modPlayer.pHeart)
|
||||
return CalamityUIResourceSets.MPPhantomHeart;
|
||||
@@ -196,7 +196,7 @@ namespace CalamityMod.UI.ResourceSets
|
||||
}
|
||||
}
|
||||
// This is where Mana Burn is drawn
|
||||
else if (Player.statMana < 0)
|
||||
else if (Player.statMana < 0 && Player.Calamity().ChaosStone)
|
||||
{
|
||||
var manaSet = GetManaTextureSet();
|
||||
var mana = -Player.statMana;
|
||||
|
||||
Reference in new issue
Block a user