diff --git a/Buffs/StatBuffs/AbyssalMadness.cs b/Buffs/StatBuffs/AbyssalMadness.cs
index 1851277c44..60f92a0141 100644
--- a/Buffs/StatBuffs/AbyssalMadness.cs
+++ b/Buffs/StatBuffs/AbyssalMadness.cs
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
- player.Calamity().omegaBlueHentai = true;
+ player.Calamity().omegaBlueAbyssalMadness = true;
}
}
}
diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs
index d3b0f14233..9eb2575c40 100644
--- a/CalPlayer/CalamityPlayer.cs
+++ b/CalPlayer/CalamityPlayer.cs
@@ -1161,7 +1161,7 @@ namespace CalamityMod.CalPlayer
public bool auricSet = false;
public bool omegaBlueChestplate = false;
public bool omegaBlueSet = false;
- public bool omegaBlueHentai = false;
+ public bool omegaBlueAbyssalMadness = false;
/// Aerospec armor's summoner set bonus minion.
public bool valkyrie = false;
/// Statigel armor's summoner set bonus minion.
@@ -2110,7 +2110,7 @@ namespace CalamityMod.CalPlayer
omegaBlueChestplate = false;
omegaBlueSet = false;
- omegaBlueHentai = false;
+ omegaBlueAbyssalMadness = false;
molluskHelmet = false;
molluskChest = false;
diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs
index a5428f552b..fa5fbb5d6f 100644
--- a/CalPlayer/CalamityPlayerMiscEffects.cs
+++ b/CalPlayer/CalamityPlayerMiscEffects.cs
@@ -1409,7 +1409,7 @@ namespace CalamityMod.CalPlayer
{
if (!tentaclesPresent[i])
{
- int damage = (int)Player.GetBestClassDamage().ApplyTo(390);
+ int damage = (int)Player.GetBestClassDamage().ApplyTo(350);
var source = Player.GetSource_FromThis(OmegaBlueHelmet.TentacleEntitySourceContext);
Vector2 vel = new Vector2(Main.rand.Next(-13, 14), Main.rand.Next(-13, 14)) * 0.25f;
@@ -1420,10 +1420,10 @@ namespace CalamityMod.CalPlayer
float damageUp = 0.1f;
int critUp = 10;
- if (omegaBlueHentai)
+ if (omegaBlueAbyssalMadness)
{
- damageUp *= 2f;
- critUp *= 2;
+ damageUp += 0.1f;
+ critUp += 10;
}
Player.GetDamage() += damageUp;
Player.GetCritChance() += critUp;
diff --git a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
index f431d2621b..b40932ff94 100644
--- a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
+++ b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs
@@ -70,7 +70,6 @@ namespace CalamityMod.Items.Armor.OmegaBlue
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
var mp = player.Calamity();
- player.GetArmorPenetration() += 15;
player.maxMinions += 2;
mp.wearingRogueArmor = true;
mp.omegaBlueSet = true;
diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson
index 614791f749..022993b838 100644
--- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson
@@ -383,11 +383,11 @@ OmegaBlueHelmet: {
'''
SetBonus:
'''
- Increases armor penetration by 15
10% increased damage and critical strike chance and +2 max minions
Short-ranged tentacles heal you by sucking enemy life
Press {0} to activate abyssal madness for 5 seconds
- Abyssal madness increases damage, critical strike chance, and tentacle aggression/range
+ Abyssal madness increases damage and critical strike chance by 10%
+ It also increases tentacle aggression and range, and allows them to critically strike
This effect has a 25 second cooldown
'''
}
diff --git a/Projectiles/Typeless/OmegaBlueTentacle.cs b/Projectiles/Typeless/OmegaBlueTentacle.cs
index 3bb6f28ae9..ef4a20ab8e 100644
--- a/Projectiles/Typeless/OmegaBlueTentacle.cs
+++ b/Projectiles/Typeless/OmegaBlueTentacle.cs
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Typeless
public new string LocalizationCategory => "Projectiles.Typeless";
public bool initSegments = false;
public Vector2[] segment = new Vector2[6];
+ private Player Owner => Main.player[Projectile.owner];
public override void SetDefaults()
{
@@ -43,18 +44,17 @@ namespace CalamityMod.Projectiles.Typeless
public override void AI()
{
- Player player = Main.player[Projectile.owner];
- bool hentai = player.Calamity().omegaBlueHentai;
- if (player.active && player.Calamity().omegaBlueSet)
+ bool madness = Owner.Calamity().omegaBlueAbyssalMadness;
+ if (Owner.active && Owner.Calamity().omegaBlueSet)
Projectile.timeLeft = 8;
- //tentacle head movement (homing)
- Vector2 playerVel = player.position - player.oldPosition;
+ // Tentacle head movement (homing)
+ Vector2 playerVel = Owner.position - Owner.oldPosition;
Projectile.position += playerVel;
Projectile.ai[0]++;
if (Projectile.ai[0] >= 0f)
{
- Vector2 home = player.Center + new Vector2(50, 0).RotatedBy(MathHelper.ToRadians(60) * Projectile.ai[1]);
+ Vector2 home = Owner.Center + new Vector2(50, 0).RotatedBy(MathHelper.ToRadians(60) * Projectile.ai[1]);
Vector2 distance = home - Projectile.Center;
float range = distance.Length();
distance.Normalize();
@@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Typeless
{
if (range > 13f)
{
- Projectile.ai[0] = -1f; //if in fast mode, stay fast until back in range
+ Projectile.ai[0] = -1f; // If in fast mode, stay fast until back in range
if (range > 1300f)
{
Projectile.Kill();
@@ -71,8 +71,8 @@ namespace CalamityMod.Projectiles.Typeless
}
else
{
- if (hentai)
- Projectile.ai[0] = 120f;//45f + Main.rand.Next(45);
+ if (madness)
+ Projectile.ai[0] = 120f;
Projectile.velocity.Normalize();
Projectile.velocity *= 3f + Main.rand.NextFloat(3f);
Projectile.netUpdate = true;
@@ -82,6 +82,7 @@ namespace CalamityMod.Projectiles.Typeless
{
distance /= 8f;
}
+
if (range > 120f) //switch to fast return mode
{
Projectile.ai[0] = -1f;
@@ -94,7 +95,7 @@ namespace CalamityMod.Projectiles.Typeless
if (Projectile.ai[0] > 120f) //attack nearby enemy
{
Projectile.ai[0] = 10 + Main.rand.Next(10);
- float maxDistance = hentai ? 900f : 600f;
+ float maxDistance = madness ? 900f : 600f;
int target = -1;
foreach (NPC npc in Main.ActiveNPCs)
{
@@ -110,11 +111,7 @@ namespace CalamityMod.Projectiles.Typeless
}
if (target != -1)
{
- Projectile.velocity = Main.npc[target].Center - Projectile.Center;
- Projectile.velocity.Normalize();
- Projectile.velocity *= 13f;
- Projectile.velocity += Main.npc[target].velocity / 2f;
- Projectile.velocity -= playerVel / 2f;
+ Projectile.velocity = Vector2.Normalize(Main.npc[target].Center - Projectile.Center) * 13f + (Main.npc[target].velocity / 2f) - (playerVel / 2f);
Projectile.ai[0] *= -1f;
}
Projectile.netUpdate = true;
@@ -122,14 +119,14 @@ namespace CalamityMod.Projectiles.Typeless
}
//tentacle segment updates
- segment[0] = player.Center;
+ segment[0] = Owner.Center;
for (int i = 1; i < 5; i++)
{
MoveSegment(segment[i - 1], ref segment[i], segment[i + 1]);
}
MoveSegment(segment[4], ref segment[5], Projectile.Center + Projectile.velocity);
- if (hentai)
+ if (madness)
{
if (Projectile.ai[0] != -1f)
Projectile.ai[0]++;
@@ -138,19 +135,15 @@ namespace CalamityMod.Projectiles.Typeless
Vector2 dustPos = Projectile.position + Projectile.velocity;
Vector2 tickVel = dustPos - Projectile.oldPosition; //playerVel + projectile.velocity * 2f;
dustPos += new Vector2(Projectile.width / 2, 0).RotatedBy(Projectile.rotation);
- dustPos.X -= 4;
- dustPos.X += Projectile.width / 2;
- dustPos.Y -= 4;
- dustPos.Y += Projectile.height / 2;
+ dustPos += new Vector2(Projectile.width / 2 - 4, Projectile.height / 2 - 4);
const float factor = 3f;
int limit = (int)(tickVel.Length() / factor);
if (limit == 0)
{
- int d = Dust.NewDust(dustPos, 0, 0, DustID.PurificationPowder, 0, 0, 100, Color.Transparent, 0.9f);
- Main.dust[d].noGravity = true;
- Main.dust[d].noLight = true;
- Main.dust[d].fadeIn = 1f;
- Main.dust[d].velocity = Vector2.Zero;
+ Dust d = Dust.NewDustPerfect(dustPos, DustID.PurificationPowder, Vector2.Zero, 100, Color.Transparent, 0.9f);
+ d.noGravity = true;
+ d.noLight = true;
+ d.fadeIn = 1f;
}
else
{
@@ -158,12 +151,11 @@ namespace CalamityMod.Projectiles.Typeless
tickVel *= factor;
for (int i = 0; i <= limit; i++)
{
- int d = Dust.NewDust(dustPos, 0, 0, DustID.PurificationPowder, 0, 0, 100, Color.Transparent, 0.9f);
- Main.dust[d].noGravity = true;
- Main.dust[d].noLight = true;
- Main.dust[d].fadeIn = 1f;
- Main.dust[d].position -= tickVel * i;
- Main.dust[d].velocity = Vector2.Zero;
+ Dust d = Dust.NewDustPerfect(dustPos, DustID.PurificationPowder, Vector2.Zero, 100, Color.Transparent, 0.9f);
+ d.noGravity = true;
+ d.noLight = true;
+ d.fadeIn = 1f;
+ d.position -= tickVel * i;
}
}
}
@@ -177,13 +169,13 @@ namespace CalamityMod.Projectiles.Typeless
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
- if (Main.player[Projectile.owner].Calamity().omegaBlueHentai)
+ if (Owner.Calamity().omegaBlueAbyssalMadness)
modifiers.SetCrit();
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
- if (Projectile.owner == Main.myPlayer && Main.player[Projectile.owner].lifeSteal > 0f && !Main.player[Projectile.owner].moonLeech && target.lifeMax > 5)
+ if (Projectile.owner == Main.myPlayer && Owner.lifeSteal > 0f && !Owner.moonLeech && target.lifeMax > 5)
{
int healAmount = 10 * damageDone / Projectile.damage; //should always be around max, less if enemy has defense/DR
if (healAmount > BalancingConstants.LifeStealCap)
@@ -191,9 +183,9 @@ namespace CalamityMod.Projectiles.Typeless
if (healAmount > 0)
{
- Main.player[Projectile.owner].lifeSteal -= healAmount;
- if (Main.player[Projectile.owner].Calamity().omegaBlueHentai) //hentai always crits, this makes it have same lifesteal delay
- Main.player[Projectile.owner].lifeSteal += healAmount / 2;
+ Owner.lifeSteal -= healAmount;
+ if (Owner.Calamity().omegaBlueAbyssalMadness) // Always crits during Abyssal Madness, this makes it have same lifesteal delay
+ Owner.lifeSteal += healAmount / 2;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ProjectileID.SpiritHeal, 0, 0f, Projectile.owner, Projectile.owner, healAmount);
}
@@ -205,7 +197,7 @@ namespace CalamityMod.Projectiles.Typeless
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
- GameShaders.Armor.ApplySecondary(Main.player[Projectile.owner].cBody, Main.player[Projectile.owner], new DrawData?());
+ GameShaders.Armor.ApplySecondary(Owner.cBody, Owner, new DrawData?());
Texture2D texture2D13 = Terraria.GameContent.TextureAssets.Projectile[Type].Value;
Texture2D segmentSprite = ModContent.Request("CalamityMod/Projectiles/Typeless/OmegaBlueTentacleSegment1").Value;
for (int i = 0; i < 5; i++)