Odd Mushroom's effects are now tiered
Tier 1 - Current Odd Mushroom. Draws 4 copies on each diagonal. Tier 2 - Draws 12 copies; 4 for the diagonals, plus 8 more at the 1, 2, 4, 5, 7, 8, 10, and 11 o'clock positions relative to the player. Tier 3 - Draws 16 copies; 4 for the diagonals, plus 12 more in a diamond shape around the player. Some copies are arranged on cardinal directions, and can visually pass through the player.
This commit is contained in:
1 parent
ebc51fbaf5
commit
a2a08d48c8
6 files changed
+151
-67
No files matched your search
@@ -963,6 +963,7 @@ namespace CalamityMod.CalPlayer
|
||||
public double pinkCandleHealFraction = 0D;
|
||||
public bool yellowCandle = false;
|
||||
public bool trippy = false;
|
||||
public int trippyLevel = 1;
|
||||
public bool amidiasBlessing = false;
|
||||
public bool bloodfinBoost = false;
|
||||
public int bloodfinTimer = 30;
|
||||
@@ -2450,6 +2451,7 @@ namespace CalamityMod.CalPlayer
|
||||
pinkCandleHealFraction = 0D;
|
||||
yellowCandle = false;
|
||||
trippy = false;
|
||||
trippyLevel = 1;
|
||||
amidiasBlessing = false;
|
||||
bloodfinBoost = false;
|
||||
bloodfinTimer = 0;
|
||||
|
||||
@@ -104,6 +104,10 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
else // This is such a stupid way to reset this but you can't just put it in ResetEffects
|
||||
{
|
||||
calamityPlayer.trippyLevel = 1;
|
||||
}
|
||||
|
||||
// TODO -- rogue stealth visuals are an utter catastrophe and should be fully destroyed on next stealth rework
|
||||
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityConfig.Instance.StealthInvisibility)
|
||||
|
||||
@@ -29,5 +29,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(3600f);
|
||||
Item.value = Item.buyPrice(0, 50, 0, 0);
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
if (player.Calamity().trippyLevel < 3)
|
||||
player.Calamity().trippyLevel++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -302,7 +302,8 @@ OddMushroom: {
|
||||
Tooltip:
|
||||
'''
|
||||
Causes you to see many fake, vibrant copies of all nearby entities
|
||||
[c/C4232C:These visual effects may be nauseating or otherwise bad for some]
|
||||
These effects become more potent as you consume more shrooms
|
||||
[c/FF232C:These visual effects may be nauseating or otherwise bad for some]
|
||||
'Trippy'
|
||||
'''
|
||||
}
|
||||
|
||||
+69
-33
@@ -6542,64 +6542,100 @@ namespace CalamityMod.NPCs
|
||||
alphaColor.G = (byte)(alphaColor.G * RGBMult);
|
||||
alphaColor.B = (byte)(alphaColor.B * RGBMult);
|
||||
alphaColor.A = (byte)(alphaColor.A * RGBMult);
|
||||
int totalAfterimages = 12;
|
||||
int totalAfterimages = Main.player[Main.myPlayer].Calamity().trippyLevel == 3 ? 16 : (Main.player[Main.myPlayer].Calamity().trippyLevel == 2 ? 12 : 4);
|
||||
for (int i = 0; i < totalAfterimages; i++)
|
||||
{
|
||||
Vector2 position = npc.position;
|
||||
float distanceFromTargetX = Math.Abs(npc.Center.X - Main.player[Main.myPlayer].Center.X);
|
||||
float distanceFromTargetY = Math.Abs(npc.Center.Y - Main.player[Main.myPlayer].Center.Y);
|
||||
if (i > 3)
|
||||
{
|
||||
distanceFromTargetX *= 0.5f;
|
||||
distanceFromTargetY *= 0.5f;
|
||||
}
|
||||
|
||||
float smallDistanceMult = 0.48f;
|
||||
float largeDistanceMult = 1.33f;
|
||||
bool whatTheFuck = Main.player[Main.myPlayer].Calamity().trippyLevel == 3;
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
case 4:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case 5:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
position.X = Main.player[Main.myPlayer].Center.X;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 6:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
case 7:
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
position.X = Main.player[Main.myPlayer].Center.X;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 11:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 4: // 1 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 5: // 4 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 6: // 7 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 7: // 10 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 8: // 11 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 9: // 2 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 10: // 5 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 11: // 8 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 12:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 13:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 14:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3838,64 +3838,99 @@ namespace CalamityMod.Projectiles
|
||||
alphaColor.G = (byte)(alphaColor.G * RGBMult);
|
||||
alphaColor.B = (byte)(alphaColor.B * RGBMult);
|
||||
alphaColor.A = (byte)(alphaColor.A * RGBMult);
|
||||
int totalAfterimages = 12;
|
||||
int totalAfterimages = Main.player[Main.myPlayer].Calamity().trippyLevel == 3 ? 16 : (Main.player[Main.myPlayer].Calamity().trippyLevel == 2 ? 12 : 4);
|
||||
for (int i = 0; i < totalAfterimages; i++)
|
||||
{
|
||||
Vector2 position = projectile.position;
|
||||
float distanceFromTargetX = Math.Abs(projectile.Center.X - Main.player[Main.myPlayer].Center.X);
|
||||
float distanceFromTargetY = Math.Abs(projectile.Center.Y - Main.player[Main.myPlayer].Center.Y);
|
||||
if (i > 3)
|
||||
{
|
||||
distanceFromTargetX *= 0.5f;
|
||||
distanceFromTargetY *= 0.5f;
|
||||
}
|
||||
|
||||
float smallDistanceMult = 0.48f;
|
||||
float largeDistanceMult = 1.33f;
|
||||
bool whatTheFuck = Main.player[Main.myPlayer].Calamity().trippyLevel == 3;
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
case 4:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case 5:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
position.X = Main.player[Main.myPlayer].Center.X;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 6:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
case 7:
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
position.X = Main.player[Main.myPlayer].Center.X;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 11:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 4: // 1 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 5: // 4 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 6: // 7 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 7: // 10 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 8: // 11 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 9: // 2 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 10: // 5 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 11: // 8 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 12:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 13:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 14:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user