Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
d522f9291b
549 files changed
+1186
-1227
No files matched your search
@@ -1383,15 +1383,15 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.FairyQueenLance || proj.type == ProjectileID.HallowBossRainbowStreak || proj.type == ProjectileID.HallowBossSplitShotCore)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 60);
|
||||
Player.AddBuff(NPC.ShouldEmpressBeEnraged() ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.HallowBossLastingRainbow)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 120);
|
||||
Player.AddBuff(NPC.ShouldEmpressBeEnraged() ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.FairyQueenSunDance)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 180);
|
||||
Player.AddBuff(NPC.ShouldEmpressBeEnraged() ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodNautilusShot)
|
||||
{
|
||||
|
||||
@@ -1638,8 +1638,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
int green = Dust.NewDust(new Vector2(Player.position.X, Player.position.Y), Player.width, Player.height, DustID.ChlorophyteWeapon, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f);
|
||||
Dust dust = Main.dust[green];
|
||||
Dust dust = Dust.NewDustDirect(Player.position, Player.width, Player.height, DustID.ChlorophyteWeapon, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f);
|
||||
dust.position.X += (float)Main.rand.Next(-20, 21);
|
||||
dust.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
dust.velocity *= 0.9f;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Graphics.Renderers.CalamityRenderers
|
||||
}
|
||||
|
||||
var shader = GameShaders.Misc["CalamityMod:HolyInfernoShader"].Shader;
|
||||
shader.Parameters["colorMult"].SetValue(Main.dayTime ? 7.35f : 7.65f); //I want you to know it took considerable restraint to deliberately misspell colour.
|
||||
shader.Parameters["colorMult"].SetValue(Main.IsItDay() ? 7.35f : 7.65f); //I want you to know it took considerable restraint to deliberately misspell colour.
|
||||
shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly);
|
||||
shader.Parameters["radius"].SetValue(borderDistance);
|
||||
shader.Parameters["anchorPoint"].SetValue(npc.Center);
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Graphics.Renderers.CalamityRenderers
|
||||
shader.Parameters["burnIntensity"].SetValue(holyInfernoIntensity);
|
||||
shader.Parameters["playerPosition"].SetValue(target.Center);
|
||||
shader.Parameters["maxOpacity"].SetValue(maxOpacity);
|
||||
shader.Parameters["day"].SetValue(Main.dayTime);
|
||||
shader.Parameters["day"].SetValue(Main.IsItDay());
|
||||
|
||||
spriteBatch.GraphicsDevice.Textures[1] = diagonalNoise.Value;
|
||||
spriteBatch.GraphicsDevice.Textures[2] = upwardNoise.Value;
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.ILEditing
|
||||
#region Allow Empress to Enrage in Boss Rush
|
||||
private static bool AllowEmpressToEnrageInBossRush(Terraria.On_NPC.orig_ShouldEmpressBeEnraged orig)
|
||||
{
|
||||
if (Main.dayTime || BossRushEvent.BossRushActive)
|
||||
if (BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
|
||||
return orig();
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 26;
|
||||
Item.height = 26;
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 26;
|
||||
Item.height = 26;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class GodlySoulArtifact : ModItem, ILocalizedModType
|
||||
[LegacyName("GodlySoulArtifact")]
|
||||
public class AuricSoulArtifact : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 46;
|
||||
Item.height = 40;
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@ using CalamityMod.CalPlayer.Dashes;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
|
||||
@@ -21,7 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 24;
|
||||
Item.height = 28;
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.accessory = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 32;
|
||||
Item.height = 34;
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.width = 26;
|
||||
Item.height = 26;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.accessory = true;
|
||||
Item.defense = 10;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Ammo
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 1.5f;
|
||||
Item.value = Item.sellPrice(copper: 12);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.shoot = ModContent.ProjectileType<CinderArrowProj>();
|
||||
Item.shootSpeed = 13f;
|
||||
Item.ammo = AmmoID.Arrow;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AerialiteDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AerialiteDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AerialiteDyeShader"), "DyePass").
|
||||
UseColor(new Color(153, 200, 193)).UseSecondaryColor(new Color(236, 244, 213)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AstralBlueDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AstralBlueDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AstralBlueDyeShader"), "DyePass").
|
||||
UseColor(new Color(109, 242, 197)).UseSecondaryColor(new Color(42, 147, 154));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AstralDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AstralDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AstralDyeShader"), "DyePass").
|
||||
UseColor(new Color(123, 99, 130)).UseSecondaryColor(new Color(189, 66, 84)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AstralOrangeDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AstralOrangeDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AstralOrangeDyeShader"), "DyePass").
|
||||
UseColor(new Color(255, 166, 94)).UseSecondaryColor(new Color(238, 93, 82));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AstralSwirlDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AstralSwirlDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AstralSwirlDyeShader"), "DyePass").
|
||||
UseColor(new Color(42, 147, 154)).UseSecondaryColor(new Color(238, 93, 82)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AuricDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AuricDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SharpNoise", AssetRequestMode.ImmediateLoad));
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AuricDyeShader"), "DyePass").
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SharpNoise"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class BloodflareDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/BloodflareDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/BloodflareDyeShader"), "DyePass").
|
||||
UseColor(new Color(122, 10, 60)).UseSecondaryColor(new Color(219, 102, 106)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class BlueCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader"), "DyePass").
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(52, 212, 229)).UseImage("Images/Misc/noise").UseSaturation(0f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class BlueStatigelDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader"), "DyePass").
|
||||
UseColor(new Color(80, 170, 206)).UseSecondaryColor(new Color(81, 87, 119)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class BrimflameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/BrimflameDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/BrimflameDyeShader"), "DyePass").
|
||||
UseColor(new Color(252, 147, 34)).UseSecondaryColor(new Color(216, 41, 26)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class CalamitousDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CalamitousDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CalamitousDyeShader"), "DyePass").
|
||||
UseColor(new Color(227, 79, 79)).UseSecondaryColor(new Color(145, 27, 135)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class CeaselessDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CeaselessDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass");
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CeaselessDyeShader"), "DyePass");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class CosmiliteDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmiliteDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CosmiliteDyeShader"), "DyePass").
|
||||
UseColor(new Color(154, 140, 191)).UseSecondaryColor(new Color(249, 109, 235)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class CryonicDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CryonicDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CryonicDyeShader"), "DyePass").
|
||||
UseColor(new Color(138, 225, 255)).UseSecondaryColor(new Color(90, 90, 204)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class DefiledFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/DefiledFlameDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/DefiledFlameDyeShader"), "DyePass").
|
||||
UseColor(new Color(106, 190, 48)).UseSecondaryColor(new Color(204, 248, 48)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class DragonSoulDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/DragonSoulDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass");
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/DragonSoulDyeShader"), "DyePass");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ElementalDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ElementalDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").UseImage("Images/Misc/Perlin");
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ElementalDyeShader"), "DyePass").UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class EndothermicDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/EndothermicDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/EndothermicDyeShader"), "DyePass").
|
||||
UseColor(new Color(123, 205, 237)).UseSecondaryColor(new Color(85, 85, 171));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind
|
||||
{
|
||||
get => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ExoDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").UseImage("Images/Misc/Perlin");
|
||||
get => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ExoDyeShader"), "DyePass").UseImage("Images/Misc/Perlin");
|
||||
}
|
||||
|
||||
public override void SafeSetStaticDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
[LegacyName("PhantoplasmDye")]
|
||||
public class NecroplasmicDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/NecroplasmicDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/NecroplasmicDyeShader"), "DyePass").
|
||||
UseColor(new Color(245, 143, 182)).UseSecondaryColor(new Color(119, 238, 255)).UseImage("Images/Misc/Perlin");
|
||||
|
||||
public override void SafeSetStaticDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class NightmareDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/NightmareDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/NightmareDyeShader"), "DyePass").
|
||||
UseColor(new Color(249, 81, 0)).UseSecondaryColor(new Color(255, 203, 106));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class PinkCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader"), "DyePass").
|
||||
UseColor(new Color(255, 115, 221)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(0f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class PinkStatigelDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader"), "DyePass").
|
||||
UseColor(new Color(249, 129, 185)).UseSecondaryColor(new Color(131, 58, 103)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ProfanedFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedFlameDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedFlameDyeShader"), "DyePass").
|
||||
UseColor(new Color(255, 191, 73)).UseSecondaryColor(new Color(255, 255, 186)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ProfanedMoonlightDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedMoonlightDye", AssetRequestMode.ImmediateLoad).Value), "DyePass");
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedMoonlightDye"), "DyePass");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ReaverDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ReaverDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ReaverDyeShader"), "DyePass").
|
||||
UseColor(new Color(54, 164, 66)).UseSecondaryColor(new Color(224, 115, 65));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ShadowspecDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/ShadowspecDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ShadowspecDyeShader"), "DyePass").
|
||||
UseColor(new Color(46, 27, 60)).UseSecondaryColor(new Color(132, 142, 191)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class SlimeGodDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/SlimeGodDyeShader"), "DyePass").
|
||||
UseColor(new Color(80, 170, 206)).UseSecondaryColor(new Color(131, 58, 103)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class StratusDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/StratusDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/StratusDyeShader"), "DyePass").
|
||||
UseColor(new Color(36, 86, 163)).UseSecondaryColor(new Color(124, 204, 223)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class SwirlingCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader"), "DyePass").
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(1f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 524 B |
@@ -73,7 +73,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"CrabBar",
|
||||
"Dia",
|
||||
"Done",
|
||||
"DylanDoe21",
|
||||
"Fluffi",
|
||||
"HaguriHat",
|
||||
"Heart Plus Up!",
|
||||
@@ -125,6 +124,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"Doog",
|
||||
"drh",
|
||||
"dwshin",
|
||||
"DylanDoe21",
|
||||
"Earth",
|
||||
"EchoDuck",
|
||||
"Ein",
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType<CalamitasClone>()) && !BossRushEvent.BossRushActive;
|
||||
return !Main.IsItDay() && !NPC.AnyNPCs(ModContent.NPCType<CalamitasClone>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
||||
Item.shoot = ModContent.ProjectileType<MurasamaSlash>();
|
||||
Item.shootSpeed = 24f;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public class Roxcalibur : ModItem, ILocalizedModType
|
||||
{
|
||||
|
||||
public string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
|
||||
public static int BaseUseTime = 40;
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public static readonly SoundStyle Shoot = new("CalamityMod/Sounds/Item/DeadSunShot") { PitchVariance = 0.35f, Volume = 0.4f };
|
||||
public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/DeadSunShot") { PitchVariance = 0.35f, Volume = 0.4f };
|
||||
public static readonly SoundStyle Ricochet = new("CalamityMod/Sounds/Item/DeadSunRicochet") { Volume = 0.35f };
|
||||
public static readonly SoundStyle Explosion = new("CalamityMod/Sounds/Item/DeadSunExplosion") { Volume = 0.5f };
|
||||
public override void SetDefaults()
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3.5f;
|
||||
Item.UseSound = Shoot;
|
||||
Item.UseSound = ShootSound;
|
||||
Item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
Item.rare = ItemRarityID.Cyan;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public static readonly SoundStyle Shoot = new("CalamityMod/Sounds/Item/HalleysInfernoShoot") { Volume = 0.68f };
|
||||
public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/HalleysInfernoShoot") { Volume = 0.68f };
|
||||
public static readonly SoundStyle Hit = new("CalamityMod/Sounds/Item/HalleysInfernoHit") { Volume = 0.75f };
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.UseSound = Shoot;
|
||||
Item.UseSound = ShootSound;
|
||||
Item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
Item.rare = ModContent.RarityType<PureGreen>();
|
||||
}
|
||||
|
||||
@@ -258,6 +258,15 @@ AsgardsValor: {
|
||||
'''
|
||||
}
|
||||
|
||||
AuricSoulArtifact: {
|
||||
DisplayName: Auric Soul Artifact
|
||||
Tooltip:
|
||||
'''
|
||||
For each Fiery Draconid you have summoned, you gain 1 minion slot
|
||||
Loyalty
|
||||
'''
|
||||
}
|
||||
|
||||
BadgeofBravery: {
|
||||
DisplayName: Badge of Bravery
|
||||
Tooltip:
|
||||
@@ -845,15 +854,6 @@ GloveOfRecklessness: {
|
||||
'''
|
||||
}
|
||||
|
||||
GodlySoulArtifact: {
|
||||
DisplayName: Auric Soul Artifact
|
||||
Tooltip:
|
||||
'''
|
||||
For each Fiery Draconid you have summoned, you gain 1 minion slot
|
||||
Loyalty
|
||||
'''
|
||||
}
|
||||
|
||||
GrandGelatin: {
|
||||
DisplayName: Grand Gelatin
|
||||
Tooltip:
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
NPC.TargetClosest(true);
|
||||
float lungeSpeed = CalamityWorld.death ? 12f : CalamityWorld.revenge ? 10f : 8f;
|
||||
Vector2 npcPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 npcPosition = NPC.Center;
|
||||
float targetX = Main.player[NPC.target].position.X + (Main.player[NPC.target].width / 2) - npcPosition.X;
|
||||
float targetY = Main.player[NPC.target].position.Y + (Main.player[NPC.target].height / 2) - npcPosition.Y;
|
||||
float targetDistance = (float)Math.Sqrt(targetX * targetX + targetY * targetY);
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
float currentSpeed = speed;
|
||||
float currentTurnSpeed = turnSpeed;
|
||||
Vector2 segmentPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 segmentPosition = NPC.Center;
|
||||
|
||||
if (patrolSpot == Vector2.Zero)
|
||||
patrolSpot = Main.player[NPC.target].Center;
|
||||
|
||||
@@ -468,7 +468,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int r = 0; r < 50; r++)
|
||||
{
|
||||
int aureusDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int aureusDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[aureusDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -478,10 +478,10 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
}
|
||||
for (int s = 0; s < 100; s++)
|
||||
{
|
||||
int aureusDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
int aureusDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
Main.dust[aureusDust2].noGravity = true;
|
||||
Main.dust[aureusDust2].velocity *= 5f;
|
||||
aureusDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
aureusDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
Main.dust[aureusDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
float lifeRatio = NPC.life / (float)NPC.lifeMax;
|
||||
|
||||
// Phase 2 check
|
||||
bool phase2 = lifeRatio <= 0.5f || Main.dayTime;
|
||||
bool phase2 = lifeRatio <= 0.5f || Main.IsItDay();
|
||||
|
||||
// Charge towards the target and explode after some time
|
||||
int inertia = 30;
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
int dust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[dust].velocity *= 1.66f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -184,10 +184,10 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f);
|
||||
int dust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 2f;
|
||||
dust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
dust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[dust].velocity *= 1.33f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
Point point = NPC.Center.ToTileCoordinates();
|
||||
Tile tileSafely = Framing.GetTileSafely(point);
|
||||
bool explodeOnCollision = tileSafely.HasUnactuatedTile && Main.tileSolid[tileSafely.TileType] && !Main.tileSolidTop[tileSafely.TileType] && !TileID.Sets.Platforms[tileSafely.TileType];
|
||||
bool explodeOnAureus = distanceFromAureus < (180f + 30f * (NPC.scale - 1f)) && !Main.dayTime;
|
||||
bool explodeOnAureus = distanceFromAureus < (180f + 30f * (NPC.scale - 1f)) && !Main.IsItDay();
|
||||
if (vector.Length() < (60f + 30f * (NPC.scale - 1f)) || explodeOnCollision || explodeOnAureus || NPC.Calamity().newAI[0] >= enlargeDuration)
|
||||
{
|
||||
NPC.life = 0;
|
||||
@@ -335,7 +335,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
return;
|
||||
|
||||
// Damage Aureus for a percentage of its HP if the spawn explodes on or near it
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && (Main.npc[CalamityGlobalNPC.astrumAureus].Center - NPC.Center).Length() < (200f + 30f * (NPC.scale - 1f)) && !Main.dayTime)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && (Main.npc[CalamityGlobalNPC.astrumAureus].Center - NPC.Center).Length() < (200f + 30f * (NPC.scale - 1f)) && !Main.IsItDay())
|
||||
Projectile.NewProjectileDirect(NPC.GetSource_FromAI(), Main.npc[CalamityGlobalNPC.astrumAureus].Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), (int)(Main.npc[CalamityGlobalNPC.astrumAureus].lifeMax / 200 * NPC.scale), 0f, Main.myPlayer, Main.npc[CalamityGlobalNPC.astrumAureus].whoAmI);
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
for (int r = 0; r < 30; r++)
|
||||
{
|
||||
int astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
int astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[astralDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -369,10 +369,10 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
for (int s = 0; s < 60; s++)
|
||||
{
|
||||
int astralDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f);
|
||||
int astralDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[astralDust2].noGravity = true;
|
||||
Main.dust[astralDust2].velocity *= 5f;
|
||||
astralDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
astralDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 1f);
|
||||
Main.dust[astralDust2].velocity *= 2f;
|
||||
Main.dust[astralDust2].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int purpleDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int purpleDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purpleDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -183,10 +183,10 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
}
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
int astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
int astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
Main.dust[astralDust].noGravity = true;
|
||||
Main.dust[astralDust].velocity *= 5f;
|
||||
astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
Main.dust[astralDust].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int purpleDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int purpleDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purpleDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -219,10 +219,10 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
}
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
int astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
int astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
Main.dust[astralDust].noGravity = true;
|
||||
Main.dust[astralDust].velocity *= 5f;
|
||||
astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
Main.dust[astralDust].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int purpleDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int purpleDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purpleDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -156,10 +156,10 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
}
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
int astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
int astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 3f);
|
||||
Main.dust[astralDust].noGravity = true;
|
||||
Main.dust[astralDust].velocity *= 5f;
|
||||
astralDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
astralDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, ModContent.DustType<AstralOrange>(), 0f, 0f, 100, default, 2f);
|
||||
Main.dust[astralDust].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int brimDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
int brimDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -276,10 +276,10 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
}
|
||||
for (int j = 0; j < 60; j++)
|
||||
{
|
||||
int brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
int brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[brimDust2].noGravity = true;
|
||||
Main.dust[brimDust2].velocity *= 5f;
|
||||
brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust2].velocity *= 2f;
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int brimDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
int brimDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -282,10 +282,10 @@ namespace CalamityMod.NPCs.CalClone
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
int brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[brimDust2].noGravity = true;
|
||||
Main.dust[brimDust2].velocity *= 5f;
|
||||
brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int brimDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
int brimDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -208,10 +208,10 @@ namespace CalamityMod.NPCs.CalClone
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
int brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[brimDust2].noGravity = true;
|
||||
Main.dust[brimDust2].velocity *= 5f;
|
||||
brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int brimDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
int brimDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -208,10 +208,10 @@ namespace CalamityMod.NPCs.CalClone
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
int brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[brimDust2].noGravity = true;
|
||||
Main.dust[brimDust2].velocity *= 5f;
|
||||
brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
Player player = Main.player[npc.target];
|
||||
|
||||
float enrageScale = bossRush ? 1f : 0f;
|
||||
if ((Main.dayTime && !player.Calamity().ZoneAstral) || bossRush)
|
||||
if ((Main.IsItDay() && !player.Calamity().ZoneAstral) || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 1f;
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
bool death = CalamityWorld.death || bossRush;
|
||||
|
||||
float enrageScale = bossRush ? 0.5f : 0f;
|
||||
if (Main.dayTime || bossRush)
|
||||
if (Main.IsItDay() || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 1.5f;
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
Player player = Main.player[npc.target];
|
||||
|
||||
float enrageScale = bossRush ? 1f : 0f;
|
||||
if (Main.dayTime || bossRush)
|
||||
if (Main.IsItDay() || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 2f;
|
||||
@@ -775,7 +775,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
Player player = Main.player[npc.target];
|
||||
|
||||
float enrageScale = bossRush ? 1f : 0f;
|
||||
if (Main.dayTime || bossRush)
|
||||
if (Main.IsItDay() || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 2f;
|
||||
@@ -1094,7 +1094,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
Player player = Main.player[npc.target];
|
||||
|
||||
float enrageScale = bossRush ? 1f : 0f;
|
||||
if (Main.dayTime || bossRush)
|
||||
if (Main.IsItDay() || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 2f;
|
||||
|
||||
@@ -3251,7 +3251,7 @@ namespace CalamityMod.NPCs
|
||||
cirrusBossActive = Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas.SupremeCalamitas>().cirrus;
|
||||
}
|
||||
|
||||
bool nightProvi = npc.type == NPCType<Providence.Providence>() && !Main.dayTime;
|
||||
bool nightProvi = npc.type == NPCType<Providence.Providence>() && !Main.IsItDay();
|
||||
bool dayEmpress = npc.type == NPCID.HallowBoss && NPC.ShouldEmpressBeEnraged();
|
||||
if (KillTime > 0 && AITimer < KillTime && !BossRushEvent.BossRushActive && !cirrusBossActive && (nightProvi || dayEmpress))
|
||||
{
|
||||
@@ -5313,7 +5313,7 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.HallowBoss:
|
||||
target.AddBuff(Main.dayTime ? BuffType<HolyFlames>() : BuffType<Nightwither>(), 240);
|
||||
target.AddBuff(NPC.ShouldEmpressBeEnraged() ? BuffType<HolyFlames>() : BuffType<Nightwither>(), 240);
|
||||
break;
|
||||
|
||||
case NPCID.BloodNautilus:
|
||||
|
||||
@@ -291,7 +291,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int purpleDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int purpleDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purpleDust].velocity *= 3f;
|
||||
Main.dust[purpleDust].noGravity = true;
|
||||
if (Main.rand.NextBool())
|
||||
@@ -302,10 +302,10 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int purpleDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int purpleDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[purpleDust2].noGravity = true;
|
||||
Main.dust[purpleDust2].velocity *= 5f;
|
||||
purpleDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
purpleDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[purpleDust2].noGravity = true;
|
||||
Main.dust[purpleDust2].velocity *= 2f;
|
||||
}
|
||||
|
||||
@@ -906,7 +906,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int j = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 2f);
|
||||
int j = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[j].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -916,10 +916,10 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
}
|
||||
for (int k = 0; k < 70; k++)
|
||||
{
|
||||
int stompDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 3f);
|
||||
int stompDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[stompDust].noGravity = true;
|
||||
Main.dust[stompDust].velocity *= 5f;
|
||||
stompDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 2f);
|
||||
stompDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.BlueFairy, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[stompDust].velocity *= 2f;
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -336,7 +336,7 @@ namespace CalamityMod.NPCs.Crags
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int brimDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
int brimDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -346,10 +346,10 @@ namespace CalamityMod.NPCs.Crags
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
int brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[brimDust2].noGravity = true;
|
||||
Main.dust[brimDust2].velocity *= 5f;
|
||||
brimDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
brimDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[brimDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1315,7 +1315,7 @@ Block:
|
||||
{
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int icyDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
int icyDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[icyDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -1325,10 +1325,10 @@ Block:
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int icyDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 3f);
|
||||
int icyDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[icyDust2].noGravity = true;
|
||||
Main.dust[icyDust2].velocity *= 5f;
|
||||
icyDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
icyDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[icyDust2].velocity *= 2f;
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server && !Main.zenithWorld)
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
for (int i = 0; i < 25; i++)
|
||||
{
|
||||
int icyDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
int icyDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[icyDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -184,10 +184,10 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
for (int j = 0; j < 50; j++)
|
||||
{
|
||||
int icyDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 3f);
|
||||
int icyDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[icyDust2].noGravity = true;
|
||||
Main.dust[icyDust2].velocity *= 5f;
|
||||
icyDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
icyDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[icyDust2].velocity *= 2f;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
|
||||
NPC.Opacity = Main.npc[(int)NPC.ai[2]].Opacity;
|
||||
|
||||
Vector2 segmentPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 segmentPosition = NPC.Center;
|
||||
float targetX = Main.player[NPC.target].position.X + (Main.player[NPC.target].width / 2);
|
||||
float targetY = Main.player[NPC.target].position.Y + (Main.player[NPC.target].height / 2);
|
||||
targetX = (int)(targetX / 16f) * 16;
|
||||
@@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
try
|
||||
{
|
||||
segmentPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
segmentPosition = NPC.Center;
|
||||
targetX = Main.npc[(int)NPC.ai[1]].position.X + (Main.npc[(int)NPC.ai[1]].width / 2) - segmentPosition.X;
|
||||
targetY = Main.npc[(int)NPC.ai[1]].position.Y + (Main.npc[(int)NPC.ai[1]].height / 2) - segmentPosition.Y;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -230,10 +230,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
return;
|
||||
}
|
||||
|
||||
Vector2 segmentDirection = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 segmentDirection = NPC.Center;
|
||||
float dogHeadX = Main.npc[CalamityGlobalNPC.DoGHead].position.X + (Main.npc[CalamityGlobalNPC.DoGHead].width / 2);
|
||||
float dogHeadY = Main.npc[CalamityGlobalNPC.DoGHead].position.Y + (Main.npc[CalamityGlobalNPC.DoGHead].height / 2);
|
||||
float segmentVelocity = BossRushEvent.BossRushActive ? 30f : CalamityWorld.revenge ? 25f : 23f;
|
||||
@@ -424,7 +424,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -434,10 +434,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
|
||||
NPC.Opacity = Main.npc[(int)NPC.ai[2]].Opacity;
|
||||
|
||||
Vector2 segmentPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 segmentPosition = NPC.Center;
|
||||
float targetX = Main.player[NPC.target].position.X + (Main.player[NPC.target].width / 2);
|
||||
float targetY = Main.player[NPC.target].position.Y + (Main.player[NPC.target].height / 2);
|
||||
targetX = (int)(targetX / 16f) * 16;
|
||||
@@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
try
|
||||
{
|
||||
segmentPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
segmentPosition = NPC.Center;
|
||||
targetX = Main.npc[(int)NPC.ai[1]].position.X + (Main.npc[(int)NPC.ai[1]].width / 2) - segmentPosition.X;
|
||||
targetY = Main.npc[(int)NPC.ai[1]].position.Y + (Main.npc[(int)NPC.ai[1]].height / 2) - segmentPosition.Y;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -222,10 +222,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -532,10 +532,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -802,7 +802,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
for (int l = 0; l < 8; l++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
int dust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
float dustVelocityYAdd = Math.Abs(Main.dust[dust].velocity.Y) * 0.5f;
|
||||
if (Main.dust[dust].velocity.Y < 0f)
|
||||
Main.dust[dust].velocity.Y = 2f + dustVelocityYAdd;
|
||||
@@ -1891,7 +1891,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
|
||||
float speedCopy = speed;
|
||||
float turnSpeedCopy = turnSpeed;
|
||||
Vector2 npcCenter = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 npcCenter = NPC.Center;
|
||||
float targetX = player.position.X + (player.width / 2);
|
||||
float targetY = player.position.Y + (player.height / 2);
|
||||
int flyYLevel = -1;
|
||||
@@ -2874,7 +2874,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -2884,10 +2884,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.Opacity = Main.npc[(int)NPC.ai[2]].Opacity;
|
||||
}
|
||||
|
||||
Vector2 segmentDirection = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 segmentDirection = NPC.Center;
|
||||
float playerXDist = player.position.X + (player.width / 2);
|
||||
float playerYDist = player.position.Y + (player.height / 2);
|
||||
playerXDist = (int)(playerXDist / 16f) * 16;
|
||||
@@ -303,7 +303,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
try
|
||||
{
|
||||
segmentDirection = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
segmentDirection = NPC.Center;
|
||||
playerXDist = Main.npc[(int)NPC.ai[1]].position.X + (Main.npc[(int)NPC.ai[1]].width / 2) - segmentDirection.X;
|
||||
playerYDist = Main.npc[(int)NPC.ai[1]].position.Y + (Main.npc[(int)NPC.ai[1]].height / 2) - segmentDirection.Y;
|
||||
}
|
||||
@@ -442,7 +442,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int cosmiliteDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
int cosmiliteDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -452,10 +452,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
int cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[cosmiliteDust2].noGravity = true;
|
||||
Main.dust[cosmiliteDust2].velocity *= 5f;
|
||||
cosmiliteDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
cosmiliteDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[cosmiliteDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1733,7 +1733,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1745,14 +1745,14 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
{
|
||||
for (int num193 = 0; num193 < 2; num193++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1637,7 +1637,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1649,14 +1649,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -661,7 +661,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 1)
|
||||
{
|
||||
@@ -673,14 +673,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -711,7 +711,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -723,14 +723,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -660,7 +660,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -672,14 +672,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -654,7 +654,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -666,14 +666,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1564,7 +1564,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
@@ -1576,14 +1576,14 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -673,19 +673,19 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
|
||||
int baseDust = vulnerable ? 3 : 1;
|
||||
for (int k = 0; k < baseDust; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -677,20 +677,20 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
|
||||
int baseDust = vulnerable ? 3 : 1;
|
||||
for (int k = 0; k < baseDust; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -1297,20 +1297,20 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
}
|
||||
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -675,20 +675,20 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
|
||||
int baseDust = vulnerable ? 3 : 1;
|
||||
for (int k = 0; k < baseDust; k++)
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
}
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
int plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 0, new Color(0, 255, 255), 2.5f);
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
Main.dust[plasmaDust].velocity *= 3f;
|
||||
plasmaDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
plasmaDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.TerraBlade, 0f, 0f, 100, new Color(0, 255, 255), 1.5f);
|
||||
Main.dust[plasmaDust].velocity *= 2f;
|
||||
Main.dust[plasmaDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ namespace CalamityMod.NPCs.GreatSandShark
|
||||
NPC.localAI[0] = -1f;
|
||||
for (int i = 0; i < 25; i++)
|
||||
{
|
||||
int burrowDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Sand, 0f, 0f, 100, default, 2f);
|
||||
int burrowDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Sand, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[burrowDust].velocity.Y *= 6f;
|
||||
Main.dust[burrowDust].velocity.X *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
@@ -439,10 +439,10 @@ namespace CalamityMod.NPCs.GreatSandShark
|
||||
}
|
||||
for (int j = 0; j < 50; j++)
|
||||
{
|
||||
int burrowDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.UnusedBrown, 0f, 0f, 100, default, 3f);
|
||||
int burrowDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.UnusedBrown, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[burrowDust2].noGravity = true;
|
||||
Main.dust[burrowDust2].velocity.Y *= 10f;
|
||||
burrowDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Sandstorm, 0f, 0f, 100, default, 2f);
|
||||
burrowDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Sandstorm, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[burrowDust2].velocity.X *= 2f;
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ IL_6899:
|
||||
{
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
int burrowDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
int burrowDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[burrowDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -663,10 +663,10 @@ IL_6899:
|
||||
}
|
||||
for (int j = 0; j < 100; j++)
|
||||
{
|
||||
int burrowDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
int burrowDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[burrowDust2].noGravity = true;
|
||||
Main.dust[burrowDust2].velocity *= 5f;
|
||||
burrowDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
burrowDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[burrowDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1135,7 +1135,7 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int killDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 2f);
|
||||
int killDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[killDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -1145,10 +1145,10 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int killDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 3f);
|
||||
int killDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[killDust2].noGravity = true;
|
||||
Main.dust[killDust2].velocity *= 5f;
|
||||
killDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 2f);
|
||||
killDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Demonite, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[killDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.rotation = NPC.velocity.X * 0.02f;
|
||||
NPC.spriteDirection = NPC.direction;
|
||||
|
||||
Vector2 anahitaPos = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 anahitaPos = NPC.Center;
|
||||
float playerXDist = player.position.X + (player.width / 2) - anahitaPos.X;
|
||||
float playerYDist = player.position.Y + (player.height / 2) - 200f * NPC.scale - anahitaPos.Y;
|
||||
float playerDistance = (float)Math.Sqrt(playerXDist * playerXDist + playerYDist * playerYDist);
|
||||
@@ -504,7 +504,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
NPC.rotation = NPC.velocity.X * 0.02f;
|
||||
Vector2 bubbleSpawnPos = new Vector2(NPC.position.X + (NPC.width / 2) + (15 * NPC.direction * NPC.scale), NPC.position.Y + 30 * NPC.scale);
|
||||
Vector2 restingPos = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 restingPos = NPC.Center;
|
||||
float restingPlayerXDist = player.position.X + (player.width / 2) - restingPos.X;
|
||||
float restingPlayerYDist = player.position.Y + (player.height / 2) - restingPos.Y;
|
||||
float restingPlayerDistance = (float)Math.Sqrt(restingPlayerXDist * restingPlayerXDist + restingPlayerYDist * restingPlayerYDist);
|
||||
|
||||
@@ -783,7 +783,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int bloody = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
int bloody = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloody].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -793,10 +793,10 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int bloody2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
int bloody2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[bloody2].noGravity = true;
|
||||
Main.dust[bloody2].velocity *= 5f;
|
||||
bloody2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
bloody2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloody2].velocity *= 2f;
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int earthDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Smoke, 0f, 0f, 100, default, 2f);
|
||||
int earthDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Smoke, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[earthDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -143,10 +143,10 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int earthDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Torch, 0f, 0f, 100, default, 3f);
|
||||
int earthDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Torch, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[earthDust2].noGravity = true;
|
||||
Main.dust[earthDust2].velocity *= 5f;
|
||||
earthDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Torch, 0f, 0f, 100, default, 2f);
|
||||
earthDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Torch, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[earthDust2].velocity *= 2f;
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
int damage = Main.masterMode ? 18 : Main.expertMode ? 22 : 30;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Vector2 projPosition = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
Vector2 projPosition = NPC.Center;
|
||||
float targetXDist = Main.player[NPC.target].position.X + Main.player[NPC.target].width * 0.5f - projPosition.X;
|
||||
float absoluteTargetX = Math.Abs(targetXDist) * 0.1f;
|
||||
float targetYDist = Main.player[NPC.target].position.Y + Main.player[NPC.target].height * 0.5f - projPosition.Y - absoluteTargetX;
|
||||
|
||||
@@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
|
||||
// Activate daytime enrage
|
||||
if (Main.dayTime && !bossRush && NPC.ai[1] != 3f && NPC.ai[1] != 2f)
|
||||
if (Main.IsItDay() && !bossRush && NPC.ai[1] != 3f && NPC.ai[1] != 2f)
|
||||
{
|
||||
// Heal
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int bloody = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
int bloody = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloody].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -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.SulphurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
int toxicDust = Dust.NewDust(NPC.position, 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.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
toxicDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[toxicDust].velocity *= 2f;
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -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.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int toxicDust = Dust.NewDust(NPC.position, 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())
|
||||
@@ -315,10 +315,10 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
int bloody = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
int bloody = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[bloody].noGravity = true;
|
||||
Main.dust[bloody].velocity.Y *= 10f;
|
||||
bloody = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
bloody = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloody].velocity.X *= 2f;
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
int ichorDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[ichorDust].velocity *= 2f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -291,10 +291,10 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
for (int j = 0; j < 32; j++)
|
||||
{
|
||||
int bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1.5f);
|
||||
int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1.5f);
|
||||
Main.dust[bloodDust].noGravity = true;
|
||||
Main.dust[bloodDust].velocity *= 3f;
|
||||
bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1f);
|
||||
bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[bloodDust].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
for (int i = 0; i < 32; i++)
|
||||
{
|
||||
int ichorDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
float dustVelocityYAdd = Math.Abs(Main.dust[ichorDust].velocity.Y) * 0.5f;
|
||||
if (Main.dust[ichorDust].velocity.Y < 0f)
|
||||
Main.dust[ichorDust].velocity.Y = 2f + dustVelocityYAdd;
|
||||
@@ -400,7 +400,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
int ichorDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[ichorDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -411,10 +411,10 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
for (int j = 0; j < 16; j++)
|
||||
{
|
||||
int bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1.5f);
|
||||
int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1.5f);
|
||||
Main.dust[bloodDust].noGravity = true;
|
||||
Main.dust[bloodDust].velocity *= 5f;
|
||||
bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1f);
|
||||
bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[bloodDust].velocity *= 2f;
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int ichorDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[ichorDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -651,10 +651,10 @@ namespace CalamityMod.NPCs.Perforator
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[bloodDust].noGravity = true;
|
||||
Main.dust[bloodDust].velocity *= 5f;
|
||||
bloodDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloodDust].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
int plagueDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 2f);
|
||||
int plagueDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[plagueDust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -403,10 +403,10 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
|
||||
for (int j = 0; j < 70; j++)
|
||||
{
|
||||
int plagueDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 3f);
|
||||
int plagueDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[plagueDust2].noGravity = true;
|
||||
Main.dust[plagueDust2].velocity *= 5f;
|
||||
plagueDust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 2f);
|
||||
plagueDust2 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Plague, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[plagueDust2].velocity *= 2f;
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 549 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user