Merge branch '1.4.4' into LiliesOfFinality
No files matched your search
@@ -210,11 +210,17 @@ namespace CalamityMod.Balancing
|
||||
|
||||
// 25% resist to Lucrecia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<DNA>()))));
|
||||
|
||||
// 20% resist to The Hive.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<HiveNuke>(), ProjectileType<HiveMissile>()))));
|
||||
#endregion
|
||||
|
||||
#region Duke Fishron
|
||||
// 35% vulnerability to Resurrection Butterfly.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.35f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
|
||||
|
||||
// 20% vulnerability to The Hive's bees.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.20f, ProjectileType<BasicPlagueBee>()))));
|
||||
#endregion
|
||||
|
||||
#region Empress of Light
|
||||
@@ -268,6 +274,9 @@ namespace CalamityMod.Balancing
|
||||
#region Moon Lord
|
||||
// 20% resist to Mercurial Tides (True Biome Blade).
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<MercurialTides>(), ProjectileType<MercurialTidesMonolith>(), ProjectileType<MercurialTidesBlast>()))));
|
||||
|
||||
// 20% resist to The Hive.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<HiveNuke>()))));
|
||||
#endregion
|
||||
|
||||
#region Profaned Guardians
|
||||
|
||||
|
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 763 B |
|
Before Width: | Height: | Size: 578 B After Width: | Height: | Size: 669 B |
|
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 801 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 581 B |
@@ -714,8 +714,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool frostSet = false; //vanilla armor
|
||||
public bool victideSet = false;
|
||||
public bool victideSummoner = false;
|
||||
public bool sulfurSet = false;
|
||||
public bool sulfurJump = false;
|
||||
public bool sulphurSet = false;
|
||||
public bool sulphurJump = false;
|
||||
public int sulphurBubbleCooldown = 0;
|
||||
public bool aeroSet = false;
|
||||
public bool statigelSet = false;
|
||||
@@ -1824,7 +1824,7 @@ namespace CalamityMod.CalPlayer
|
||||
victideSet = false;
|
||||
victideSummoner = false;
|
||||
|
||||
sulfurSet = false;
|
||||
sulphurSet = false;
|
||||
|
||||
aeroSet = false;
|
||||
|
||||
@@ -2552,7 +2552,7 @@ namespace CalamityMod.CalPlayer
|
||||
frostSet = false; //vanilla armor
|
||||
victideSet = false;
|
||||
aeroSet = false;
|
||||
sulfurSet = false;
|
||||
sulphurSet = false;
|
||||
statigelSet = false;
|
||||
tarraSet = false;
|
||||
tarraMelee = false;
|
||||
|
||||
@@ -1243,7 +1243,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (!hasIFrames && !Player.creativeGodMode)
|
||||
nextHitDealsDefenseDamage |= proj.Calamity().DealsDefenseDamage;
|
||||
|
||||
if (sulfurSet && !proj.friendly && hurtInfo.Damage > 0)
|
||||
if (sulphurSet && !proj.friendly && hurtInfo.Damage > 0)
|
||||
{
|
||||
if (Main.player[proj.owner] is null)
|
||||
{
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(wDeath, 0);
|
||||
|
||||
ApplyDoTDebuff(irradiated, 4, purity);
|
||||
int sulphurDoT = 6 - (sulfurSet ? 2 : 0) - (sulphurskin ? 2 : 0);
|
||||
int sulphurDoT = 6 - (sulphurSet ? 2 : 0) - (sulphurskin ? 2 : 0);
|
||||
ApplyDoTDebuff(sulphurPoison, sulphurDoT, purity);
|
||||
ApplyDoTDebuff(rTide, 6, purity);
|
||||
ApplyDoTDebuff(weakBrimstoneFlames, 7);
|
||||
@@ -142,7 +142,7 @@ namespace CalamityMod.CalPlayer
|
||||
increment *= 4f + (8f * ASPoisonLevel);
|
||||
if (sulphurskin && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
if (sulfurSet && !ASPoisoning)
|
||||
if (sulphurSet && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
|
||||
SulphWaterPoisoningLevel = MathHelper.Clamp(SulphWaterPoisoningLevel + increment, 0f, 1f);
|
||||
|
||||
@@ -7,7 +7,6 @@ using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.DataStructures;
|
||||
@@ -295,15 +294,15 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < numberOfDusts; i++)
|
||||
{
|
||||
float rot = MathHelper.ToRadians(i * rotFactor);
|
||||
Vector2 offset = new Vector2(Player.velocity.X * Player.direction * 0.7f + 8f, 0).RotatedBy(rot * Main.rand.NextFloat(4f, 5f));
|
||||
Vector2 offset = new Vector2(MathF.Min(Player.velocity.X * Player.direction * 0.7f + 8f, 20f), 0).RotatedBy(rot * Main.rand.NextFloat(4f, 5f));
|
||||
Vector2 velOffset = Vector2.Zero;
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset + Player.velocity, Main.rand.NextBool() ? 35 : 127, new Vector2(velOffset.X, velOffset.Y));
|
||||
dust.noGravity = true;
|
||||
dust.velocity = velOffset;
|
||||
dust.alpha = 100;
|
||||
dust.scale = (Player.velocity.X * Player.direction * 0.08f);
|
||||
dust.scale = MathF.Min(Player.velocity.X * Player.direction * 0.08f, 1.2f);
|
||||
}
|
||||
float sparkscale = (Player.velocity.X * Player.direction * 0.08f);
|
||||
float sparkscale = MathF.Min(Player.velocity.X * Player.direction * 0.08f, 1.2f);
|
||||
Vector2 SparkVelocity1 = Player.velocity.RotatedBy(Player.direction * -3, default) * 0.1f - Player.velocity / 2f;
|
||||
SparkParticle spark = new SparkParticle(Player.Center + Player.velocity.RotatedBy(2f * Player.direction) * 1.5f, SparkVelocity1, false, Main.rand.Next(11, 13), sparkscale, Main.rand.NextBool() ? Color.DarkOrange : Color.OrangeRed);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
@@ -2535,8 +2534,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (brutalCarnage)
|
||||
{
|
||||
Player.GetDamage<MeleeDamageClass>() += 0.25f;
|
||||
Player.GetCritChance<MeleeDamageClass>() += 10;
|
||||
Player.GetDamage<MeleeDamageClass>() += 0.2f;
|
||||
}
|
||||
|
||||
// Trinket of Chi bonus
|
||||
|
||||
@@ -1110,7 +1110,7 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffID.Frostburn2);
|
||||
if (omegaBlueChestplate)
|
||||
target.AddBuff(BuffType<CrushDepth>(), 180);
|
||||
if (sulfurSet)
|
||||
if (sulphurSet)
|
||||
target.AddBuff(BuffID.Poisoned, 120);
|
||||
if (abyssalAmulet)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// 1. Their internal value is not constant, meaning it cannot be used in this enum, and
|
||||
// 2. It's a custom dust.
|
||||
|
||||
SulfurousSeaAcid = 75,
|
||||
SulphurousSeaAcid = 75,
|
||||
Brimstone = 235,
|
||||
Ectoplasm = 180,
|
||||
Necroplasm = 60,
|
||||
|
||||
|
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.DataStructures;
|
||||
@@ -6,6 +7,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -90,6 +92,12 @@ namespace CalamityMod.Items.Accessories
|
||||
player.Calamity().pSoulShieldVisible = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
string adrenTooltip = CalamityWorld.revenge ? this.GetLocalizedValue("ShieldAdren") : "";
|
||||
tooltips.FindAndReplace("[ADREN]", adrenTooltip);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -81,6 +83,12 @@ namespace CalamityMod.Items.Accessories
|
||||
// In vanity, provides a visual shield but no actual functionality
|
||||
public override void UpdateVanity(Player player) => player.Calamity().roverDriveShieldVisible = true;
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
string adrenTooltip = CalamityWorld.revenge ? this.GetLocalizedValue("ShieldAdren") : "";
|
||||
tooltips.FindAndReplace("[ADREN]", adrenTooltip);
|
||||
}
|
||||
|
||||
// Scrappable for 3-5 wulfrum scrap or a 20% chance to get an energy core
|
||||
public override void ExtractinatorUse(int extractinatorBlockType, ref int resultType, ref int resultStack)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -94,6 +96,12 @@ namespace CalamityMod.Items.Accessories
|
||||
// In vanity, provides a visual shield but no actual functionality
|
||||
public override void UpdateVanity(Player player) => player.Calamity().spongeShieldVisible = true;
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
string adrenTooltip = CalamityWorld.revenge ? this.GetLocalizedValue("ShieldAdren") : "";
|
||||
tooltips.FindAndReplace("[ADREN]", adrenTooltip);
|
||||
}
|
||||
|
||||
// Renders the bubble shield over the item in the world.
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
dustXOffset = -40;
|
||||
}
|
||||
int flightDust = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)dustXOffset, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2.4f);
|
||||
int flightDust = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)dustXOffset, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2.4f);
|
||||
Main.dust[flightDust].noGravity = true;
|
||||
Main.dust[flightDust].velocity *= 0.3f;
|
||||
if (Main.rand.NextBool(10))
|
||||
|
||||
@@ -20,7 +20,11 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
Item.defense = 7;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<GenericDamageClass>() += 3;
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += 0.03f;
|
||||
player.GetCritChance<GenericDamageClass>() += 3;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.08f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.moveSpeed += 0.05f;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.08f;
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.08f;
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -76,7 +77,10 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.lunicCorpsSet = true;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
|
||||
// The localization is formatted strangely, but attempting to put the {0} on its own line will leave a blank space if given an empty string
|
||||
string adrenTooltip = CalamityWorld.revenge ? "\n" + this.GetLocalizedValue("ShieldAdren") : "";
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(adrenTooltip);
|
||||
|
||||
player.bulletDamage += 0.1f;
|
||||
player.specialistDamage += 0.1f;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.sulfurSet = true;
|
||||
modPlayer.sulphurSet = true;
|
||||
player.GetJumpState<SulphurJump>().Enable();
|
||||
modPlayer.rogueStealthMax += 0.7f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 10;
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<FleshyGeode>();
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
@@ -13,18 +14,19 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Molten";
|
||||
|
||||
public const int MiningSpeedPercentSetBonus = 10;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText = $"{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
// Nerf the set bonus damage slightly
|
||||
player.GetDamage<MeleeDamageClass>() -= 0.03f;
|
||||
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 300;
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.2f;
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 56;
|
||||
Item.height = 56;
|
||||
Item.damage = 20;
|
||||
Item.damage = 15;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = 21;
|
||||
Item.useTime = 21;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 88;
|
||||
Item.height = 88;
|
||||
Item.damage = 86;
|
||||
Item.damage = 92;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = Item.useTime = 28;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -36,17 +36,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
switch (Main.rand.Next(3))
|
||||
switch (Main.rand.Next(2))
|
||||
{
|
||||
case 0:
|
||||
type = ModContent.ProjectileType<BlazingPhantomBlade>();
|
||||
break;
|
||||
case 1:
|
||||
type = ModContent.ProjectileType<HyperBlade>();
|
||||
break;
|
||||
case 2:
|
||||
case 1:
|
||||
type = ModContent.ProjectileType<SunlightBlade>();
|
||||
break;
|
||||
/*case 2:
|
||||
type = ModContent.ProjectileType<BlazingPhantomBlade>();
|
||||
break;*/
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.noUseGraphic = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useStyle = ItemUseStyleID.Rapier;
|
||||
Item.damage = 190;
|
||||
Item.damage = 138;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = Item.useTime = 13;
|
||||
Item.shoot = ModContent.ProjectileType<ElementalShivProj>();
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 323;
|
||||
Item.damage = 92;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = Item.useAnimation = OriginalUseTime;
|
||||
Item.shoot = ProjectileType<TheHiveHoldout>();
|
||||
@@ -38,6 +38,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.9f, PitchVariance = 0.1f };
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 16;
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] == 0;
|
||||
|
||||
// Spawning the holdout won't consume ammo.
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shoot = ModContent.ProjectileType<MoonFist>();
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -690,7 +690,7 @@ BrimflameFrenzyBuff: {
|
||||
|
||||
BrutalCarnage: {
|
||||
DisplayName: Brutal Carnage
|
||||
Description: 25% increased melee damage and 10% increased melee crit chance
|
||||
Description: 20% increased melee damage
|
||||
}
|
||||
|
||||
ChiBuff: {
|
||||
|
||||
@@ -1281,6 +1281,7 @@ ProfanedSoulArtifact: {
|
||||
'''
|
||||
Summons a healer guardian, which heals for 15 health every few seconds
|
||||
Summons a defensive guardian, which provides a weak shield reinforced by profaned rocks
|
||||
[ADREN]
|
||||
Upon being depleted, the barrier implodes sending the profaned rocks hurtling outwards
|
||||
The barrier starts recharging 5 seconds after being hit
|
||||
Recharging from zero to full charge takes 2 seconds
|
||||
@@ -1289,6 +1290,7 @@ ProfanedSoulArtifact: {
|
||||
The offensive guardian will occasionally fire spears on hit
|
||||
Purity
|
||||
'''
|
||||
ShieldAdren: Halves Adrenaline lost on hit if the shield fully absorbs the hit
|
||||
}
|
||||
|
||||
ProfanedSoulCrystal: {
|
||||
@@ -1433,11 +1435,13 @@ RoverDrive: {
|
||||
Tooltip:
|
||||
'''
|
||||
Projects an energy shield that absorbs up to 20 damage
|
||||
[ADREN]
|
||||
The shield grants 10 defense while active
|
||||
After the shield is broken, it takes 10 seconds to charge back up
|
||||
Being hit again while recharging restarts the charge timer
|
||||
Can also be scrapped at an extractinator
|
||||
'''
|
||||
ShieldAdren: Halves Adrenaline lost on hit if the shield fully absorbs the hit
|
||||
}
|
||||
|
||||
RuinMedallion: {
|
||||
@@ -1858,11 +1862,13 @@ TheSponge: {
|
||||
Tooltip:
|
||||
'''
|
||||
Projects a quantum foam barrier that absorbs up to 180 damage
|
||||
[ADREN]
|
||||
The barrier grants 30 defense and reduces damage taken by 10% while active
|
||||
The barrier starts recharging 9 seconds after being hit
|
||||
Recharging from zero to full charge takes 6 seconds
|
||||
Being hit again while recharging restarts the charge timer
|
||||
'''
|
||||
ShieldAdren: Halves Adrenaline lost on hit if the barrier fully absorbs the hit
|
||||
}
|
||||
|
||||
TheTransformer: {
|
||||
|
||||
@@ -327,7 +327,7 @@ LunicCorpsHelmet: {
|
||||
SetBonus:
|
||||
'''
|
||||
'Finish the fight'
|
||||
Projects a bubble shield that absorbs up to 50 damage
|
||||
Projects a bubble shield that absorbs up to 50 damage {0}
|
||||
The shield starts recharging 5 seconds after being hit
|
||||
Recharging from zero to full charge takes 2 seconds
|
||||
Being hit again while recharging restarts the charge timer
|
||||
@@ -336,6 +336,7 @@ LunicCorpsHelmet: {
|
||||
These are launchers, dartguns, or anything else that doesn't shoot arrows/bullets
|
||||
20% increased jump speed
|
||||
'''
|
||||
ShieldAdren: Halves Adrenaline lost on hit if the shield fully absorbs the hit
|
||||
}
|
||||
|
||||
LunicCorpsVest: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
AerospecBreastplate: {
|
||||
DisplayName: Aerospec Breastplate
|
||||
Tooltip: 3% increased critical strike chance
|
||||
Tooltip: 3% increased damage and critical strike chance
|
||||
CommonSetBonus:
|
||||
'''
|
||||
Taking over 25 damage in one hit will cause a spread of homing feathers to fall
|
||||
@@ -20,7 +20,7 @@ AerospecHat: {
|
||||
|
||||
AerospecHeadgear: {
|
||||
DisplayName: Aerospec Headgear
|
||||
Tooltip: 8% increased rogue damage and 5% increased movement speed
|
||||
Tooltip: 10% increased rogue damage and 5% increased movement speed
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased movement speed and rogue critical strike chance
|
||||
@@ -30,7 +30,7 @@ AerospecHeadgear: {
|
||||
|
||||
AerospecHelm: {
|
||||
DisplayName: Aerospec Helm
|
||||
Tooltip: 8% increased melee damage
|
||||
Tooltip: 10% increased melee damage
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased movement speed and melee critical strike chance
|
||||
@@ -40,7 +40,7 @@ AerospecHelm: {
|
||||
|
||||
AerospecHelmet: {
|
||||
DisplayName: Aerospec Helmet
|
||||
Tooltip: 5% increased movement speed and summon damage
|
||||
Tooltip: 10% increased summon damage and 5% increased movement speed
|
||||
SetBonus:
|
||||
'''
|
||||
11% increased summon damage and +1 max minion
|
||||
@@ -50,7 +50,7 @@ AerospecHelmet: {
|
||||
|
||||
AerospecHood: {
|
||||
DisplayName: Aerospec Hood
|
||||
Tooltip: 8% increased ranged damage
|
||||
Tooltip: 10% increased ranged damage
|
||||
SetBonus: 5% increased movement speed and ranged critical strike chance
|
||||
}
|
||||
|
||||
|
||||
@@ -1328,7 +1328,7 @@ DefiledGreatsword: {
|
||||
'''
|
||||
Fires blazing, hyper, and sunlight blades
|
||||
Gives the player the Brutal Carnage buff on enemy hits
|
||||
This buff increases melee damage by 25% and melee crit chance by 10%
|
||||
This buff increases melee damage by 20%
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -1352,7 +1352,7 @@ BlightedCleaver: {
|
||||
'''
|
||||
Fires homing blazing blades
|
||||
Gives the player the Brutal Carnage buff on enemy hits
|
||||
This buff increases melee damage by 25% and melee crit chance by 10%
|
||||
This buff increases melee damage by 20%
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,8 @@ SetBonus: {
|
||||
Mining: Mining ore will sometimes have additional yield
|
||||
Molten:
|
||||
'''
|
||||
20% extra true melee damage
|
||||
7% extra melee damage, cannot be set on fire
|
||||
10% extra true melee damage
|
||||
Grants immunity to fire blocks and temporary immunity to lava
|
||||
'''
|
||||
MonkTier2:
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("AcidEelGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.rand.NextBool(8) && NPC.catchItem == (short)ModContent.ItemType<GeyserShell>())
|
||||
{
|
||||
int dust = Dust.NewDust(NPC.position - new Vector2(2f, 2f), NPC.width + 4, NPC.height + 4, (int)CalamityDusts.SulfurousSeaAcid, NPC.velocity.X * 0.4f, NPC.velocity.Y * 0.4f, 200, default, 1f);
|
||||
int dust = Dust.NewDust(NPC.position - new Vector2(2f, 2f), NPC.width + 4, NPC.height + 4, (int)CalamityDusts.SulphurousSeaAcid, NPC.velocity.X * 0.4f, NPC.velocity.Y * 0.4f, 200, default, 1f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 1.1f;
|
||||
Main.dust[dust].velocity.Y += 0.25f;
|
||||
@@ -141,13 +141,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -491,7 +491,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -218,13 +218,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
float scale = LaserShootCountdown < 530f ? 2.25f : 1.65f;
|
||||
Vector2 destination = NPC.Top + new Vector2(0f, 6f);
|
||||
Dust dust = Dust.NewDustPerfect(destination + Main.rand.NextVector2CircularEdge(12f, 12f), (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(destination + Main.rand.NextVector2CircularEdge(12f, 12f), (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.Normalize(destination - dust.position) * 3f;
|
||||
dust.scale = scale;
|
||||
dust.noGravity = true;
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
float angle = i / 24f;
|
||||
Vector2 spawnPosition = new Vector2(NPC.Center.X, i);
|
||||
dust = Dust.NewDustPerfect(spawnPosition, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
dust = Dust.NewDustPerfect(spawnPosition, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.scale = 1.5f;
|
||||
dust.velocity = Vector2.UnitX * (float)Math.Cos(angle) * (1f - LaserTelegraphPower) * 4f;
|
||||
dust.noGravity = true;
|
||||
@@ -169,12 +169,12 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
float horizontalSpeed = (float)Math.Sin(angle * DustAngleMultiplier1) * (float)Math.Cos(angle) * 4.5f;
|
||||
float verticalSpeed = (float)Math.Cos(angle * DustAngleMultiplier1) * (float)Math.Sin(angle) * 2f;
|
||||
Vector2 velocity = new Vector2(horizontalSpeed, verticalSpeed);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = velocity;
|
||||
dust.scale = (float)Math.Cos(angle) + 2f;
|
||||
dust.noGravity = true;
|
||||
|
||||
dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
dust = Dust.NewDustPerfect(NPC.Center + angle.ToRotationVector2() * 8f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = -velocity;
|
||||
dust.scale = (float)Math.Cos(angle) + 2f;
|
||||
dust.noGravity = true;
|
||||
@@ -192,11 +192,11 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("GammaSlimeGore").Type, NPC.scale);
|
||||
|
||||
@@ -114,13 +114,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -400,7 +400,7 @@ Continue:
|
||||
int totalDust = (int)(30 * NPC.alpha / 255f);
|
||||
for (int i = 0; i < totalDust; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
dust.velocity = NPC.DirectionFrom(dust.position) * 2f;
|
||||
dust.scale = 1.6f;
|
||||
@@ -423,7 +423,7 @@ Continue:
|
||||
{
|
||||
for (int i = 0; i < 48; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
dust.velocity = NPC.DirectionFrom(dust.position) * Main.rand.NextFloat(2f, 3.6f);
|
||||
dust.scale = 1.8f;
|
||||
@@ -524,7 +524,7 @@ Continue:
|
||||
NPC.alpha = 0;
|
||||
if (DeathrayTime < 240f)
|
||||
{
|
||||
int bigFuckOffDeathrayDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 200, default, 1.5f);
|
||||
int bigFuckOffDeathrayDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 200, default, 1.5f);
|
||||
Main.dust[bigFuckOffDeathrayDust].noGravity = true;
|
||||
Main.dust[bigFuckOffDeathrayDust].velocity *= 0.75f;
|
||||
Main.dust[bigFuckOffDeathrayDust].fadeIn = 1.3f;
|
||||
@@ -597,7 +597,7 @@ Continue:
|
||||
|
||||
for (int i = 0; i < 60; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center, 45, 45, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(NPC.Center, 45, 45, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Utils.NextVector2Unit(Main.rand) * Main.rand.NextFloat(4f, 15f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(2f, 3f);
|
||||
@@ -659,7 +659,7 @@ Continue:
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore4").Type, NPC.scale);
|
||||
}
|
||||
for (int i = 0; i < 25; i++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
SoundEngine.PlaySound(SoundID.DD2_WyvernDiveDown, NPC.Center);
|
||||
for (int i = 0; i < 36; i++)
|
||||
{
|
||||
Dust acid = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust acid = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
acid.velocity = (MathHelper.TwoPi * i / 36f).ToRotationVector2() * 6f;
|
||||
acid.scale = 1.1f;
|
||||
acid.noGravity = true;
|
||||
@@ -188,7 +188,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 8; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SkyfinGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -244,15 +244,15 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SulphurousSkaterGore3").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
for (int k = 0; k < 30; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 dust = (Vector2.Normalize(npc.velocity) * new Vector2(npc.width / 2f, npc.height) * 0.75f * 0.5f).RotatedBy((i - (dustAmt / 2 - 1)) * MathHelper.TwoPi / dustAmt) + npc.Center;
|
||||
Vector2 vector2 = dust - npc.Center;
|
||||
int toxicDust = Dust.NewDust(dust + vector2, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector2.X * 2f, vector2.Y * 2f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(dust + vector2, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector2.X * 2f, vector2.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
Main.dust[toxicDust].noLight = true;
|
||||
Main.dust[toxicDust].velocity = Vector2.Normalize(vector2) * 3f;
|
||||
@@ -632,7 +632,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((j - (chargeDustAmt / 2 - 1)) * pie / chargeDustAmt) + npc.Center;
|
||||
Vector2 vector4 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int chargeDust = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector4.X * 2f, vector4.Y * 2f, 100, default, 1.4f);
|
||||
int chargeDust = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector4.X * 2f, vector4.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[chargeDust].noGravity = true;
|
||||
Main.dust[chargeDust].noLight = true;
|
||||
Main.dust[chargeDust].velocity /= 4f;
|
||||
@@ -693,7 +693,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
@@ -1011,7 +1011,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_1A97_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((k - (phase2ChargeDustAmt / 2 - 1)) * pie / phase2ChargeDustAmt) + npc.Center;
|
||||
Vector2 vector9 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int phase2ChargeDust = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector9.X * 2f, vector9.Y * 2f, 100, default, 1.4f);
|
||||
int phase2ChargeDust = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector9.X * 2f, vector9.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[phase2ChargeDust].noGravity = true;
|
||||
Main.dust[phase2ChargeDust].noLight = true;
|
||||
Main.dust[phase2ChargeDust].velocity /= 4f;
|
||||
@@ -1075,7 +1075,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
@@ -1417,7 +1417,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
{
|
||||
Vector2 arg_2444_0 = (Vector2.Normalize(npc.velocity) * new Vector2((npc.width + 50) / 2f, npc.height) * 0.75f).RotatedBy((m - (phase3ChargeDustAmt / 2 - 1)) * pie / phase3ChargeDustAmt) + npc.Center;
|
||||
Vector2 vector11 = ((float)(Main.rand.NextDouble() * pie) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8);
|
||||
int phase3ChargeDust = Dust.NewDust(arg_2444_0 + vector11, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, vector11.X * 2f, vector11.Y * 2f, 100, default, 1.4f);
|
||||
int phase3ChargeDust = Dust.NewDust(arg_2444_0 + vector11, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, vector11.X * 2f, vector11.Y * 2f, 100, default, 1.4f);
|
||||
Main.dust[phase3ChargeDust].noGravity = true;
|
||||
Main.dust[phase3ChargeDust].noLight = true;
|
||||
Main.dust[phase3ChargeDust].velocity /= 4f;
|
||||
@@ -1617,7 +1617,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
dustID = (int)CalamityDusts.SulfurousSeaAcid;
|
||||
dustID = (int)CalamityDusts.SulphurousSeaAcid;
|
||||
break;
|
||||
default:
|
||||
dustID = DustID.Blood;
|
||||
|
||||
@@ -5230,7 +5230,7 @@ namespace CalamityMod.NPCs
|
||||
if (hurtInfo.Damage <= 0)
|
||||
return;
|
||||
|
||||
if (target.Calamity().sulfurSet)
|
||||
if (target.Calamity().sulphurSet)
|
||||
npc.AddBuff(BuffID.Poisoned, 120);
|
||||
|
||||
if (target.Calamity().snowman)
|
||||
|
||||
@@ -71,13 +71,13 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
int onHitDust = 0;
|
||||
while (onHitDust < hit.Damage / NPC.lifeMax * 100.0)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
onHitDust++;
|
||||
}
|
||||
}
|
||||
@@ -490,7 +490,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
{
|
||||
for (int r = 0; r < 150; r++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 2 * hit.HitDirection, -2f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 2 * hit.HitDirection, -2f, 0, default, 1f);
|
||||
}
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
|
||||
@@ -234,12 +234,12 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
NPC.position.X = NPC.position.X + NPC.width / 2;
|
||||
NPC.position.Y = NPC.position.Y + NPC.height / 2;
|
||||
@@ -261,10 +261,10 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int j = 0; j < 30; j++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
Main.dust[toxicDust].velocity *= 5f;
|
||||
toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[toxicDust].velocity *= 2f;
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -286,12 +286,12 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath12, NPC.Center);
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int toxicDust = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[toxicDust].velocity.Y *= 6f;
|
||||
Main.dust[toxicDust].velocity.X *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulphurousSeaAcid, hit.HitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
}
|
||||
if (NPC.ai[0] % 32f == 31f)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(1f, 2f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.6f;
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
{
|
||||
for (int k = 0; k < 6; k++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(NPC.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(1f, 2f);
|
||||
dust.scale = 1.2f;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Main.dust[blood].noGravity = true;
|
||||
Main.dust[blood].velocity *= 0f;
|
||||
|
||||
int acid = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int acid = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Main.dust[acid].noGravity = true;
|
||||
Main.dust[acid].velocity *= 0f;
|
||||
}
|
||||
@@ -75,10 +75,10 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int d = 0; d < 6; d++)
|
||||
{
|
||||
int acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default(Color), 3f);
|
||||
int acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default(Color), 3f);
|
||||
Main.dust[acid].noGravity = true;
|
||||
Main.dust[acid].velocity *= 5f;
|
||||
acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default(Color), 2f);
|
||||
acid = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default(Color), 2f);
|
||||
Main.dust[acid].velocity *= 2f;
|
||||
Main.dust[acid].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.6f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.6f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0.3f;
|
||||
}
|
||||
@@ -50,10 +50,10 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Main.rand.NextBool(var))
|
||||
{
|
||||
dustOffset = dustOffset.RotatedBy(angleIncrement);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[dust].position = Projectile.Center + dustOffset;
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity = Vector2.Normalize(Projectile.Center - Main.dust[dust].position) * 24f;
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int i = 0; i < 160; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Top + Vector2.UnitY * 100f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Top + Vector2.UnitY * 100f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(5f, 23f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 3f;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.velocity *= 1.01f;
|
||||
|
||||
int vileDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y),
|
||||
Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.1f, Projectile.velocity.Y * 0.1f, 100, default, 1.5f);
|
||||
Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.1f, Projectile.velocity.Y * 0.1f, 100, default, 1.5f);
|
||||
Main.dust[vileDust].noGravity = true;
|
||||
|
||||
Projectile.rotation += 0.3f * (float)Projectile.direction;
|
||||
@@ -51,11 +51,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.Center);
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
int killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 2.5f);
|
||||
int killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 2.5f);
|
||||
Main.dust[killDust].noGravity = true;
|
||||
Dust dust = Main.dust[killDust];
|
||||
dust.velocity *= 2f;
|
||||
killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 1.2f);
|
||||
killDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, -Projectile.velocity.X * 0.2f, -Projectile.velocity.Y * 0.2f, 100, default, 1.2f);
|
||||
dust = Main.dust[killDust];
|
||||
dust.velocity *= 2f;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
for (int i = 0; i < 120; i++)
|
||||
{
|
||||
int type = Main.rand.NextBool(3) ? 261 : (int)CalamityDusts.SulfurousSeaAcid;
|
||||
int type = Main.rand.NextBool(3) ? 261 : (int)CalamityDusts.SulphurousSeaAcid;
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(10f, 10f), type);
|
||||
dust.scale = Main.rand.NextFloat(1.3f, 1.5f);
|
||||
dust.velocity = Main.rand.NextVector2CircularEdge(15f, 15f);
|
||||
|
||||
@@ -46,10 +46,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -117,21 +117,21 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
float theta = Projectile.velocity.ToRotation() + Main.rand.NextBool().ToDirectionInt() * MathHelper.PiOver2;
|
||||
float speed = (float)Main.rand.NextDouble() * 2f + 2f;
|
||||
Vector2 velocity = theta.ToRotationVector2() * speed;
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.1f;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.ToRadians(55f)).RotatedBy(Projectile.rotation);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.8f;
|
||||
}
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = (i / 16f * MathHelper.TwoPi).ToRotationVector2() * 3f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.4f;
|
||||
|
||||
@@ -42,10 +42,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -61,14 +61,14 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
Projectile.Damage();
|
||||
for (int i = 0; i <= 40; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 200, 200, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 200, 200, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * (Main.dust[idx].position - Projectile.Center).Length() / 30f;
|
||||
Main.dust[idx].scale = 2.5f;
|
||||
}
|
||||
for (int i = 0; i <= 90; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 8f;
|
||||
Main.dust[idx].scale = 3f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
|
||||
@@ -48,14 +48,14 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
Projectile.Damage();
|
||||
for (int i = 0; i <= 40; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 100, 100, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 100, 100, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * (Main.dust[idx].position - Projectile.Center).Length() / 30f;
|
||||
Main.dust[idx].scale = 2.5f;
|
||||
}
|
||||
for (int i = 0; i <= 90; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
int idx = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
Main.dust[idx].velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 8f;
|
||||
Main.dust[idx].scale = 3f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
|
||||
@@ -112,21 +112,21 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
float theta = Projectile.velocity.ToRotation() + Main.rand.NextBool().ToDirectionInt() * MathHelper.PiOver2;
|
||||
float speed = (float)Main.rand.NextDouble() * 2f + 2f;
|
||||
Vector2 velocity = theta.ToRotationVector2() * speed;
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
Dust dust = Dust.NewDustDirect(beamEndPosiiton, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, velocity.X, velocity.Y, 0, default, 1f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.1f;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.ToRadians(55f)).RotatedBy(Projectile.rotation);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 1.8f;
|
||||
}
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(beamEndPosiiton, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = (i / 16f * MathHelper.TwoPi).ToRotationVector2() * 3f;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.4f;
|
||||
|
||||
@@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -57,10 +57,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 4; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
Vector2 positionDelta = Projectile.velocity / 3f * i;
|
||||
int spawnDelta = 14;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Dust dust = Main.dust[dustIdx];
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.1f;
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int spawnDelta = 16;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
Main.dust[dustIdx].velocity *= 0.25f;
|
||||
Main.dust[dustIdx].velocity += Projectile.velocity * 0.5f;
|
||||
}
|
||||
|
||||
@@ -38,10 +38,10 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
Vector2 positionDelta = Projectile.velocity / 3f * i;
|
||||
int spawnDelta = 14;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1f);
|
||||
Dust dust = Main.dust[dustIdx];
|
||||
dust.noGravity = true;
|
||||
dust.velocity *= 0.1f;
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int spawnDelta = 16;
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
int dustIdx = Dust.NewDust(new Vector2(Projectile.position.X + spawnDelta, Projectile.position.Y + spawnDelta), Projectile.width - spawnDelta * 2, Projectile.height - spawnDelta * 2, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 0.5f);
|
||||
Main.dust[dustIdx].velocity *= 0.25f;
|
||||
Main.dust[dustIdx].velocity += Projectile.velocity * 0.5f;
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
int idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
idx = Dust.NewDust(Projectile.position, 8, 8, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 0.75f);
|
||||
Main.dust[idx].noGravity = true;
|
||||
Main.dust[idx].velocity *= 3f;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
int inc;
|
||||
for (int i = 0; i < 25; i = inc + 1)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 0, default, 1f);
|
||||
int toxicDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[toxicDust].position = (Main.dust[toxicDust].position + Projectile.position) / 2f;
|
||||
Main.dust[toxicDust].velocity = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
Main.dust[toxicDust].velocity.Normalize();
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
for (int i = 0; i < 23; i++)
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, 10, 10, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, 10, 10, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath1 with { Volume = SoundID.NPCDeath1.Volume * 0.5f }, Projectile.Center);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulfurousSeaAcid, 0, 0, 0, default, 1.5f);
|
||||
int dust = Dust.NewDust(Projectile.Center, 1, 1, (int)CalamityDusts.SulphurousSeaAcid, 0, 0, 0, default, 1.5f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.penetrate = 5;
|
||||
Projectile.penetrate = 4;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 20;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 topRight = Projectile.Center + Projectile.velocity.RotatedBy(MathHelper.PiOver2) * 40f;
|
||||
foreach (Vector2 spawnPosition in new BezierCurve(topLeft, top, topRight).GetPoints(50))
|
||||
{
|
||||
Dust sulphurousAcid = Dust.NewDustPerfect(spawnPosition + Projectile.velocity * 16f, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust sulphurousAcid = Dust.NewDustPerfect(spawnPosition + Projectile.velocity * 16f, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
sulphurousAcid.velocity = Projectile.velocity * 4f;
|
||||
sulphurousAcid.noGravity = true;
|
||||
sulphurousAcid.scale = 1.2f;
|
||||
@@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 rotatedHandPosition = player.RotatedRelativePoint(player.position + handOffset, true);
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(player.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 150, default, 1.3f);
|
||||
Dust dust = Dust.NewDustDirect(player.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 150, default, 1.3f);
|
||||
dust.position = rotatedHandPosition;
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords
|
||||
Projectile.hide = true;
|
||||
Projectile.ownerHitCheck = true;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 8;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
}
|
||||
|
||||
public override void SetVisualOffsets()
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.velocity.X *= 0.9f;
|
||||
Projectile.velocity.Y *= 0.9f;
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
int randAmt = Main.rand.Next(5, 9);
|
||||
for (int i = 0; i < randAmt; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].velocity *= 0.8f;
|
||||
Main.dust[toxicDust].position = Vector2.Lerp(Main.dust[toxicDust].position, Projectile.Center, 0.5f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.velocity.X *= 0.9f;
|
||||
Projectile.velocity.Y *= 0.9f;
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
int randAmt = Main.rand.Next(5, 9);
|
||||
for (int i = 0; i < randAmt; i++)
|
||||
{
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
int toxicDust = Dust.NewDust(Projectile.Center, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 1.4f);
|
||||
Main.dust[toxicDust].velocity *= 0.8f;
|
||||
Main.dust[toxicDust].position = Vector2.Lerp(Main.dust[toxicDust].position, Projectile.Center, 0.5f);
|
||||
Main.dust[toxicDust].noGravity = true;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int count = Main.rand.Next(6, 15);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[idx].velocity *= 2f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (Projectile.numHits > 1)
|
||||
Projectile.damage = (int)(Projectile.damage * 0.8f);
|
||||
Projectile.damage = (int)(Projectile.damage * 0.6f);
|
||||
if (Projectile.damage < 1)
|
||||
Projectile.damage = 1;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
for (int k = 0; k < (isClusterRocket ? 3f : 2f); k++)
|
||||
{
|
||||
int BEES = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(4, 10).RotatedByRandom(4) * Main.rand.NextFloat(0.2f, 0.8f), ModContent.ProjectileType<BasicPlagueBee>(), (int)(Projectile.damage * (isClusterRocket ? 0.2f : 0.4f)), 0f, Projectile.owner, 0f, 0f, isClusterRocket ? 2f : 1f);
|
||||
int BEES = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(4, 10).RotatedByRandom(4) * Main.rand.NextFloat(0.2f, 0.8f), ModContent.ProjectileType<BasicPlagueBee>(), (int)(Projectile.damage * (isClusterRocket ? 0.2f : 0.3f)), 0f, Projectile.owner, 0f, 0f, isClusterRocket ? 2f : 1f);
|
||||
if (BEES.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[BEES].penetrate = 1;
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (Projectile.numHits > 1)
|
||||
Projectile.damage = (int)(Projectile.damage * 0.90f);
|
||||
Projectile.damage = (int)(Projectile.damage * 0.7f);
|
||||
if (Projectile.damage < 1)
|
||||
Projectile.damage = 1;
|
||||
}
|
||||
@@ -195,7 +195,14 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
Owner.Calamity().GeneralScreenShakePower = 9.5f;
|
||||
|
||||
var info = new CalamityUtils.RocketBehaviorInfo((int)RocketID);
|
||||
var info = new CalamityUtils.RocketBehaviorInfo((int)RocketID)
|
||||
{
|
||||
// Since we use our own spawning method for the cluster rockets, we don't need them to shoot anything,
|
||||
// we'll do it ourselves.
|
||||
clusterProjectileID = ProjectileID.None,
|
||||
destructiveClusterProjectileID = ProjectileID.None,
|
||||
};
|
||||
|
||||
int blastRadius = (int)(Projectile.RocketBehavior(info) * 5f);
|
||||
Projectile.ExpandHitboxBy((float)blastRadius);
|
||||
if (RocketID == ItemID.RocketII || RocketID == ItemID.RocketIV || RocketID == ItemID.MiniNukeII || RocketID == ItemID.DryRocket || RocketID == ItemID.WetRocket || RocketID == ItemID.LavaRocket || RocketID == ItemID.HoneyRocket)
|
||||
@@ -236,7 +243,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
for (int k = 0; k < (int)((Main.zenithWorld ? 100 : 20) * (isClusterRocket ? 1.5f : 1)); k++)
|
||||
{
|
||||
int BEES = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 0.8f), ModContent.ProjectileType<BasicPlagueBee>(), (int)(Projectile.damage * (isClusterRocket ? 0.1f : 0.15f)), 0f, Projectile.owner, 0f, 0f, isClusterRocket ? 2f : 1f);
|
||||
int BEES = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 0.8f), ModContent.ProjectileType<BasicPlagueBee>(), (int)(Projectile.damage * (isClusterRocket ? 0.03f : 0.04f)), 0f, Projectile.owner, 0f, 0f, isClusterRocket ? 2f : 1f);
|
||||
if (BEES.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[BEES].penetrate = 1;
|
||||
|
||||
@@ -210,7 +210,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
tipPosition,
|
||||
shootDirection * projSpeed * 0.3f,
|
||||
ProjectileType<HiveNuke>(),
|
||||
damage,
|
||||
damage * 10,
|
||||
knockback,
|
||||
Projectile.owner,
|
||||
rocketType);
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
tipPosition,
|
||||
perturbedSpeed * projSpeed * VelocityMultiplier,
|
||||
ProjectileType<HiveMissile>(),
|
||||
damage / 4,
|
||||
damage,
|
||||
knockback,
|
||||
Projectile.owner,
|
||||
rocketType);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int count = Main.rand.Next(6, 15);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulphurousSeaAcid, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[idx].velocity *= 2f;
|
||||
Main.dust[idx].noGravity = true;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Vector2.UnitY.RotatedBy(i / 15f * MathHelper.TwoPi) * 3f * (float)Math.Cos(i / 15f * MathHelper.TwoPi);
|
||||
dust.scale = 2.5f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
dust.velocity = Projectile.width / 33.333f * Vector2.One.RotatedByRandom(MathHelper.TwoPi);
|
||||
dust.scale = Projectile.width == 120 ? 3.1f : 2.2f;
|
||||
dust.noGravity = true;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid);
|
||||
Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||