renamed all sulfurs in the code to sulphur
because I'm nitpicky shouldn't have any ingame effect/changelogs
This commit is contained in:
1 parent
c48114b759
commit
e3d18efb7d
121 files changed
+188
-188
No files matched your search
@@ -714,8 +714,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool frostSet = false; //vanilla armor
|
||||
public bool victideSet = false;
|
||||
public bool victideSummoner = false;
|
||||
public bool sulfurSet = false;
|
||||
public bool sulfurJump = false;
|
||||
public bool sulphurSet = false;
|
||||
public bool sulphurJump = false;
|
||||
public int sulphurBubbleCooldown = 0;
|
||||
public bool aeroSet = false;
|
||||
public bool statigelSet = false;
|
||||
@@ -1823,7 +1823,7 @@ namespace CalamityMod.CalPlayer
|
||||
victideSet = false;
|
||||
victideSummoner = false;
|
||||
|
||||
sulfurSet = false;
|
||||
sulphurSet = false;
|
||||
|
||||
aeroSet = false;
|
||||
|
||||
@@ -2550,7 +2550,7 @@ namespace CalamityMod.CalPlayer
|
||||
frostSet = false; //vanilla armor
|
||||
victideSet = false;
|
||||
aeroSet = false;
|
||||
sulfurSet = false;
|
||||
sulphurSet = false;
|
||||
statigelSet = false;
|
||||
tarraSet = false;
|
||||
tarraMelee = false;
|
||||
|
||||
@@ -1243,7 +1243,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (!hasIFrames && !Player.creativeGodMode)
|
||||
nextHitDealsDefenseDamage |= proj.Calamity().DealsDefenseDamage;
|
||||
|
||||
if (sulfurSet && !proj.friendly && hurtInfo.Damage > 0)
|
||||
if (sulphurSet && !proj.friendly && hurtInfo.Damage > 0)
|
||||
{
|
||||
if (Main.player[proj.owner] is null)
|
||||
{
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(wDeath, 0);
|
||||
|
||||
ApplyDoTDebuff(irradiated, 4, purity);
|
||||
int sulphurDoT = 6 - (sulfurSet ? 2 : 0) - (sulphurskin ? 2 : 0);
|
||||
int sulphurDoT = 6 - (sulphurSet ? 2 : 0) - (sulphurskin ? 2 : 0);
|
||||
ApplyDoTDebuff(sulphurPoison, sulphurDoT, purity);
|
||||
ApplyDoTDebuff(rTide, 6, purity);
|
||||
ApplyDoTDebuff(weakBrimstoneFlames, 7);
|
||||
@@ -142,7 +142,7 @@ namespace CalamityMod.CalPlayer
|
||||
increment *= 4f + (8f * ASPoisonLevel);
|
||||
if (sulphurskin && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
if (sulfurSet && !ASPoisoning)
|
||||
if (sulphurSet && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
|
||||
SulphWaterPoisoningLevel = MathHelper.Clamp(SulphWaterPoisoningLevel + increment, 0f, 1f);
|
||||
|
||||
@@ -1110,7 +1110,7 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffID.Frostburn2);
|
||||
if (omegaBlueChestplate)
|
||||
target.AddBuff(BuffType<CrushDepth>(), 180);
|
||||
if (sulfurSet)
|
||||
if (sulphurSet)
|
||||
target.AddBuff(BuffID.Poisoned, 120);
|
||||
if (abyssalAmulet)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// 1. Their internal value is not constant, meaning it cannot be used in this enum, and
|
||||
// 2. It's a custom dust.
|
||||
|
||||
SulfurousSeaAcid = 75,
|
||||
SulphurousSeaAcid = 75,
|
||||
Brimstone = 235,
|
||||
Ectoplasm = 180,
|
||||
Necroplasm = 60,
|
||||
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
File renamed without changes.
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
File renamed without changes.
|
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
dustXOffset = -40;
|
||||
}
|
||||
int flightDust = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)dustXOffset, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2.4f);
|
||||
int flightDust = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)dustXOffset, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2.4f);
|
||||
Main.dust[flightDust].noGravity = true;
|
||||
Main.dust[flightDust].velocity *= 0.3f;
|
||||
if (Main.rand.NextBool(10))
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.sulfurSet = true;
|
||||
modPlayer.sulphurSet = true;
|
||||
player.GetJumpState<SulphurJump>().Enable();
|
||||
modPlayer.rogueStealthMax += 0.7f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("AcidEelGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.rand.NextBool(8) && NPC.catchItem == (short)ModContent.ItemType<GeyserShell>())
|
||||
{
|
||||
int dust = Dust.NewDust(NPC.position - new Vector2(2f, 2f), NPC.width + 4, NPC.height + 4, (int)CalamityDusts.SulfurousSeaAcid, NPC.velocity.X * 0.4f, NPC.velocity.Y * 0.4f, 200, default, 1f);
|
||||
int dust = Dust.NewDust(NPC.position - new Vector2(2f, 2f), NPC.width + 4, NPC.height + 4, (int)CalamityDusts.SulphurousSeaAcid, NPC.velocity.X * 0.4f, NPC.velocity.Y * 0.4f, 200, default, 1f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 1.1f;
|
||||
Main.dust[dust].velocity.Y += 0.25f;
|
||||
@@ -141,13 +141,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -491,7 +491,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -218,13 +218,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
float scale = LaserShootCountdown < 530f ? 2.25f : 1.65f;
|
||||
Vector2 destination = NPC.Top + new Vector2(0f, 6f);
|
||||
Dust dust = Dust.NewDustPerfect(destination + Main.rand.NextVector2CircularEdge(12f, 12f), (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(destination + Main.rand.NextVector2CircularEdge(12f, 12f), (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.Normalize(destination - dust.position) * 3f;
|
||||
dust.scale = scale;
|
||||
dust.noGravity = true;
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
float angle = i / 24f;
|
||||
Vector2 spawnPosition = new Vector2(NPC.Center.X, i);
|
||||
dust = Dust.NewDustPerfect(spawnPosition, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
dust = Dust.NewDustPerfect(spawnPosition, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.scale = 1.5f;
|
||||
dust.velocity = Vector2.UnitX * (float)Math.Cos(angle) * (1f - LaserTelegraphPower) * 4f;
|
||||
dust.noGravity = true;
|
||||
@@ -169,12 +169,12 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
float horizontalSpeed = (float)Math.Sin(angle * DustAngleMultiplier1) * (float)Math.Cos(angle) * 4.5f;
|
||||
float verticalSpeed = (float)Math.Cos(angle * DustAngleMultiplier1) * (float)Math.Sin(angle) * 2f;
|
||||
Vector2 velocity = new Vector2(horizontalSpeed, verticalSpeed);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = velocity;
|
||||
dust.scale = (float)Math.Cos(angle) + 2f;
|
||||
dust.noGravity = true;
|
||||
|
||||
dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = -velocity;
|
||||
dust.scale = (float)Math.Cos(angle) + 2f;
|
||||
dust.noGravity = true;
|
||||
@@ -192,11 +192,11 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("GammaSlimeGore").Type, NPC.scale);
|
||||
|
||||
@@ -114,13 +114,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -400,7 +400,7 @@ Continue:
|
||||
int totalDust = (int)(30 * NPC.alpha / 255f);
|
||||
for (int i = 0; i < totalDust; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
dust.velocity = NPC.DirectionFrom(dust.position) * 2f;
|
||||
dust.scale = 1.6f;
|
||||
@@ -423,7 +423,7 @@ Continue:
|
||||
{
|
||||
for (int i = 0; i < 48; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
dust.velocity = NPC.DirectionFrom(dust.position) * Main.rand.NextFloat(2f, 3.6f);
|
||||
dust.scale = 1.8f;
|
||||
@@ -524,7 +524,7 @@ Continue:
|
||||
NPC.alpha = 0;
|
||||
if (DeathrayTime < 240f)
|
||||
{
|
||||
int bigFuckOffDeathrayDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 200, default, 1.5f);
|
||||
int bigFuckOffDeathrayDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 200, default, 1.5f);
|
||||
Main.dust[bigFuckOffDeathrayDust].noGravity = true;
|
||||
Main.dust[bigFuckOffDeathrayDust].velocity *= 0.75f;
|
||||
Main.dust[bigFuckOffDeathrayDust].fadeIn = 1.3f;
|
||||
@@ -597,7 +597,7 @@ Continue:
|
||||
|
||||
for (int i = 0; i < 60; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center, 45, 45, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center, 45, 45, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(4f, 15f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(2f, 3f);
|
||||
@@ -659,7 +659,7 @@ Continue:
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore4").Type, NPC.scale);
|
||||
}
|
||||
for (int i = 0; i < 25; i++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
SoundEngine.PlaySound(SoundID.DD2_WyvernDiveDown, NPC.Center);
|
||||
for (int i = 0; i < 36; i++)
|
||||
{
|
||||
Dust acid = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust acid = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
acid.velocity = (MathHelper.TwoPi * i / 36f).ToRotationVector2() * 6f;
|
||||
acid.scale = 1.1f;
|
||||
acid.noGravity = true;
|
||||
@@ -188,7 +188,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SkyfinGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -244,15 +244,15 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore3").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
for (int k = 0; k < 30; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 dust = (Vector2.Normalize(npc.velocity) * new Vector2(npc.width / 2f, npc.height) * 0.75f * 0.5f).RotatedBy((i - (dustAmt / 2 - 1)) * MathHelper.TwoPi / dustAmt) + npc.Center;
|
||||
Vector2 vector2 = dust - npc.Center;
|
||||
int toxicDust = Dust.NewDust(dust + vector2, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector2.X * 2f, vector2.Y * 2f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(dust + vector2, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector2.X * 2f, vector2.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
Main.dust[toxicDust].noLight = true;
|
||||
Main.dust[toxicDust].velocity = Vector2.Normalize(vector2) * 3f;
|
||||
@@ -632,7 +632,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((j - (chargeDustAmt / 2 - 1)) * pie / chargeDustAmt) + npc.Center;
|
||||
Vector2 vector4 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int chargeDust = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector4.X * 2f, vector4.Y * 2f, 100, default, 1.4f);
|
||||
int chargeDust = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector4.X * 2f, vector4.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[chargeDust].noGravity = true;
|
||||
Main.dust[chargeDust].noLight = true;
|
||||
Main.dust[chargeDust].velocity /= 4f;
|
||||
@@ -693,7 +693,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
@@ -1011,7 +1011,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_1A97_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((k - (phase2ChargeDustAmt / 2 - 1)) * pie / phase2ChargeDustAmt) + npc.Center;
|
||||
Vector2 vector9 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int phase2ChargeDust = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector9.X * 2f, vector9.Y * 2f, 100, default, 1.4f);
|
||||
int phase2ChargeDust = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector9.X * 2f, vector9.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[phase2ChargeDust].noGravity = true;
|
||||
Main.dust[phase2ChargeDust].noLight = true;
|
||||
Main.dust[phase2ChargeDust].velocity /= 4f;
|
||||
@@ -1075,7 +1075,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
@@ -1417,7 +1417,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_2444_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((m - (phase3ChargeDustAmt / 2 - 1)) * pie / phase3ChargeDustAmt) + npc.Center;
|
||||
Vector2 vector11 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int phase3ChargeDust = Dust.NewDust(arg_2444_0 + vector11, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector11.X * 2f, vector11.Y * 2f, 100, default, 1.4f);
|
||||
int phase3ChargeDust = Dust.NewDust(arg_2444_0 + vector11, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector11.X * 2f, vector11.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[phase3ChargeDust].noGravity = true;
|
||||
Main.dust[phase3ChargeDust].noLight = true;
|
||||
Main.dust[phase3ChargeDust].velocity /= 4f;
|
||||
@@ -1617,7 +1617,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
|
||||
@@ -5230,7 +5230,7 @@ namespace CalamityMod.NPCs
|
||||
if (hurtInfo.Damage <= 0)
|
||||
return;
|
||||
|
||||
if (target.Calamity().sulfurSet)
|
||||
if (target.Calamity().sulphurSet)
|
||||
npc.AddBuff(BuffID.Poisoned, 120);
|
||||
|
||||
if (target.Calamity().snowman)
|
||||
|
||||
@@ -71,13 +71,13 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
int onHitDust = 0;
|
||||
while (onHitDust < hit.Damage / NPC.lifeMax * 100.0)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
onHitDust++;
|
||||
}
|
||||
}
|
||||
@@ -490,7 +490,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
{
|
||||
for (int r = 0; r < 150; r++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 2 * hit.HitDirection, -2f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 2 * hit.HitDirection, -2f, 0, default, 1f);
|
||||
}
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -234,12 +234,12 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
NPC.position.X = NPC.position.X + NPC.width / 2;
|
||||
NPC.position.Y = NPC.position.Y + NPC.height / 2;
|
||||
@@ -261,10 +261,10 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
Main.dust[toxicDust].velocity *= 5f;
|
||||
toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[toxicDust].velocity *= 2f;
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -286,12 +286,12 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath12, NPC.Center);
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[toxicDust].velocity.Y *= 6f;
|
||||
Main.dust[toxicDust].velocity.X *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
}
|
||||
if (NPC.ai[0] % 32f == 31f)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(1f, 2f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.6f;
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 6; k++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(1f, 2f);
|
||||
dust.scale = 1.2f;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Main.dust[blood].noGravity = true;
|
||||
Main.dust[blood].velocity *= 0f;
|
||||
|
||||
int acid = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int acid = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[acid].noGravity = true;
|
||||
Main.dust[acid].velocity *= 0f;
|
||||
}
|
||||
@@ -75,10 +75,10 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int d = 0; d < 6; d++)
|
||||
{
|
||||
int acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default(Color), 3f);
|
||||
int acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default(Color), 3f);
|
||||
Main.dust[acid].noGravity = true;
|
||||
Main.dust[acid].velocity *= 5f;
|
||||
acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default(Color), 2f);
|
||||
acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default(Color), 2f);
|
||||
Main.dust[acid].velocity *= 2f;
|
||||
Main.dust[acid].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.6f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.6f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0.3f;
|
||||
}
|
||||
@@ -50,10 +50,10 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Main.rand.NextBool(var))
|
||||
{
|
||||
dustOffset = dustOffset.RotatedBy(angleIncrement);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[dust].position = Projectile.Center + dustOffset;
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity = Vector2.Normalize(Projectile.Center - Main.dust[dust].position) * 24f;
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int i = 0; i < 160; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Top + Vector2.UnitY * 100f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Top + Vector2.UnitY * 100f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(5f, 23f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 3f;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.velocity *= 1.01f;
|
||||
|
||||
int vileDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y),
|
||||
Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.1f, Projectile.velocity.Y * 0.1f, 100, default, 1.5f);
|
||||
Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.1f, Projectile.velocity.Y * 0.1f, 100, default, 1.5f);
|
||||
Main.dust[vileDust].noGravity = true;
|
||||
|
||||
Projectile.rotation += 0.3f * (float)Projectile.direction;
|
||||
@@ -51,11 +51,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.Center);
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
int killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 2.5f);
|
||||
int killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 2.5f);
|
||||
Main.dust[killDust].noGravity = true;
|
||||
Dust dust = Main.dust[killDust];
|
||||
dust.velocity *= 2f;
|
||||
killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 1.2f);
|
||||
killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 1.2f);
|
||||
dust = Main.dust[killDust];
|
||||
dust.velocity *= 2f;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
for (int i = 0; i < 120; i++)
|
||||
{
|
||||
int type = Main.rand.NextBool(3) ? 261 : (int)CalamityDusts.SulfurousSeaAcid;
|
||||
int type = Main.rand.NextBool(3) ? 261 : (int)CalamityDusts.SulphurousSeaAcid;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(10f, 10f), type);
|
||||
dust.scale = Main.rand.NextFloat(1.3f, 1.5f);
|
||||
dust.velocity = Main.rand.NextVector2CircularEdge(15f, 15f);
|
||||
|
||||
@@ -46,10 +46,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -117,21 +117,21 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
float theta = Projectile.velocity.ToRotation() + Main.rand.NextBool().ToDirectionInt() * MathHelper.PiOver2;
|
||||
float speed = (float)Main.rand.NextDouble() * 2f + 2f;
|
||||
Vector2 velocity = theta.ToRotationVector2() * speed;
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.1f;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.ToRadians(55f)).RotatedBy(Projectile.rotation);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.8f;
|
||||
}
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = (i / 16f * MathHelper.TwoPi).ToRotationVector2() * 3f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.4f;
|
||||
|
||||
@@ -42,10 +42,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -61,14 +61,14 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
Projectile.Damage();
|
||||
for (int i = 0; i <= 40; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 200, 200, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 200, 200, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * (Main.dust[idx].position - Projectile.Center).Length() / 30f;
|
||||
Main.dust[idx].scale = 2.5f;
|
||||
}
|
||||
for (int i = 0; i <= 90; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 8f;
|
||||
Main.dust[idx].scale = 3f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
|
||||
@@ -48,14 +48,14 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
Projectile.Damage();
|
||||
for (int i = 0; i <= 40; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 100, 100, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 100, 100, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * (Main.dust[idx].position - Projectile.Center).Length() / 30f;
|
||||
Main.dust[idx].scale = 2.5f;
|
||||
}
|
||||
for (int i = 0; i <= 90; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 8f;
|
||||
Main.dust[idx].scale = 3f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
|
||||
@@ -112,21 +112,21 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
float theta = Projectile.velocity.ToRotation() + Main.rand.NextBool().ToDirectionInt() * MathHelper.PiOver2;
|
||||
float speed = (float)Main.rand.NextDouble() * 2f + 2f;
|
||||
Vector2 velocity = theta.ToRotationVector2() * speed;
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.1f;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.ToRadians(55f)).RotatedBy(Projectile.rotation);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.8f;
|
||||
}
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = (i / 16f * MathHelper.TwoPi).ToRotationVector2() * 3f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.4f;
|
||||
|
||||
@@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -57,10 +57,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 4; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
Vector2 positionDelta = Projectile.velocity / 3f * i;
|
||||
int spawnDelta = 14;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Dust dust = Main.dust[dustIdx];
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.1f;
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int spawnDelta = 16;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
Main.dust[dustIdx].velocity *= 0.25f;
|
||||
Main.dust[dustIdx].velocity += Projectile.velocity * 0.5f;
|
||||
}
|
||||
|
||||
@@ -38,10 +38,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
Vector2 positionDelta = Projectile.velocity / 3f * i;
|
||||
int spawnDelta = 14;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Dust dust = Main.dust[dustIdx];
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.1f;
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int spawnDelta = 16;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
Main.dust[dustIdx].velocity *= 0.25f;
|
||||
Main.dust[dustIdx].velocity += Projectile.velocity * 0.5f;
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
int inc;
|
||||
for (int i = 0; i < 25; i = inc + 1)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 0, default, 1f);
|
||||
int toxicDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[toxicDust].position = (Main.dust[toxicDust].position + Projectile.position) / 2f;
|
||||
Main.dust[toxicDust].velocity = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
Main.dust[toxicDust].velocity.Normalize();
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
for (int i = 0; i < 23; i++)
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, 10, 10, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, 10, 10, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath1 with { Volume = SoundID.NPCDeath1.Volume * 0.5f }, Projectile.Center);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 1.5f);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 1.5f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 topRight = Projectile.Center + Projectile.velocity.RotatedBy(MathHelper.PiOver2) * 40f;
|
||||
foreach (Vector2 spawnPosition in new BezierCurve(topLeft, top, topRight).GetPoints(50))
|
||||
{
|
||||
Dust sulphurousAcid = Dust.NewDustPerfect(spawnPosition + Projectile.velocity * 16f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust sulphurousAcid = Dust.NewDustPerfect(spawnPosition + Projectile.velocity * 16f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
sulphurousAcid.velocity = Projectile.velocity * 4f;
|
||||
sulphurousAcid.noGravity = true;
|
||||
sulphurousAcid.scale = 1.2f;
|
||||
@@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 rotatedHandPosition = player.RotatedRelativePoint(player.position + handOffset, true);
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(player.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 150, default, 1.3f);
|
||||
Dust dust = Dust.NewDustDirect(player.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 150, default, 1.3f);
|
||||
dust.position = rotatedHandPosition;
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.velocity.X *= 0.9f;
|
||||
Projectile.velocity.Y *= 0.9f;
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
int randAmt = Main.rand.Next(5, 9);
|
||||
for (int i = 0; i < randAmt; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].velocity *= 0.8f;
|
||||
Main.dust[toxicDust].position = Vector2.Lerp(Main.dust[toxicDust].position, Projectile.Center, 0.5f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.velocity.X *= 0.9f;
|
||||
Projectile.velocity.Y *= 0.9f;
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
int randAmt = Main.rand.Next(5, 9);
|
||||
for (int i = 0; i < randAmt; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].velocity *= 0.8f;
|
||||
Main.dust[toxicDust].position = Vector2.Lerp(Main.dust[toxicDust].position, Projectile.Center, 0.5f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int count = Main.rand.Next(6, 15);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[idx].velocity *= 2f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int count = Main.rand.Next(6, 15);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[idx].velocity *= 2f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedBy(i / 15f * MathHelper.TwoPi) * 3f * (float)Math.Cos(i / 15f * MathHelper.TwoPi);
|
||||
dust.scale = 2.5f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Projectile.width / 33.333f * Vector2.One.RotatedByRandom(MathHelper.TwoPi);
|
||||
dust.scale = Projectile.width == 120 ? 3.1f : 2.2f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
if (Main.rand.NextBool(Projectile.Calamity().stealthStrike ? 3 : 7))
|
||||
{
|
||||
Dust dust = Main.dust[Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * -3f, Projectile.velocity.Y * -3f, 0, default, Projectile.Calamity().stealthStrike ? Main.rand.NextFloat(2.5f, 3.2f) : 1.5f)];
|
||||
Dust dust = Main.dust[Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * -3f, Projectile.velocity.Y * -3f, 0, default, Projectile.Calamity().stealthStrike ? Main.rand.NextFloat(2.5f, 3.2f) : 1.5f)];
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
int numberofdusts = Projectile.Calamity().stealthStrike ? 14 : 5;
|
||||
for (int i = 0; i <= numberofdusts; i++)
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
}
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
|
||||
@@ -180,7 +180,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int dust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -190,10 +190,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
for (int j = 0; j < 8; j++)
|
||||
{
|
||||
int dust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
int dust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[dust2].noGravity = true;
|
||||
Main.dust[dust2].velocity *= 5f;
|
||||
dust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
dust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 dspeed = new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-4f, 4f));
|
||||
Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid, dspeed.X, dspeed.Y, 0, default, 1.1f);
|
||||
Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid, dspeed.X, dspeed.Y, 0, default, 1.1f);
|
||||
}
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 dspeed = new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-4f, 4f));
|
||||
Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid, dspeed.X, dspeed.Y, 0, default, 1.1f);
|
||||
Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid, dspeed.X, dspeed.Y, 0, default, 1.1f);
|
||||
}
|
||||
|
||||
SoundEngine.PlaySound(SoundID.Item107, Projectile.Bottom);
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
dustloop += Main.rand.Next(1, 3);
|
||||
for (int i = 0; i < dustloop; ++i)
|
||||
{
|
||||
int dustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
int dustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
float scale = Main.rand.NextFloat(0.5f, 1.5f);
|
||||
float randX = Main.rand.NextFloat(-30f, 30f);
|
||||
float randY = Main.rand.NextFloat(-30f, 30f);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.ToRadians(45f);
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
|
||||
SoundEngine.PlaySound(SoundID.Item20, Projectile.position);
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
@@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
|
||||
SoundEngine.PlaySound(SoundID.Item20, Projectile.position);
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
public override void AI()
|
||||
{
|
||||
if (!Main.dedServ && Projectile.velocity.Length() > 5f)
|
||||
Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
|
||||
Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid).noGravity = true;
|
||||
|
||||
Projectile.StickyProjAI(3);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
Dust.NewDustDirect(Projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
|
||||
Dust.NewDustDirect(Projectile.position, 36, 36, (int)CalamityDusts.SulphurousSeaAcid).noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < 56; i++)
|
||||
{
|
||||
float angle = MathHelper.TwoPi / 56f * i;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.scale = 1.5f;
|
||||
dust.velocity = angle.ToRotationVector2() * 7f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
Vector2 positionDelta = Projectile.velocity / 3f * i;
|
||||
int spawnDelta = 14;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Dust dust = Main.dust[dustIdx];
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.1f;
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int spawnDelta = 16;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
Main.dust[dustIdx].velocity *= 0.25f;
|
||||
Main.dust[dustIdx].velocity += Projectile.velocity * 0.5f;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(4, 8 + 1); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Main.rand.NextVector2Unit() * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(4, 8 + 1); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(4, 8 + 1); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(4, 8 + 1); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(4, 8 + 1); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
// Release a circle of sulphuric dust.
|
||||
for (int i = 0; i < 18; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = new Vector2(0f, -5f).RotatedBy(i / 18f * MathHelper.TwoPi);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.35f;
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
return;
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid, Main.rand.NextVector2CircularEdge(4f, 4f)).noGravity = true;
|
||||
Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid, Main.rand.NextVector2CircularEdge(4f, 4f)).noGravity = true;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Dust sulphuricAcid = Dust.NewDustDirect(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Dust sulphuricAcid = Dust.NewDustDirect(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
sulphuricAcid.noGravity = true;
|
||||
sulphuricAcid.velocity *= 1.8f;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
else if (randomDust == 2)
|
||||
{
|
||||
randomDust = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
randomDust = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
Projectile.alpha = (int)Utils.Remap(Projectile.timeLeft, FadeoutTime, 0f, 0f, 255f);
|
||||
|
||||
float dustDistance = Projectile.width * Projectile.scale + 25f;
|
||||
Dust vortexDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2CircularEdge(dustDistance, dustDistance), (int)CalamityDusts.SulfurousSeaAcid, Scale: 2f);
|
||||
Dust vortexDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2CircularEdge(dustDistance, dustDistance), (int)CalamityDusts.SulphurousSeaAcid, Scale: 2f);
|
||||
vortexDust.velocity = vortexDust.position.DirectionTo(Projectile.Center) * 10f;
|
||||
vortexDust.noGravity = true;
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
for (int i = 0; i < Main.rand.Next(28, 41); i++)
|
||||
{
|
||||
Dust.NewDustPerfect(Projectile.Center + Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(10f),
|
||||
(int)CalamityDusts.SulfurousSeaAcid,
|
||||
(int)CalamityDusts.SulphurousSeaAcid,
|
||||
Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(1f, 4f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public override Asset<Texture2D> GetOasisTopTextures() => ModContent.Request<Texture2D>("CalamityMod/Tiles/Abyss/AcidWoodTreeOasisTops");
|
||||
|
||||
public override int DropWood() => ModContent.ItemType<Acidwood>();
|
||||
public override int CreateDust() => (int)CalamityDusts.SulfurousSeaAcid;
|
||||
public override int CreateDust() => (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
public override int SaplingGrowthType(ref int style)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.newTile.RandomStyleRange = 3;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(113, 90, 71), Language.GetText("MapObject.Sapling"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
AdjTiles = new int[] { TileID.Saplings };
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalagmite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Abyss.Stalactite
|
||||
TileObjectData.newTile.DrawYOffset = -2;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(57, 48, 83), CalamityUtils.GetText("Tiles.Stalactite"));
|
||||
DustType = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
DustType = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
Loaded 100 of 121 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user