Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
7b3a7fd5a8
18 files changed
+34
-111
No files matched your search
@@ -173,7 +173,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Xyk vanity death animation
|
||||
if (XykVisualsBlue || XykVisualsOrange)
|
||||
{
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<XykDeathAnim>(), Main.zenithWorld ? Main.rand.Next(5000, 50000 + 1) : 0, 0, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<XykDeathAnim>(), 0, 0, Player.whoAmI);
|
||||
}
|
||||
|
||||
if (holyInferno)
|
||||
|
||||
@@ -2202,8 +2202,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (arsenalCooldown > 0)
|
||||
arsenalCooldown--;
|
||||
if (Main.zenithWorld)
|
||||
arsenalCooldown = 0;
|
||||
if (killModeCooldown > 0)
|
||||
killModeCooldown--;
|
||||
if (ascendantInsigniaCooldown > 0 && ascendantInsigniaBuffTime <= 0)
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.CalPlayer
|
||||
bool spawnChance = (Main.rand.Next(100) < ArcFlashRing.LightningSpawnPercent);
|
||||
if (arcFlashRing && spawnChance)
|
||||
{
|
||||
int damage = (int)(hit.Damage * ArcFlashRing.LightningDamageMult * (hit.Crit ? 0.5f : 1) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
int damage = (int)(hit.Damage * ArcFlashRing.LightningDamageMult * (hit.Crit ? (1 / (Player.Calamity().critDamage + 2)) : 1) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
|
||||
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
|
||||
bolt.DamageType = hit.DamageType;
|
||||
@@ -411,7 +411,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
proj.active = true; // Okay so if a projectile manually kills itself on hit, it totally breaks the bolts. to prevent this we set them to active
|
||||
|
||||
int damage = (int)(hit.Damage * ArcFlashRing.LightningDamageMult * (hit.Crit ? 0.5f : 1) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
int damage = (int)(hit.Damage * ArcFlashRing.LightningDamageMult * (hit.Crit ? (1 / (Player.Calamity().critDamage + 2)) : 1) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
|
||||
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI, (globalProj.showArcFlash ? 0 : 1));
|
||||
bolt.DamageType = hit.DamageType;
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item38, player.Center);
|
||||
|
||||
// Really jammed in GFB
|
||||
if (Main.zenithWorld)
|
||||
return Main.rand.NextBool(5);
|
||||
// Really jammed in GFB (only fires 20% of the time)
|
||||
if (Main.zenithWorld && Main.rand.Next(5) < 4)
|
||||
return false;
|
||||
|
||||
int bulletAmt = Main.rand.Next(25, 36);
|
||||
for (int index = 0; index < bulletAmt; ++index)
|
||||
|
||||
@@ -31,12 +31,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.shootSpeed = 7f;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
public override float UseSpeedMultiplier(Player player)
|
||||
{
|
||||
if (Main.zenithWorld) // It's S tier
|
||||
return 6;
|
||||
return 1f;
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) // Stealth strikes throw a cluster bomb, the throw count is increased to insure that bubble fusing works
|
||||
@@ -56,7 +50,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -978,22 +978,13 @@ ScourgeoftheSeas: {
|
||||
|
||||
SeafoamBomb: {
|
||||
DisplayName: Seafoam Bomb
|
||||
Tooltip: "[GFB]"
|
||||
TooltipNormal:
|
||||
Tooltip:
|
||||
'''
|
||||
Hurls a lightweight bomb which bursts into a foam bubble
|
||||
Foam bubbles combine in pairs to form huge bubbles
|
||||
Huge bubbles pop into small homing suds after a delay
|
||||
Stealth strikes are cluster bombs that release eight normal bombs
|
||||
'''
|
||||
TooltipGFB:
|
||||
'''
|
||||
Rapidly hurls a lightweight bomb which bursts into a foam bubble
|
||||
Foam bubbles combine in pairs to form huge bubbles
|
||||
Huge bubbles pop into small homing suds after a delay
|
||||
Stealth strikes are cluster bombs that release 38 normal bombs
|
||||
[c/256b93:'Right back in S tier!']
|
||||
'''
|
||||
}
|
||||
|
||||
SealedSingularity: {
|
||||
|
||||
@@ -48,7 +48,6 @@ AutocannonHot: OUCH! HOT!
|
||||
NoComputer: No decryption computer installed
|
||||
ArkParry: Parry!
|
||||
BurningSeaBurn: It burns...
|
||||
LightsWarning: I've gotta give you a flashing lights warning on this one
|
||||
NotSafe: Y O U A R E N O T S A F E
|
||||
HecBoop: boop!
|
||||
ClockworkTick: Tick
|
||||
|
||||
@@ -250,14 +250,14 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
// Launch the suckers
|
||||
Vector2 launchVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld);
|
||||
float launchPower = (Main.zenithWorld ? 50 : 30) * (rightClicked ? 2 : 1);
|
||||
float launchPower = 30 * (rightClicked ? 2 : 1);
|
||||
target.MoveNPC(launchVel, launchPower * 0.5f, true);
|
||||
|
||||
// Remove knockback resist, just like it used to
|
||||
target.knockBackResist = 1;
|
||||
|
||||
// Apply tile collison damage (is boosted on GFB and even further if both final bosses are gone)
|
||||
float damageMults = ((DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs) ? 5 : 1) * (Main.zenithWorld ? 77 : 1) * (rightClicked ? 3 : 1);
|
||||
// Apply tile collison damage (is boosted even further if both final bosses are gone)
|
||||
float damageMults = ((DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs) ? 5 : 1) * (rightClicked ? 3 : 1);
|
||||
int damage = (int)(Projectile.damage * damageMults);
|
||||
target.GetGlobalNPC<CalamityTileCollisionHarmNPC>().ApplyCollisionDamage(target, Owner, damage, launchVel * launchPower, 5f, true);
|
||||
}
|
||||
|
||||
@@ -36,9 +36,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public int useAnim; // Used as your use time stat since checking the held item use time gets jank if your attack speed changes mid swing
|
||||
public int storedUseAnim; // Used to check your use time when you began using the item and to reset use time when needed
|
||||
public int swingCount = 0;
|
||||
public float GFBMulti = 1; // GFB infinite charge particle and damage multiplier
|
||||
public int GFBCharge = 0; // GFB charge counter
|
||||
public bool GFBFlashWarning = false;
|
||||
public int pierceReduction = 0; // Used to reduce damage when striking many enemies with a single swing
|
||||
|
||||
public bool chargedSwing = false; // True if you have a charged swing fully charged
|
||||
@@ -135,19 +132,15 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
if (chargeTimer < chargeTimerMax && !chargedSwing)
|
||||
chargeTimer++;
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
GFBCharge++;
|
||||
}
|
||||
|
||||
Vector2 particleVel = (Owner.Center - particlePos).SafeNormalize(Vector2.UnitX) * -15;
|
||||
particlePos += Main.rand.NextVector2Circular(20, 20);
|
||||
|
||||
Dust dust2 = Dust.NewDustPerfect(particlePos, DustID.RainbowMk2, particleVel * Main.rand.NextFloat(0.2f, 1));
|
||||
dust2.scale = Main.rand.NextFloat(0.65f, 1.15f) * fadeIn * GFBMulti;
|
||||
dust2.scale = Main.rand.NextFloat(0.65f, 1.15f) * fadeIn;
|
||||
dust2.noGravity = true;
|
||||
dust2.color = Main.rand.NextBool(3) ? Color.Orange : Color.OrangeRed;
|
||||
Particle spark3 = new GlowOrbParticle(particlePos, particleVel * Main.rand.NextFloat(0.2f, 1.5f), false, 22, Main.rand.NextFloat(0.2f, 0.4f) * fadeIn * GFBMulti, Main.rand.NextBool(3) ? Color.Red : Color.OrangeRed);
|
||||
Particle spark3 = new GlowOrbParticle(particlePos, particleVel * Main.rand.NextFloat(0.2f, 1.5f), false, 22, Main.rand.NextFloat(0.2f, 0.4f) * fadeIn, Main.rand.NextBool(3) ? Color.Red : Color.OrangeRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark3);
|
||||
|
||||
if (SoundEngine.TryGetActiveSound(AudSlot, out var ChargeSound) && ChargeSound.IsPlaying)
|
||||
@@ -161,7 +154,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
AudSlot = SoundEngine.PlaySound(Hellkite.ChargeSound with { Volume = 0.01f, Pitch = 0, IsLooped = true }, Projectile.Center);
|
||||
}
|
||||
}
|
||||
if (chargeTimer == chargeTimerMax || GFBCharge >= (MathHelper.Clamp(chargeTimerMax - (GFBMulti * GFBMulti * 2), 12, 80)) && GFBCharge > 0)
|
||||
if (chargeTimer == chargeTimerMax)
|
||||
{
|
||||
particlePos = Owner.Center + (bladePos).RotatedBy(FinalRotation + MathHelper.ToRadians(-45));
|
||||
SoundEngine.PlaySound(Hellkite.FullChargeSound with { Volume = 0.9f, PitchVariance = 0.2f }, Projectile.Center);
|
||||
@@ -169,20 +162,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
useAnim = storedUseAnim / 3;
|
||||
chargeTimer++;
|
||||
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
if (chargeTimerMax - (GFBMulti * GFBMulti * 2) <= 12 && !GFBFlashWarning)
|
||||
{
|
||||
SoundStyle w = new("CalamityMod/Sounds/Custom/PlagueSounds/PBGNukeWarning");
|
||||
SoundEngine.PlaySound(w with { Volume = 0.5f, Pitch = 1f }, Projectile.Center);
|
||||
Main.NewText(CalamityUtils.GetTextValue("Misc.LightsWarning"), Color.Orange);
|
||||
GFBFlashWarning = true;
|
||||
}
|
||||
GFBMulti += 0.5f;
|
||||
Projectile.scale += 0.03f;
|
||||
GFBCharge = 0;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
Particle spark2 = new LineParticle(particlePos, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f), false, 30, Main.rand.NextFloat(0.3f, 0.8f), Main.rand.NextBool(3) ? Color.Red : Color.OrangeRed);
|
||||
@@ -232,8 +211,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
postSwing = false;
|
||||
if (AnimationProgress == 0)
|
||||
{
|
||||
GFBMulti = 1;
|
||||
GFBCharge = 0;
|
||||
Projectile.scale = 1;
|
||||
Animation = 0;
|
||||
doSwing = false;
|
||||
@@ -376,36 +353,36 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (Projectile.numHits == 0)
|
||||
{
|
||||
SoundEngine.PlaySound(Hellkite.HitSoundBig with { Volume = 1f }, Projectile.Center);
|
||||
Owner.SetScreenshake(8.5f * GFBMulti);
|
||||
Owner.SetScreenshake(8.5f);
|
||||
bool photos = CalamityClientConfig.Instance.Photosensitivity;
|
||||
|
||||
if (!photos)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Particle blastRing = new CustomPulse(target.Center, Vector2.Zero, Color.OrangeRed, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 2f * (i + 1) * GFBMulti, 1f, (GFBFlashWarning && !photos) ? (int)(18 * GFBMulti) : 18, true);
|
||||
Particle blastRing = new CustomPulse(target.Center, Vector2.Zero, Color.OrangeRed, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 2f * (i + 1), 1f, 18, true);
|
||||
GeneralParticleHandler.SpawnParticle(blastRing);
|
||||
Particle blastRing2 = new CustomPulse(target.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 1f * (i + 1) * GFBMulti, 0.5f, (GFBFlashWarning && !photos) ? (int)(18 * GFBMulti) : 18, true);
|
||||
Particle blastRing2 = new CustomPulse(target.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 1f * (i + 1), 0.5f, 18, true);
|
||||
GeneralParticleHandler.SpawnParticle(blastRing2);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Particle spark = new GlowSparkParticle(target.Center, (Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -25 * (i == 0 ? -1 : 1), false, 12, 0.08f * (photos ? 1f : GFBMulti), Color.OrangeRed, new Vector2(3, 0.8f), true);
|
||||
Particle spark = new GlowSparkParticle(target.Center, (Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -25 * (i == 0 ? -1 : 1), false, 12, 0.08f, Color.OrangeRed, new Vector2(3, 0.8f), true);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Particle spark2 = new SparkParticle(target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -40).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), true, 40, Main.rand.NextFloat(0.5f, 1.2f) * GFBMulti, Main.rand.NextBool(3) ? Color.Orange : Color.OrangeRed);
|
||||
Particle spark2 = new SparkParticle(target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -40).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), true, 40, Main.rand.NextFloat(0.5f, 1.2f), Main.rand.NextBool(3) ? Color.Orange : Color.OrangeRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Particle spark3 = new AltSparkParticle(target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -40).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), true, 40, Main.rand.NextFloat(0.5f, 1.2f) * GFBMulti, Color.DarkRed);
|
||||
Particle spark3 = new AltSparkParticle(target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -40).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f), true, 40, Main.rand.NextFloat(0.5f, 1.2f), Color.DarkRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark3);
|
||||
}
|
||||
Dust dust2 = Dust.NewDustPerfect(target.Center, DustID.FireworksRGB, new Vector2(20, 20).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1));
|
||||
dust2.scale = Main.rand.NextFloat(0.55f, 0.85f) * GFBMulti;
|
||||
dust2.scale = Main.rand.NextFloat(0.55f, 0.85f);
|
||||
dust2.noGravity = true;
|
||||
dust2.color = Main.rand.NextBool(3) ? Color.Orange : Color.OrangeRed;
|
||||
}
|
||||
@@ -424,7 +401,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
float minMult = 0.25f;
|
||||
int hitsToMinMult = 10;
|
||||
float damageMult = Utils.Remap(pierceReduction, 0, hitsToMinMult, 1, minMult, true);
|
||||
modifiers.SourceDamage *= (chargedSwing ? (2.9f * GFBMulti + critDamage) : 1) * damageMult;
|
||||
modifiers.SourceDamage *= (chargedSwing ? (2.9f + critDamage) : 1) * damageMult;
|
||||
}
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
SoundEngine.PlaySound(bigShot with { PitchVariance = 0.15f, Volume = 0.75f }, Projectile.Center);
|
||||
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 6).RotatedBy(-2.3f * Projectile.direction), ModContent.ProjectileType<DragonsBreathMag>(), Main.zenithWorld ? 250000 : 1, Projectile.knockBack, Projectile.owner, 1);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 6).RotatedBy(-2.3f * Projectile.direction), ModContent.ProjectileType<DragonsBreathMag>(), 1, Projectile.knockBack, Projectile.owner, 1);
|
||||
hasLaunchedMag = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
dust.alpha = Main.rand.Next(90, 220 + 1);
|
||||
}
|
||||
}
|
||||
for (int k = 0; k < (int)((Main.zenithWorld ? 100 : 20) * (isClusterRocket ? 1.5f : 1)); k++)
|
||||
for (int k = 0; k < (isClusterRocket ? 30 : 20); k++)
|
||||
{
|
||||
int BEES = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 0.8f), ModContent.ProjectileType<BasicPlagueBee>(), (int)(Projectile.damage * (isClusterRocket ? 0.03f : 0.04f)), 0f, Projectile.owner, 0f, 0f, isClusterRocket ? 2f : 1f);
|
||||
if (BEES.WithinBounds(Main.maxProjectiles))
|
||||
|
||||
@@ -27,12 +27,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
public override void AI()
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
Projectile.hostile = true;
|
||||
Projectile.friendly = true;
|
||||
}
|
||||
|
||||
if (Projectile.ai[0] == 1)
|
||||
{
|
||||
ExplosionRadius = 800;
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
internal void Explode(bool big)
|
||||
{
|
||||
float sizeBonus = big ? Main.zenithWorld ? 6 : 2 : 1;
|
||||
float sizeBonus = big ? 2 : 1;
|
||||
float bigExplosionDamage = 3f;
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
Particle orb = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen with { A = 0 }, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0f, 0.82f * sizeBonus, 11);
|
||||
@@ -164,9 +164,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
orb2.DrawLayer = GeneralDrawLayer.AfterEverything;
|
||||
|
||||
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<DestructionExplosion>(), (int)(Projectile.damage * (big ? Main.zenithWorld ? bigExplosionDamage * 4f : bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<DestructionExplosion>(), (int)(Projectile.damage * (big ? bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner);
|
||||
|
||||
if (!Main.zenithWorld || !big)
|
||||
if (!big)
|
||||
{
|
||||
SoundStyle explo = new("CalamityMod/Sounds/Item/MeldExplosion");
|
||||
SoundEngine.PlaySound(explo with { Volume = 0.9f }, Projectile.Center);
|
||||
@@ -179,15 +179,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
if (big)
|
||||
{
|
||||
if (!Main.zenithWorld)
|
||||
{
|
||||
SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor");
|
||||
SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
|
||||
SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact");
|
||||
SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
}
|
||||
SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor");
|
||||
SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
|
||||
SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact");
|
||||
SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
}
|
||||
|
||||
Particle bolt2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen, "CalamityMod/Particles/BloomRing", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 2.56f * 1.3f * sizeBonus, 18);
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
float throwCount = Projectile.localAI[0];
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
for (int i = 0; i < (Main.zenithWorld ? 38 : 8); i++)
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
throwCount++;
|
||||
Vector2 vel = (Vector2.UnitY * -5).RotatedByRandom(0.6f) * Main.rand.NextFloat(0.8f, 1.3f);
|
||||
|
||||
@@ -142,12 +142,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
// Boost dmg in proportion to money, caps at 1 plat. Much higher cap in GFB cuz it would be funny
|
||||
// Boost dmg in proportion to money, caps at 1 plat.
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
double money = Utils.CoinsCount(out bool overflow, player.inventory);
|
||||
double cap = Main.zenithWorld ? 100000000 : 1000000;
|
||||
double cap = 1000000;
|
||||
if (money >= cap)
|
||||
money = cap;
|
||||
if (money != 0)
|
||||
|
||||
@@ -116,15 +116,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
if (currentFrame == 13)
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
if (Vector2.Distance(Owner.Center, Projectile.Center) < radius)
|
||||
{
|
||||
Vector2 velToApply = Owner.Center.DirectionFrom(Projectile.Center).SafeNormalize(Vector2.UnitX) * 30;
|
||||
Owner.velocity = velToApply + (velToApply.Y <= 0 ? new Vector2(0, -15) : Vector2.Zero);
|
||||
}
|
||||
}
|
||||
|
||||
Projectile.velocity = Vector2.Zero;
|
||||
Owner.SetScreenshake(5f);
|
||||
|
||||
@@ -166,13 +157,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
|
||||
}
|
||||
if (currentFrame < 13) // suck in enemies, or you if it's GFB
|
||||
if (currentFrame < 13) // suck in enemies
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
if (Vector2.Distance(Owner.Center, Projectile.Center) > 40 && Vector2.Distance(Owner.Center, Projectile.Center) < 600)
|
||||
Owner.Center += Owner.Center.DirectionTo(Projectile.Center).SafeNormalize(Vector2.UnitX) * 22;
|
||||
}
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC target = Main.npc[i];
|
||||
|
||||
@@ -134,12 +134,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (time == 80)
|
||||
{
|
||||
radius = 2500;
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
Projectile.hostile = true;
|
||||
Projectile.friendly = true;
|
||||
Projectile.damage *= 100;
|
||||
}
|
||||
|
||||
SoundEngine.PlaySound(Supernova.StealthExplosionSound with { Pitch = Projectile.ai[2] }, Projectile.Center);
|
||||
Projectile.numHits = 0;
|
||||
|
||||
@@ -135,11 +135,6 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
case 5: attackSpeed = LuxorsGift.rogueAttackSpeed; attackDamage = LuxorsGift.rogueDamage; projType = ModContent.ProjectileType<LuxorsGiftRogue>(); break;
|
||||
}
|
||||
float powerMult = Utils.GetLerpValue(-120, 140, attackSpeed, true); // An intensity multiplier based on the fire rate of the mode
|
||||
if (Main.zenithWorld) // Just like old times
|
||||
{
|
||||
attackSpeed = 0;
|
||||
attackDamage = Math.Max(1, (int)(Owner.HeldItem.damage * Utils.Remap(Owner.HeldItem.useAnimation, 3, 120, 0.025f, 1f, false)));
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)(20 * powerMult); i++) // Firing dust
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user