Merge pull request #1575 from CalamityTeam/cit-miscell

Cit miscell branch (huge)
This commit is contained in:
Altixal authored and GitHub committed 2026-07-19 08:32:45 +07:00
commit 8bd24982ac
169 files changed
+797 -2590

No files matched your search

+2 -2
View File
@@ -95,8 +95,8 @@ namespace CalamityMod.Balancing
#endregion
#region Wall of Flesh
// 40% resist to Corro/Crimslime Staff.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.WallofFleshEye, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CrimslimeMinion>(), ProjectileType<CorroslimeMinion>()))));
// 50% resist to Staff of Necrosteocytes.
NPCSpecificBalancingChanges.AddRange(Bundle(new List<int> { NPCID.WallofFlesh, NPCID.WallofFleshEye }, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<SmallSkeletonMinion>()))));
#endregion
#region Aquatic Scourge
@@ -1,11 +1,11 @@
using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Summon;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class BabySlimeGodBuff : BaseSummonBuff
public class BabyPaladinBuff : BaseSummonBuff
{
protected override int MinionProjectileType => ModContent.ProjectileType<CrimsonSlimeGodMinion>();
protected override int MinionProjectileType => ModContent.ProjectileType<StatigelBlightedSlime>();
protected override ref bool MinionBool => ref BuffModdedOwner.sGod;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

@@ -1,12 +1,12 @@
using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Summon;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class Corroslime : BaseSummonBuff
public class BlightedSlime : BaseSummonBuff
{
protected override int MinionProjectileType => ModContent.ProjectileType<CorroslimeMinion>();
protected override int MinionProjectileType => ModContent.ProjectileType<BlightedSlimeMinion>();
protected override ref bool MinionBool => ref BuffModdedOwner.cSlime;
protected override ref bool MinionBool => ref BuffModdedOwner.blightedSlime;
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 547 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 543 B

After

Width:  |  Height:  |  Size: 543 B

-12
View File
@@ -1,12 +0,0 @@
using CalamityMod.Projectiles.Summon;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class Crimslime : BaseSummonBuff
{
protected override int MinionProjectileType => ModContent.ProjectileType<CrimslimeMinion>();
protected override ref bool MinionBool => ref BuffModdedOwner.cSlime2;
}
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Summon
{
CalamityPlayer modPlayer = player.Calamity();
if (!modPlayer.allElementals)
if (!modPlayer.allElementals.HasValue)
{
player.DelBuff(buffIndex);
buffIndex--;
+16 -22
View File
@@ -1077,15 +1077,15 @@ namespace CalamityMod.CalPlayer
public bool jellyChargedBattery = false;
/// <summary> General cooldown for accessories which spawn projectiles on minion hits. </summary>
public float summonProjCooldown;
public bool sandElemental = false;
public bool? sandElemental = null;
public bool sandElementalVanity = false;
public bool oasisElemental = false;
public bool? oasisElemental = null;
public bool oasisElementalVanity = false;
public bool cloudElemental = false;
public bool? cloudElemental = null;
public bool cloudElementalVanity = false;
public bool brimElemental = false;
public bool? brimElemental = null;
public bool brimElementalVanity = false;
public bool waterElemental = false;
public bool? waterElemental = null;
public bool waterElementalVanity = false;
public bool fungalClump = false;
public bool fungalClumpVanity = false;
@@ -1227,7 +1227,6 @@ namespace CalamityMod.CalPlayer
public bool bloodflareFrenzy = false;
public int bloodflareMeleeHits = 0;
public bool bloodflareRanged = false;
public bool bloodflareThrowing = false;
public bool bloodflareMage = false;
public int bloodflareMageCooldown = 0;
public bool bloodflareSummon = false;
@@ -1516,10 +1515,8 @@ namespace CalamityMod.CalPlayer
public bool CalamarisLament = false;
/// <summary> Entropy's Vigil. </summary>
public bool cEyes = false;
/// <summary> Corroslime Staff. </summary>
public bool cSlime = false;
/// <summary> Crimslime Staff. </summary>
public bool cSlime2 = false;
/// <summary> Blighted Slime Staff. </summary>
public bool blightedSlime = false;
/// <summary> Abandoned Slime Staff. </summary>
public bool aSlime = false;
public bool brittleStar = false;
@@ -1550,7 +1547,7 @@ namespace CalamityMod.CalPlayer
/// <summary> Enchanted Conch. </summary>
public bool hCrab = false;
/// <summary> Heart of the Elements. </summary>
public bool allElementals = false;
public bool? allElementals = null;
/// <summary> Heart of the Elements; however, the minions will not attack. </summary>
public bool allElementalsVanity = false;
/// <summary> Silva armor's Silva Crystal. </summary>
@@ -2592,7 +2589,6 @@ namespace CalamityMod.CalPlayer
bloodflareMelee = false;
bloodflareFrenzy = false;
bloodflareRanged = false;
bloodflareThrowing = false;
bloodflareMage = false;
bloodflareSummon = false;
@@ -2775,8 +2771,7 @@ namespace CalamityMod.CalPlayer
cosmicViper = false;
CalamarisLament = false;
cEyes = false;
cSlime = false;
cSlime2 = false;
blightedSlime = false;
aSlime = false;
brittleStar = false;
aquaticStar = false;
@@ -2811,17 +2806,17 @@ namespace CalamityMod.CalPlayer
cSpirit = false;
dCrystal = false;
MutatedTruffleBool = false;
sandElemental = false;
sandElemental = null;
sandElementalVanity = false;
oasisElemental = false;
oasisElemental = null;
oasisElementalVanity = false;
cloudElemental = false;
cloudElemental = null;
cloudElementalVanity = false;
brimElemental = false;
brimElemental = null;
brimElementalVanity = false;
waterElemental = false;
waterElemental = null;
waterElementalVanity = false;
allElementals = false;
allElementals = null;
allElementalsVanity = false;
fungalClump = false;
fungalClumpVanity = false;
@@ -3375,7 +3370,6 @@ namespace CalamityMod.CalPlayer
bloodflareFrenzy = false;
bloodflareMeleeHits = 0;
bloodflareRanged = false;
bloodflareThrowing = false;
bloodflareMage = false;
bloodflareSummon = false;
bloodflareSummonTimer = 0;
@@ -5327,7 +5321,7 @@ namespace CalamityMod.CalPlayer
EnhancedDarknessSystem.lights.Add(new(lastDeerclopsPosition.Value, scale: DeerclopsAI.borderScale, texture: DeerclopsAI.ArenaTex.Value));
//we draw light around the player when far away so they have some visibility, although very small. This is especially nice in multiplayer. we scale opacity with distance bc it looks better
EnhancedDarknessSystem.lights.Add(new EnhancedDarknessSystem.LightSource(scale: 0.75f, opacity: MathHelper.Clamp(Main.LocalPlayer.DistanceSQ(lastDeerclopsPosition.Value) / (409600 /*640^2*/), 0, 1)));
EnhancedDarknessSystem.lights.Add(new EnhancedDarknessSystem.LightSource(scale: 0.75f, opacity: MathHelper.Clamp(Main.LocalPlayer.DistanceSQ(lastDeerclopsPosition.Value) / 409600, 0, 1)));
if (darknessIntensity == 0)
{
+1 -1
View File
@@ -556,7 +556,7 @@ namespace CalamityMod.CalPlayer
}
}
public override void ModifyHitNPCWithProj(Projectile proj, NPC target, ref NPC.HitModifiers modifiers)/* tModPorter If you don't need the Projectile, consider using ModifyHitNPC instead */
public override void ModifyHitNPCWithProj(Projectile proj, NPC target, ref NPC.HitModifiers modifiers)
{
if (proj.npcProj || proj.trap)
return;
+6 -11
View File
@@ -1138,6 +1138,7 @@ namespace CalamityMod.CalPlayer
Asset<Texture2D> carpetAuric = ExtraTextureRefs.FlyingCarpetAuric;
Asset<Texture2D> carpetOriginal = ExtraTextureRefs.FlyingCarpetVanilla;
TextureAssets.FlyingCarpet = (auricSet ? carpetAuric : carpetOriginal);
TextureAssets.Buff[ModContent.BuffType<BlightedSlime>()] = WorldGen.crimson ? ExtraTextureRefs.BlightedSlimeCrimIcon : ExtraTextureRefs.BlightedSlimeCorroIcon;
for (int l = 0; l < Player.MaxBuffs; l++)
{
@@ -2764,9 +2765,6 @@ namespace CalamityMod.CalPlayer
if (Player.buffTime[l] <= 2 && buffID == ModContent.BuffType<Buffs.StatBuffs.TarragonImmunity>())
if (Player.whoAmI == Main.myPlayer)
Player.AddCooldown(Cooldowns.TarragonImmunity.ID, TarragonHeadRogue.ImmunityCooldown);
if (CalamityBuffSets.IsDebuff[buffID])
Player.GetDamage<RogueDamageClass>() += TarragonHeadRogue.RogueDamageBoostWhileDebuffed;
}
}
@@ -2832,6 +2830,10 @@ namespace CalamityMod.CalPlayer
if (Player.ichor)
Player.statDefense += 5;
// Holding Walking Cane increases movement speed
if (Player.HeldItem.type == ModContent.ItemType<WalkingCane>())
Player.moveSpeed += WalkingCane.MoveSpeedBoost;
// Fairy Boots bonus
if (fairyBoots)
{
@@ -3637,8 +3639,7 @@ namespace CalamityMod.CalPlayer
--bloodflareCoreRemainingHealOverTime;
}
// Reduce how slow Chilled makes the player, because it's cancerous right now
// Reduce how slow Chilled makes the player
// The moveSpeed multiplier for Chilled in vanilla is 0.75, so we just multiply by 1.166667 here to make it 0.875, effectively cutting the reduction in half
if (Player.chilled)
Player.moveSpeed *= 1f + (1f / 6f);
@@ -3937,12 +3938,6 @@ namespace CalamityMod.CalPlayer
Player.AddBuff(BuffID.Inferno, 2);
}
if (bloodflareThrowing)
{
if (Player.statLife > (int)(Player.statLifeMax2 * BloodflareHeadRogue.DefenseBoostHealthThreshold))
Player.statDefense += BloodflareHeadRogue.DefenseBoostAboveHealthThreshold;
}
if (bloodflareSummon)
{
if (Player.statLife <= (int)(Player.statLifeMax2 * BloodflareHeadSummon.DefenseBoostHealthThreshold))
+2 -2
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.CalPlayer
#endregion
#region On Hit NPC
public override void OnHitNPCWithItem(Item item, NPC target, NPC.HitInfo hit, int damageDone)/* tModPorter If you don't need the Item, consider using OnHitNPC instead */
public override void OnHitNPCWithItem(Item item, NPC target, NPC.HitInfo hit, int damageDone)
{
if (Player.whoAmI != Main.myPlayer)
return;
@@ -207,7 +207,7 @@ namespace CalamityMod.CalPlayer
#endregion
#region On Hit NPC With Proj
public override void OnHitNPCWithProj(Projectile proj, NPC target, NPC.HitInfo hit, int damageDone)/* tModPorter If you don't need the Projectile, consider using OnHitNPC instead */
public override void OnHitNPCWithProj(Projectile proj, NPC target, NPC.HitInfo hit, int damageDone)
{
if (Player.whoAmI != Main.myPlayer)
return;
+2 -2
View File
@@ -3,7 +3,7 @@ sampler uImage1 : register(s1);
float3 uColor;
float3 uSecondaryColor;
float uOpacity;
float uSaturation;
float uSaturation; // Saturation gets used as a "true" opacity
float uRotation;
float uTime;
float4 uSourceRect;
@@ -20,7 +20,7 @@ float4 Recolor(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
float4 color = tex2D(uImage0, coords);
float originalAlpha = color.a;
color.rbg = lerp(color.rbg, uColor, uOpacity);
return color * originalAlpha;
return color * originalAlpha * uSaturation;
}
Binary file not shown.
+10 -4
View File
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework.Graphics;
using CalamityMod.Buffs.Summon;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria;
using Terraria.GameContent;
@@ -15,8 +16,7 @@ namespace CalamityMod.ExtraTextures
public static Asset<Texture2D> DestroyerBodyGlowmask;
public static Asset<Texture2D> DestroyerTailGlowmask;
// WoF, These are not "exactly" the ExtraTextures. But
public static Asset<Texture2D> WallOfFleshEyeGlowmask;
// WoF, These are not "exactly" the ExtraTextures
public static Asset<Texture2D> WallOfFleshDemonSickleTexture;
// Flying Carpet Replacements
@@ -28,6 +28,10 @@ namespace CalamityMod.ExtraTextures
public static Asset<Texture2D> LuckIconVanilla;
public static Asset<Texture2D> LuckIconLesser;
// Blighted Slime Buff icons
public static Asset<Texture2D> BlightedSlimeCorroIcon;
public static Asset<Texture2D> BlightedSlimeCrimIcon;
// Particles
public static Asset<Texture2D> CircularSmear;
public static Asset<Texture2D> CircularSmearFire1;
@@ -42,7 +46,6 @@ namespace CalamityMod.ExtraTextures
DestroyerBodyGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
DestroyerTailGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
WallOfFleshEyeGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/WallOfFleshEyeTelegraphGlow", AssetRequestMode.AsyncLoad);
WallOfFleshDemonSickleTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad);
FlyingCarpetVanilla = TextureAssets.FlyingCarpet;
@@ -52,6 +55,9 @@ namespace CalamityMod.ExtraTextures
LuckIconVanilla = TextureAssets.Buff[BuffID.Lucky];
LuckIconLesser = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBuffs/LuckyLesser", AssetRequestMode.AsyncLoad);
BlightedSlimeCorroIcon = ModContent.Request<Texture2D>("CalamityMod/Buffs/Summon/BlightedSlime");
BlightedSlimeCrimIcon = ModContent.Request<Texture2D>("CalamityMod/Buffs/Summon/BlightedSlimeCrimson");
CircularSmear = ModContent.Request<Texture2D>("CalamityMod/Particles/CircularSmear", AssetRequestMode.AsyncLoad);
CircularSmearFire1 = ModContent.Request<Texture2D>("CalamityMod/Particles/CircularSmearFire1", AssetRequestMode.AsyncLoad);
CircularSmearFire2 = ModContent.Request<Texture2D>("CalamityMod/Particles/CircularSmearFire2", AssetRequestMode.AsyncLoad);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

-8
View File
@@ -237,14 +237,6 @@ namespace CalamityMod.ILEditing
dir = self.direction;
dashing = true;
// CIT 16OCT2024: Commented this code out, as there's no reason for custom dash hotkey to use Player.dashTime
// and was causing the return of Celestial Starboard's dash bug from early 1.4 versions
/*if ((self.dashTime <= 0 && self.direction == -1) || (self.dashTime >= 0 && self.direction == 1))
{
self.dashTime = 15;
return;
}*/
dashing = true;
self.dashTime = 0;
self.timeSinceLastDashStarted = 0;
+2 -2
View File
@@ -23,12 +23,12 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals;
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals.HasValue;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.sandElemental = true;
modPlayer.sandElemental = !hideVisual;
SpawnElemental(player);
}
+2 -2
View File
@@ -26,12 +26,12 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals;
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals.HasValue;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.cloudElemental = true;
modPlayer.cloudElemental = !hideVisual;
if (player.whoAmI == Main.myPlayer)
{
if (player.FindBuffIndex(ModContent.BuffType<CloudElemental>()) == -1)
+2 -2
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Accessories
public override bool CanEquipAccessory(Player player, int slot, bool modded)
{
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.brimElemental || modPlayer.sandElemental || modPlayer.oasisElemental || modPlayer.cloudElemental || modPlayer.waterElemental)
if (modPlayer.brimElemental.HasValue || modPlayer.sandElemental.HasValue || modPlayer.oasisElemental.HasValue || modPlayer.cloudElemental.HasValue || modPlayer.waterElemental.HasValue)
{
return false;
}
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Accessories
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, Main.DiscoR / 255f, Main.DiscoG / 255f, Main.DiscoB / 255f);
CalamityPlayer modPlayer = player.Calamity();
modPlayer.allElementals = true;
modPlayer.allElementals = !hideVisual;
int brimmy = ProjectileType<BrimstoneElementalMinion>();
int siren = ProjectileType<WaterElementalMinion>();
+2 -2
View File
@@ -26,12 +26,12 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals;
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals.HasValue;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.oasisElemental = true;
modPlayer.oasisElemental = !hideVisual;
if (player.whoAmI == Main.myPlayer)
{
if (player.FindBuffIndex(ModContent.BuffType<OasisElementalBuff>()) == -1)
+2 -2
View File
@@ -29,12 +29,12 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals;
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals.HasValue;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.waterElemental = true;
modPlayer.waterElemental = !hideVisual;
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
+2 -2
View File
@@ -26,12 +26,12 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals;
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().allElementals.HasValue;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.brimElemental = true;
modPlayer.brimElemental = !hideVisual;
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
+2 -3
View File
@@ -50,7 +50,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.tarraSet = true;
modPlayer.tarraThrowing = true;
modPlayer.bloodflareSet = true;
modPlayer.bloodflareThrowing = true;
modPlayer.godSlayer = true;
modPlayer.godSlayerThrowing = true;
modPlayer.auricSet = true;
@@ -87,8 +86,8 @@ namespace CalamityMod.Items.Armor.Auric
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(RogueDamageBoostAtFullHealth.ToPercent(), SetBonusHurtDamageThreshold, CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodSlayerChestplate.DashCooldown.FramesToSeconds())
: setBonusTooltipNumber == 2 ? LocalizedText.Format(DefenseBoostAboveHealthThreshold, DefenseBoostHealthThreshold.ToPercent())
: LocalizedText.Format(CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds(), RogueDamageBoostWhileDebuffed.ToPercent()));
: setBonusTooltipNumber == 2 ? LocalizedText.ToString()
: LocalizedText.Format(CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds()));
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
}
}
@@ -21,8 +21,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
// Set Bonus
public static float SetBonusRogueStealth = 1.2f;
public static int DefenseBoostAboveHealthThreshold = 30;
public static float DefenseBoostHealthThreshold = 0.8f;
public override void SetDefaults()
{
@@ -41,10 +39,9 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
var modPlayer = player.Calamity();
modPlayer.bloodflareSet = true;
modPlayer.bloodflareThrowing = true;
modPlayer.rogueStealthMax += SetBonusRogueStealth;
modPlayer.wearingRogueArmor = true;
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), DefenseBoostAboveHealthThreshold, DefenseBoostHealthThreshold.ToPercent());
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth());
}
public override void UpdateEquip(Player player)
@@ -2,6 +2,7 @@
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Demonshade
@@ -14,6 +15,7 @@ namespace CalamityMod.Items.Armor.Demonshade
// Shadow Speed... (elusive)
public static float MoveSpeedBoost = 0.3f;
public static float AccelerationBoost = 0.5f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), AccelerationBoost.ToPercent());
public override void SetDefaults()
{
+4 -9
View File
@@ -47,18 +47,13 @@ namespace CalamityMod.Items.Armor.Statigel
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.FindBuffIndex(ModContent.BuffType<BabySlimeGodBuff>()) == -1)
{
player.AddBuff(ModContent.BuffType<BabySlimeGodBuff>(), 3600, true);
}
if (player.FindBuffIndex(ModContent.BuffType<BabyPaladinBuff>()) == -1)
player.AddBuff(ModContent.BuffType<BabyPaladinBuff>(), 3600, true);
int minionID = -1;
int minionDamage = (int)player.GetTotalDamage<SummonDamageClass>().ApplyTo(SlimeDamage);
if (WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType<CrimsonSlimeGodMinion>()] < 1)
minionID = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<CrimsonSlimeGodMinion>(), minionDamage, 0f, Main.myPlayer);
else if (!WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType<CorruptionSlimeGodMinion>()] < 1)
minionID = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<CorruptionSlimeGodMinion>(), minionDamage, 0f, Main.myPlayer);
if (player.ownedProjectileCounts[ModContent.ProjectileType<StatigelBlightedSlime>()] < 1)
minionID = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<StatigelBlightedSlime>(), minionDamage, 0f, Main.myPlayer);
if (Main.projectile.IndexInRange(minionID))
Main.projectile[minionID].originalDamage = SlimeDamage;
+1 -1
View File
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Armor.Tarragon
modPlayer.tarraThrowing = true;
modPlayer.rogueStealthMax += SetBonusRogueStealth;
modPlayer.wearingRogueArmor = true;
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds(), RogueDamageBoostWhileDebuffed.ToPercent());
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds());
}
public override void UpdateEquip(Player player)
+2 -1
View File
@@ -76,7 +76,8 @@ namespace CalamityMod.Items
ItemID.LucyTheAxe,
ItemID.PewMaticHorn,
ItemID.WeatherPain,
ItemID.HoundiusShootius
ItemID.HoundiusShootius,
ModContent.ItemType<WalkingCane>()
};
loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, deerclopsWeapons));
loot.AddRevBagAccessories();
-8
View File
@@ -1669,14 +1669,6 @@ namespace CalamityMod.Items
return false;
}
// Rainbow effect originally made for Orderbringer because it used to have a special rarity
// But why did it have one in the first place??
// Might be used for Miracle stuff later or something idk
/*if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<Orderbringer>())
{
}*/
return true;
}
#endregion
-25
View File
@@ -112,31 +112,6 @@ namespace CalamityMod.Items.Fishing
}
else
CalamityMod.Log.Warn("Could not find either Marine Kelp or Marine Kelp Seeds from Thorium. These items will not be added to Stuffed Fish.");
// Ozzatron 30DEC2022: It is unlikely SoA will ever be ported to 1.4 and beyond. Commenting this out indefinitely.
/*
Mod soa = CalamityMod.Instance.soa;
if (soa is not null)
{
try
{
itemLoot.Add(soa.Find<ModItem>("Welkinbell").Type, 4, herbMin, herbMax);
itemLoot.Add(soa.Find<ModItem>("WelkinbellSeeds").Type, 10, seedMin, seedMax);
itemLoot.AddIf(() => Main.hardMode, soa.Find<ModItem>("Illumifern").Type, 4, herbMin, herbMax);
itemLoot.AddIf(() => Main.hardMode, soa.Find<ModItem>("IllumifernSeeds").Type, 10, seedMin, seedMax);
// TODO -- There is no way to determine if SoA's Abaddon is dead without reflection.
// Dan Yami has confirmed that downed calls will be added to SoA eventually.
//itemLoot.AddIf(() => SacredTools.ModdedWorld.downedAbaddon, soa.Find<ModItem>("Enduflora").Type, 4, herbMin, herbMax);
//itemLoot.AddIf(() => SacredTools.ModdedWorld.downedAbaddon, soa.Find<ModItem>("EndufloraSeeds").Type, 10, seedMin, seedMax);
}
catch
{
CalamityMod.Log.Debug("One of the items in this file got renamed internally. Please report this in the #bugs-read-pins channel of the official Calamity discord server.");
}
}
*/
}
public override void ModifyTooltips(List<TooltipLine> list)
-10
View File
@@ -16,15 +16,5 @@ namespace CalamityMod.Items.Placeables.Pylons
Item.value = Item.sellPrice(gold: 2);
Item.rare = ItemRarityID.Blue;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<ScorchedRemains>(15).
AddIngredient<ScorchedBone>(10).
AddIngredient(ItemID.Hellstone, 15).
AddTile(TileID.Anvils).
Register();
}
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.value = Item.sellPrice(gold: 3);
Item.rare = ItemRarityID.Pink;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+2 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.FurnitureAcidwood;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -20,7 +21,7 @@ namespace CalamityMod.Items.Tools
Item.height = 40;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.value = Item.sellPrice(copper: 10);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.value = Item.sellPrice(silver: 60);
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityCyanBuyPrice;
Item.value = Item.sellPrice(gold: 4, silver: 50);
Item.rare = ItemRarityID.Cyan;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityCyanBuyPrice;
Item.value = Item.sellPrice(gold: 6);
Item.rare = ItemRarityID.Cyan;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.value = Item.sellPrice(gold: 4, silver: 35);
Item.rare = ItemRarityID.Lime;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.value = Item.sellPrice(gold: 4, silver: 35);
Item.rare = ItemRarityID.Lime;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
Item.value = Item.sellPrice(gold: 10);
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.rare = ModContent.RarityType<Turquoise>();
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Tools
Item.height = 42;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.value = Item.sellPrice(copper: 10);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.value = Item.sellPrice(silver: 75);
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.value = Item.sellPrice(gold: 7);
Item.rare = ItemRarityID.Red;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+2 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -20,7 +21,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.value = Item.sellPrice(silver: 30);
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Tools
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.value = Item.sellPrice(silver: 30);
Item.rare = ItemRarityID.Blue;
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Tools
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.value = Item.sellPrice(silver: 30);
Item.rare = ItemRarityID.Blue;
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools
Item.height = 44;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.value = Item.sellPrice(silver: 75);
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+2 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -21,7 +22,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.value = Item.sellPrice(silver: 30);
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.value = Item.sellPrice(gold: 4, silver: 35);
Item.rare = ItemRarityID.Yellow;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.value = Item.sellPrice(gold: 3);
Item.rare = ItemRarityID.Pink;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.value = Item.sellPrice(silver: 60);
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
@@ -60,45 +60,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().disablePerfCystSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiCystOintment").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiCystOintment").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiCystOintment").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiCystOintment").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
@@ -60,45 +60,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().disableHiveCystSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiTumorOintment").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiTumorOintment").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiTumorOintment").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/AntiTumorOintment").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
-39
View File
@@ -61,45 +61,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().disableNaturalScourgeSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BleachBall").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BleachBall").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BleachBall").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BleachBall").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
@@ -60,45 +60,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().noStupidNaturalARSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BrokenWaterFilter").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BrokenWaterFilter").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BrokenWaterFilter").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/BrokenWaterFilter").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
@@ -60,45 +60,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().disableAnahitaSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SirenproofEarMuffs").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SirenproofEarMuffs").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SirenproofEarMuffs").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SirenproofEarMuffs").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
@@ -62,45 +62,6 @@ namespace CalamityMod.Items.Tools.SpawnBlocker
player.Calamity().disableVoodooSpawns |= Enabled;
}
/*
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/VoodooDemonVoodooDoll").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/VoodooDemonVoodooDoll").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, scale, SpriteEffects.None, 0);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture;
if (state)
{
//Replace with enabled texture
texture = ModContent.Request<Texture2D>("CalamityMod/Items/VoodooDemonVoodooDoll").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
else
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/VoodooDemonVoodooDoll").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
}
return false;
}
*/
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string text;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.value = Item.sellPrice(gold: 4, silver: 35);
Item.rare = ItemRarityID.Yellow;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Tools
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.value = Item.sellPrice(silver: 5);
Item.rare = ItemRarityID.Blue;
}
+1 -2
View File
@@ -68,8 +68,7 @@ namespace CalamityMod.Items.TreasureBags
ModContent.ItemType<OverloadedBlaster>(),
ModContent.ItemType<AbyssalTome>(),
ModContent.ItemType<EldritchTome>(),
ModContent.ItemType<CorroslimeStaff>(),
ModContent.ItemType<CrimslimeStaff>()
ModContent.ItemType<BlightedSlimeStaff>()
}));
// Equipment
+1 -1
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Magic
}
for (int i = 0; i < 3; i++)
{
realPlayerPos = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - /* - */ player.position.X), player.MountedCenter.Y + 600f); //-
realPlayerPos = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y + 600f); //-
realPlayerPos.X = (realPlayerPos.X + player.Center.X) / 2f + (float)Main.rand.Next(-50, 51); //200
realPlayerPos.Y += (float)(100 * i); //-=
mouseXDist = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X; //+ -
+2 -2
View File
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 46;
Item.height = 56;
Item.width = 66;
Item.height = 74;
Item.damage = 80;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 15;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+2 -2
View File
@@ -25,8 +25,8 @@ namespace CalamityMod.Items.Weapons.Melee
}
public override void SetDefaults()
{
Item.width = 78;
Item.height = 94;
Item.width = 74;
Item.height = 84;
Item.damage = 2080;
Item.DamageType = DamageClass.Melee;
Item.useTime = Item.useAnimation = 33;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 989 B

@@ -3,17 +3,22 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class SlickCane : RogueWeapon
[LegacyName("SlickCane")]
public class WalkingCane : RogueWeapon
{
public static float MoveSpeedBoost = 0.2f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
public override void SetDefaults()
{
Item.width = 42;
Item.height = 36;
Item.damage = 50;
Item.width = 48;
Item.height = 44;
Item.damage = 40;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
@@ -22,10 +27,10 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.knockBack = 6f;
Item.UseSound = SoundID.DD2_GhastlyGlaivePierce;
Item.autoReuse = true;
Item.value = Item.buyPrice(gold: 35); // Sold by Bandit
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<SlickCaneProjectile>();
Item.shootSpeed = 16f;
Item.shoot = ModContent.ProjectileType<WalkingCaneProjectile>();
Item.shootSpeed = 20f;
Item.DamageType = RogueDamageClass.Instance;
}
@@ -33,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float ai0 = Main.rand.NextFloat() * Item.shootSpeed * 1.5f * (float)player.direction;
int projectileIndex = Projectile.NewProjectile(source, position.X, position.Y+100, velocity.X*2f, velocity.Y*2f, type, damage, knockback, player.whoAmI, ai0, 0f);
float ai0 = Main.rand.NextFloat() * Item.shootSpeed * 1.5f * player.direction;
int projectileIndex = Projectile.NewProjectile(source, position + Vector2.UnitY * 100f, velocity * 2f, type, damage, knockback, player.whoAmI, ai0);
if (projectileIndex.WithinBounds(Main.maxProjectiles))
Main.projectile[projectileIndex].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

@@ -8,14 +8,15 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Summon
{
public class CorroslimeStaff : ModItem, ILocalizedModType
[LegacyName("CorroslimeStaff", "CrimslimeStaff")]
public class BlightedSlimeStaff : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Summon";
public override void SetDefaults()
{
Item.width = 52;
Item.height = 54;
Item.damage = 24;
Item.damage = 18;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.Swing;
@@ -25,8 +26,8 @@ namespace CalamityMod.Items.Weapons.Summon
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item44;
Item.autoReuse = true;
Item.buffType = ModContent.BuffType<Corroslime>();
Item.shoot = ModContent.ProjectileType<CorroslimeMinion>();
Item.buffType = ModContent.BuffType<BlightedSlime>();
Item.shoot = ModContent.ProjectileType<BlightedSlimeMinion>();
Item.DamageType = DamageClass.Summon;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

-42
View File
@@ -1,42 +0,0 @@
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Buffs.Summon;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Summon
{
public class CrimslimeStaff : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Summon";
public override void SetDefaults()
{
Item.width = 52;
Item.height = 52;
Item.damage = 24;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.knockBack = 2f;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item44;
Item.autoReuse = true;
Item.buffType = ModContent.BuffType<Crimslime>();
Item.shoot = ModContent.ProjectileType<CrimslimeMinion>();
Item.DamageType = DamageClass.Summon;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
player.AddBuff(Item.buffType, 2);
var minion = Projectile.NewProjectileDirect(source, player.ClampedMouseWorld(), Vector2.Zero, type, damage, knockback, player.whoAmI);
minion.originalDamage = Item.damage;
return false;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 58;
Item.height = 58;
Item.damage = 14;
Item.damage = 10;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.Swing;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 42;
Item.height = 42;
Item.damage = 20;
Item.damage = 16;
Item.DamageType = DamageClass.Summon;
Item.buffType = ModContent.BuffType<FleshBallBuff>();
Item.shoot = ModContent.ProjectileType<FleshBallMinion>();
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 52;
Item.height = 54;
Item.damage = 31;
Item.damage = 25;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.Swing;
@@ -1274,9 +1274,9 @@ BabyBloodCrawlerBuff: {
Description: The baby blood crawler will protect you
}
BabySlimeGodBuff: {
DisplayName: Baby Slime God
Description: The Slime God will protect you
BabyPaladinBuff: {
DisplayName: Baby Paladin
Description: The blighted paladin will protect you
}
BabyStormlionBuff: {
@@ -1294,6 +1294,11 @@ BlackHawkBuff: {
Description: The fighter jet will protect you
}
BlightedSlime: {
DisplayName: Blighted Slime
Description: The blighted slime will protect you
}
BrimseekerBuff: {
DisplayName: Brimseeker
Description: Does it want something from you?
@@ -1334,11 +1339,6 @@ CloudElemental: {
Description: The Cloud Elemental will protect you
}
Corroslime: {
DisplayName: Corroslime
Description: The corroslime will protect you
}
CorvidHarbringerBuff: {
DisplayName: Raven
Description: The powerful raven will protect you
@@ -1359,11 +1359,6 @@ CosmilampBuff: {
Description: The cosmilamp will protect you
}
Crimslime: {
DisplayName: Crimslime
Description: The crimslime will protect you
}
DaedalusCrystalBuff: {
DisplayName: Daedalus Crystal
Description: The Daedalus crystal will protect you
@@ -701,7 +701,11 @@ ElementalGauntlet: {
ElementalinaBottle: {
DisplayName: Elemental in a Bottle
Tooltip: Summons a sand elemental to fight for you
Tooltip:
'''
Summons a sand elemental to fight for you
The elemental has reduced opacity if visibility is disabled
'''
}
ElysianAegis: {
@@ -758,7 +762,11 @@ EvasionScarf: {
EyeoftheStorm: {
DisplayName: Eye of the Storm
Tooltip: Summons a Cloud Elemental to fight for you
Tooltip:
'''
Summons a Cloud Elemental to fight for you
The elemental has reduced opacity if visibility is disabled
'''
}
FeatherCrown: {
@@ -983,6 +991,7 @@ HeartoftheElements: {
Tooltip:
'''
Summons all elementals to protect you
The elementals have reduced opacity if visibility is disabled
'The heart of the world'
'''
}
@@ -1320,6 +1329,7 @@ PearlofEnthrallment: {
'''
Summons a water elemental to fight for you
The elemental stays above you, shooting water spears, ice mist, and treble clefs at nearby enemies
The elemental has reduced opacity if visibility is disabled
'''
}
@@ -1487,6 +1497,7 @@ OasisElementalinaBottle: {
'''
Summons an oasis elemental to assist you
The elemental fires healing orbs that restore 10 health while you are damaged
The elemental has reduced opacity if visibility is disabled
'''
}
@@ -1519,7 +1530,11 @@ RogueEmblem: {
RoseStone: {
DisplayName: Rose Stone
Tooltip: Summons a Brimstone Elemental to fight for you
Tooltip:
'''
Summons a Brimstone Elemental to fight for you
The elemental has reduced opacity if visibility is disabled
'''
}
RottenBrain: {
@@ -249,11 +249,7 @@ BloodflareHeadRogue: {
{$Common.RogueStealth}
{$BloodflareHeadRogue.SetBonusEffect@1}
'''
SetBonusEffect:
'''
Grants {0} defense when above {1}% life
{$BloodflareBodyArmor.CommonSetBonus}
'''
SetBonusEffect: "{$BloodflareBodyArmor.CommonSetBonus}"
}
BloodflareHeadSummon: {
@@ -285,13 +281,13 @@ DemonshadeBreastplate: {
{$CommonItemTooltip.PercentIncreasedDamageCritChance@1}
{$CommonItemTooltip.PercentIncreasedMeleeSpeed@2}
{$CommonItemTooltip.PercentChanceToSaveAmmo@3}
Standing still absorbs shadows to grant exponentially accelerating life regen
Standing still grants exponentially accelerating life regen
'''
}
DemonshadeGreaves: {
DisplayName: Demonshade Greaves
Tooltip: Shadow speed
Tooltip: "{$CommonItemTooltip.PercentIncreasedMovementSpeed} and {1}% increased acceleration"
}
DemonshadeHelm: {
@@ -705,7 +701,6 @@ TarragonHeadRogue: {
'''
After every {0} rogue critical hits you will gain {1} seconds of damage immunity
This effect has a cooldown of {2} seconds
While under the effects of a debuff you gain {3}% increased rogue damage
{$TarragonBreastplate.CommonSetBonus}
'''
}
@@ -1245,7 +1245,7 @@ StygianShield: {
DisplayName: Stygian Shield
Tooltip:
'''
Hold <left> to charge an omni-directional dash which slams through enemies
Hold <left> to charge an omni-directional dash which grants immunity to damage and can slam through enemies
<right> to throw a buckler which bounces towards a nearby foe upon collision
Grants knockback immunity and {0} defense while held
However, dashes are disabled until you stop holding this weapon for {1} seconds
@@ -1069,17 +1069,6 @@ SkyfinBombers: {
'''
}
SlickCane: {
DisplayName: Slick Cane
Tooltip:
'''
Swipes a cane that steals money from enemies
Stealth strikes give a 1 in 20 chance for enemies to drop 1-2 gold coins when hit
Stealth strikes boost damage in proportion to money in the inventory, up to 1 Platinum
'Economy at its finest'
'''
}
SludgeSplotch: {
DisplayName: Sludge Splotch
Tooltip: Stealth strikes cause the main ball of sludge to split on hit, inflicting more damage
@@ -1359,6 +1348,17 @@ Vega: {
'''
}
WalkingCane: {
DisplayName: Walking Cane
Tooltip:
'''
Swipes a pointed walking cane
Stealth strikes drain the sanity of foes, causing shadow hands to be summoned when attacked
While held, increases movement speed by {0}%
'Is it walking me, or am I walking it?'
'''
}
WaveSkipper: {
DisplayName: Wave Skipper
Tooltip:
@@ -85,6 +85,11 @@ BlackHawkRemote: {
'''
}
BlightedSlimeStaff: {
DisplayName: Blighted Slime Staff
Tooltip: Summons a blighted slime to fight for you
}
BorealisBomber: {
DisplayName: Borealis Bomber
Tooltip:
@@ -191,11 +196,6 @@ Cnidarian: {
'''
}
CorroslimeStaff: {
DisplayName: Corroslime Staff
Tooltip: Summons a corro slime to fight for you
}
CorvidHarbringerStaff: {
DisplayName: Corvid Harbinger Staff
Tooltip:
@@ -233,11 +233,6 @@ Cosmilamp: {
Tooltip: Summons a cosmic lantern above your head to fight for you
}
CrimslimeStaff: {
DisplayName: Crimslime Staff
Tooltip: Summons a crim slime to fight for you
}
CryogenicStaff: {
DisplayName: Cryogenic Staff
Tooltip:
@@ -19,6 +19,7 @@ AuralisBullet.DisplayName: Auralis Bullet
AuricBullet.DisplayName: Auric Bullet
AuroraFire.DisplayName: Aurora Blaze
BallistaGreatArrow.DisplayName: Ballista Great Arrow
BallistaShard.DisplayName: Ballista Shard
BarinadeArrow.DisplayName: Fin Arrow
BlightFlames.DisplayName: Blight Flames
BlissfulBombardierSplitProjectile.DisplayName: Profaned Mini-Rocket
@@ -35,11 +35,10 @@ BlackDragonHead.DisplayName: Black Celestial Dragon
BlackDragonTail.DisplayName: Black Celestial Dragon
BlackHawkBullet.DisplayName: Black Hawk Bullet
BlackHawkSummon.DisplayName: Black Hawk
BlightedSlimeMinion.DisplayName: Blighted Slime
BloodBreath.DisplayName: Blood Dragon Fire
BloodRain.DisplayName: Blood Rain
BloodSpit.DisplayName: Blood Spit
BoneMatter.DisplayName: Bone Matter
BoneMatter2.DisplayName: Bone Matter
BrimseekerAuraBall.DisplayName: Seeker
BrimstoneDartMinion.DisplayName: Brimfire
BrimstoneDartSummon.DisplayName: Brimstone Dart
@@ -64,8 +63,6 @@ CinderBlossom.DisplayName: Cinder Blossom
CloudElementalMinion.DisplayName: Cloud Elemental
CnidarianJellyfishOnTheString.DisplayName: Cnidarian
CnidarianSpark.DisplayName: Cnidarian Spark
CorroslimeMinion.DisplayName: Corroslime
CorruptionSlimeGodMinion.DisplayName: Slime God
CosmicBlast.DisplayName: Cosmic Blast
CosmicBlastBig.DisplayName: Cosmic Blast
CosmicEnergySpiral.DisplayName: Cosmic Energy
@@ -76,8 +73,6 @@ CosmicViperSplittingRocket.DisplayName: Splitting Rocket
CosmicViperSummon.DisplayName: Cosmic Viper
CosmilampBeam.DisplayName: Cosmic Beam
CosmilampMinion.DisplayName: Cosmilamp
CrimslimeMinion.DisplayName: Crimslime
CrimsonSlimeGodMinion.DisplayName: Slime God
DaedalusCrystal.DisplayName: Daedalus Crystal
DaedalusCrystalShot.DisplayName: Crystal Shot
DaedalusGolem.DisplayName: Daedalus Golem
@@ -284,6 +279,7 @@ SquirrelSquireAcorn.DisplayName: Squirrel Acorn
SquirrelSquireMinion.DisplayName: Squirrel Squire
Starforge.DisplayName: Starforge
StarforgeBlast.DisplayName: Starforge Blast
StatigelBlightedSlime.DisplayName: Blighted Paladin
StellarTorusBeam.DisplayName: Stellar Torus Beam
StellarTorusSummon.DisplayName: Stellar Torus Summon
StormjawBaby.DisplayName: Stormjaw Baby
@@ -400,7 +400,7 @@ TavernkeepChat.FullMoon: Care for a little Moonshine?
TaxCollectorChat: {
DoGDefeated: Devourer of what, you said? Devourer of Funds, if its payroll is anything to go by!
PreBrimmy: So those punks on Azafure think they can live for free on my lands? Tell you what, do my job there and I might give you a bonus.
HasSlickCane: Goodness! That cane has swagger!
HasWalkingCane: Goodness! That cane has swagger!
Has100Plat: BAH! Doesn't seem like I'll ever be able to quarrel with the debts of the town again!
Has500Plat: Where and how are you getting all of this money?! Scram, you have no need for me!
}
+4 -164
View File
@@ -877,90 +877,6 @@ namespace CalamityMod
public static bool DisableAllDodges(bool disable) => Main.LocalPlayer.Calamity().disableAllDodges = disable;
#endregion
#region Amalgam Potion Buff List
public static bool SetAmalgamBuffList(int type, bool shouldBeListed)
{
if (shouldBeListed && !CalamityBuffSets.BuffedByAmalgam[type])
{
CalamityBuffSets.BuffedByAmalgam[type] = true;
return true;
}
else if (!shouldBeListed)
{
CalamityBuffSets.BuffedByAmalgam[type] = false;
return false;
}
return false;
}
public static bool SetPersistentBuffList(int type, bool isPersistent)
{
if (isPersistent && !CalamityBuffSets.IsPersistentBuff[type])
{
CalamityBuffSets.IsPersistentBuff[type] = true;
return true;
}
else if (!isPersistent)
{
CalamityBuffSets.IsPersistentBuff[type] = false;
return false;
}
return false;
}
public static bool IsOnAmalgamBuffList(int type) => CalamityBuffSets.BuffedByAmalgam[type];
public static bool IsOnPersistentBuffList(int type) => CalamityBuffSets.IsPersistentBuff[type];
#endregion
#region Venerated Locket Bans
public static bool AddToVeneratedLocketBanlist(int type)
{
if (!CalamityItemSets.DisablesVeneratedLocketEffect[type])
{
CalamityItemSets.DisablesVeneratedLocketEffect[type] = true;
return true;
}
return false;
}
#endregion
#region Summoner Cross Class Nerf Disabling
public static bool SetSummonerNerfDisabledByMinion(int type, bool disableNerf)
{
if (disableNerf && !CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type])
{
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = true;
return true;
}
else if (!disableNerf)
{
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = false;
return false;
}
return false;
}
public static bool SetSummonerNerfDisabledByItem(int type, bool disableNerf)
{
if (disableNerf && !CalamityItemSets.ItemWhichDisablesSummonerNerf[type])
{
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = true;
return true;
}
else if (!disableNerf)
{
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = false;
return false;
}
return false;
}
public static bool GetSummonerNerfDisabledByMinion(int type) => CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type];
public static bool GetSummonerNerfDisabledByItem(int type) => CalamityItemSets.ItemWhichDisablesSummonerNerf[type];
#endregion
#region Debuff Display support
public static void RegisterDebuff(string texturePath, Predicate<NPC> debuffCheck)
{
@@ -1038,19 +954,6 @@ namespace CalamityMod
}
#endregion
#region Adding minions to boss hp scaling config
//This is to add minions to the hp scaling config
public static bool AddToHPScaling(int type)
{
if (!CalamityNPCSets.ScalesHealthLikeBoss[type])
{
CalamityNPCSets.ScalesHealthLikeBoss[type] = true;
return true;
}
return false;
}
#endregion
#region Call
public static object Call(params object[] args)
@@ -2075,55 +1978,6 @@ namespace CalamityMod
CalamityMod.Log.Warn("This mod call is deprecated. Calamity automatically registers cooldowns.");
return null;
case "GetSummonerNerfDisabledByItem":
if (args.Length != 2 || !isValidItemArg(args[1]))
return new ArgumentException("ERROR: Must specify a valid item to check status of.");
return GetSummonerNerfDisabledByItem(castItem(args[1]).type);
case "GetSummonerNerfDisabledByMinion":
if (args.Length != 2 || !isValidProjectileArg(args[1]))
return new ArgumentException("ERROR: Must specify a valid projectile to check status of.");
return GetSummonerNerfDisabledByMinion(castProjectile(args[1]).type);
case "SetSummonerNerfDisabledByItem":
if (args.Length < 2 || !isValidItemArg(args[1]))
return new ArgumentException("ERROR: Must specify a valid item to set the status of.");
if (args.Length != 3 || args[2] is not bool disableNerf)
return new ArgumentException("ERROR: Must specify a bool that determines whether the summoner nerf is disabled.");
return SetSummonerNerfDisabledByItem(castItem(args[1]).type, disableNerf);
case "SetSummonerNerfDisabledByMinion":
if (args.Length < 2 || !isValidItemArg(args[1]))
return new ArgumentException("ERROR: Must specify a valid projectile to set the status of.");
if (args.Length != 3 || args[2] is not bool disableNerf2)
return new ArgumentException("ERROR: Must specify a bool that determines whether the summoner nerf is disabled.");
return SetSummonerNerfDisabledByItem(castItem(args[1]).type, disableNerf2);
case "IsOnAmalgamBuffList":
if (args.Length != 2 || !castID(args[1], out int buffType))
return new ArgumentException("ERROR: Must specify a valid buff ID to check status of.");
return IsOnAmalgamBuffList(buffType);
case "IsOnPersistentBuffList":
case "IsPersistentBuff":
if (args.Length != 2 || !castID(args[1], out int buffType2))
return new ArgumentException("ERROR: Must specify a valid buff ID to check status of.");
return IsOnPersistentBuffList(buffType2);
case "SetAmalgamBuffList":
if (args.Length < 2 || !castID(args[1], out int buffType3))
return new ArgumentException("ERROR: Must specify a valid buff ID to set the status of.");
if (args.Length != 3 || args[2] is not bool shouldBeListed)
return new ArgumentException("ERROR: Must specify a bool that determines whether the amalgam should enable extend the duration of this buff.");
return SetAmalgamBuffList(buffType3, shouldBeListed);
case "SetPersistentBuffList":
if (args.Length < 2 || !castID(args[1], out int buffType4))
return new ArgumentException("ERROR: Must specify a valid buff ID to set the status of.");
if (args.Length != 3 || args[2] is not bool isPersistent)
return new ArgumentException("ERROR: Must specify a bool that determines whether the buff is persistent after death for the Amalgam to properly reset.");
return SetPersistentBuffList(buffType4, isPersistent);
case "CreateCodebreakerDialogOption":
// NOTE: This is a legacy variant of this call. The variant with three arguments is the standard.
if (args.Length == 4)
@@ -2143,13 +1997,6 @@ namespace CalamityMod
return null;
case "AddToVeneratedLocketBanlist":
if (args.Length < 2)
return new ArgumentException("ERROR: Not enough arguments!");
if (args[1] is not int itemType)
return new ArgumentException("ERROR: Must specify a valid item type as an int index of the item.");
return AddToVeneratedLocketBanlist(itemType);
case "RegisterDebuff":
case "AddToDebuffDisplay":
case "AddDebuffDisplay":
@@ -2247,16 +2094,6 @@ namespace CalamityMod
AndroombaFriendly.customConversionTypes.Add((itemID, texturePath, NPCaction));
return null;
}
case "AddMinibossToHPScalingConfig":
case "AddMinionToHPScalingConfig":
case "AddToBossHPScalingConfig":
{
if (args.Length < 2)
return new ArgumentNullException("ERROR: Must specify an NPC id/type as an int or short ID. Example: NPCType<SomeBossMinion>()");
if (!castID(args[1], out int npcType6))
return new ArgumentException("ERROR: The first argument to \"AddToBossHPScalingConfig\" must be an int or short ID.");
return AddToHPScaling(npcType6);
}
case "GetDebuffDamage":
{
if (args.Length < 2)
@@ -2268,7 +2105,10 @@ namespace CalamityMod
case "GetDebuffDamageFunction": //This exists because Calamity's Mod Call lookup is slow due to this string switch, and this method may be called hundreds of times per frame by some addons.
return (object)DebuffData.GetDebuffRegenValue;
default:
return new ArgumentException("ERROR: Invalid method name.");
{
CalamityMod.Log.Warn($"{methodName} is an invalid method name for Calamity Mod. Are you calling a method which no longer exists?");
return null;
}
}
}
#endregion
+1 -2
View File
@@ -1173,8 +1173,7 @@ namespace CalamityMod
RegisterSummon(ItemType<HerringStaff>(), BuffType<Herring>(), ProjectileType<HerringMinion>());
RegisterSummon(ItemType<EyeOfNight>(), BuffType<EyeOfNightBuff>(), ProjectileType<EyeOfNightSummon>());
RegisterSummon(ItemType<FleshOfInfidelity>(), BuffType<FleshBallBuff>(), ProjectileType<FleshBallMinion>());
RegisterSummon(ItemType<CorroslimeStaff>(), BuffType<Corroslime>(), ProjectileType<CorroslimeMinion>());
RegisterSummon(ItemType<CrimslimeStaff>(), BuffType<Crimslime>(), ProjectileType<CrimslimeMinion>());
RegisterSummon(ItemType<BlightedSlimeStaff>(), BuffType<BlightedSlime>(), ProjectileType<BlightedSlimeMinion>());
RegisterSummon(ItemType<BlackHawkRemote>(), BuffType<BlackHawkBuff>(), ProjectileType<BlackHawkSummon>());
RegisterSummon(ItemType<CausticStaff>(), BuffType<CausticStaffBuff>(), ProjectileType<CausticStaffSummon>());
RegisterSummon(ItemType<AncientIceChunk>(), BuffType<IceClasperBuff>(), ProjectileType<IceClasperMinion>());
+27
View File
@@ -288,6 +288,7 @@ namespace CalamityMod.NPCs
public bool crumble = false;
public int antlionCloudDebuffTimer = 0;
public int caneInsanityTimer = 0;
public bool scionsCurioEffected = false;
public bool abaddonEffected = false;
public bool apollyonEffected = false;
@@ -569,6 +570,7 @@ namespace CalamityMod.NPCs
myClone.crumble = crumble;
myClone.antlionCloudDebuffTimer = antlionCloudDebuffTimer;
myClone.caneInsanityTimer = caneInsanityTimer;
myClone.scionsCurioEffected = scionsCurioEffected;
myClone.abaddonEffected = abaddonEffected;
myClone.apollyonEffected = apollyonEffected;
@@ -799,6 +801,8 @@ namespace CalamityMod.NPCs
if (antlionCloudDebuffTimer > 0)
antlionCloudDebuffTimer--;
if (caneInsanityTimer > 0)
caneInsanityTimer--;
if (cursorFocus > 0 && cursorFocus < cursorFocusMax)
cursorFocus--;
relicOfResilienceWeakness = false;
@@ -4865,6 +4869,29 @@ namespace CalamityMod.NPCs
return DrawVanillaBestiaryWorms(spriteBatch, npc, drawColor);
}
}
if (caneInsanityTimer > 0)
{
Texture2D tex = TextureAssets.Npc[npc.type].Value;
Rectangle frame = npc.frame;
float fadeInAmt = caneInsanityTimer > 570 ? Utils.GetLerpValue(600, 570, caneInsanityTimer) : caneInsanityTimer < 30 ? Utils.GetLerpValue(0, 30, caneInsanityTimer) : 1f;
Vector2 origin = new Vector2(tex.Width / 2, tex.Height / Main.npcFrameCount[npc.type] / 2);
SpriteEffects sp = npc.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
Vector3 colorHSL = Main.rgbToHsl(Color.Violet);
CalamityUtils.EnterShaderRegion(spriteBatch);
GameShaders.Misc["CalamityMod:BasicTint"].UseOpacity(1f);
GameShaders.Misc["CalamityMod:BasicTint"].UseSaturation(fadeInAmt * 0.35f);
GameShaders.Misc["CalamityMod:BasicTint"].UseColor(Main.hslToRgb(1f - colorHSL.X, colorHSL.Y, colorHSL.Z));
GameShaders.Misc["CalamityMod:BasicTint"].Apply();
for (int i = 0; i < 4; i++)
{
Vector2 offset = Vector2.UnitX.RotatedBy(Main.GlobalTimeWrappedHourly * MathHelper.TwoPi * 2f + (MathHelper.TwoPi * i / 4f)) * 6f * fadeInAmt;
Main.EntitySpriteDraw(tex, npc.Center - screenPos - Vector2.UnitY * (npc.gfxOffY) + offset, frame, Color.Violet, npc.rotation, origin, npc.scale, sp);
}
CalamityUtils.ExitShaderRegion(spriteBatch);
}
if (npc.type != NPCID.BrainofCthulhu && (npc.type != NPCID.DukeFishron || npc.ai[0] <= 9f) && npc.active)
{
if (CalamityClientConfig.Instance.DebuffDisplay && (npc.boss || BossHealthBarManager.MinibossHPBarList.Contains(npc.type) || BossHealthBarManager.OneToMany.ContainsKey(npc.type) || CalamityNPCSets.ForceDrawDebuffDisplay[npc.type]))
+2 -1
View File
@@ -1196,7 +1196,8 @@ namespace CalamityMod.NPCs
ItemID.LucyTheAxe,
ItemID.PewMaticHorn,
ItemID.WeatherPain,
ItemID.HoundiusShootius
ItemID.HoundiusShootius,
ModContent.ItemType<WalkingCane>()
};
LCR_NotExpert.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, deerWeapons));
}
+3 -11
View File
@@ -1234,8 +1234,8 @@ namespace CalamityMod.NPCs
chat = CalamityUtils.GetTextValue("Vanilla.TaxCollectorChat.DoGDefeated");
else if (Main.rand.NextBool(5) && !DownedBossSystem.downedBrimstoneElemental)
chat = CalamityUtils.GetTextValue("Vanilla.TaxCollectorChat.PreBrimmy");
else if (Main.rand.NextBool(10) && CalamityUtils.InventoryHas(Main.LocalPlayer, ItemType<SlickCane>()))
chat = CalamityUtils.GetTextValue("Vanilla.TaxCollectorChat.HasSlickCane");
else if (Main.rand.NextBool(10) && CalamityUtils.InventoryHas(Main.LocalPlayer, ItemType<WalkingCane>()))
chat = CalamityUtils.GetTextValue("Vanilla.TaxCollectorChat.HasWalkingCane");
else if (Main.rand.NextBool(5) && platinumCoins >= 500)
chat = CalamityUtils.GetTextValue("Vanilla.TaxCollectorChat.Has500Plat");
else if (Main.rand.NextBool(5) && platinumCoins >= 100)
@@ -1315,14 +1315,6 @@ namespace CalamityMod.NPCs
defense += 20;
}
}
public override bool? CanBeHitByProjectile(NPC npc, Projectile projectile)
{
// Not an axe but close enough
if (npc.type == NPCID.TaxCollector && projectile.type == ProjectileType<SlickCaneProjectile>())
return true;
return base.CanBeHitByProjectile(npc, projectile);
}
#endregion
#region Shop Stuff
@@ -1359,7 +1351,7 @@ namespace CalamityMod.NPCs
{
shop.Add<M1Garand>(Condition.DownedSkeletron)
.Add<P90>(Condition.Hardmode)
.AddWithCustomValue(ItemID.Boomstick, Item.buyPrice(gold: 25), Condition.DownedQueenBee)
.AddWithCustomValue(ItemID.Revolver, Item.buyPrice(gold: 35), Condition.Hardmode)
.AddWithCustomValue(ItemID.Uzi, Item.buyPrice(gold: 50), Condition.DownedPlantera);
}
+59 -85
View File
@@ -178,40 +178,6 @@ namespace CalamityMod.NPCs.Crabulon
else if (NPC.timeLeft < 1800)
NPC.timeLeft = 1800;
if (NPC.ai[0] < 2f)
{
int mushBombAmt = phase4 ? 6 : phase3 ? 3 : phase2 ? 2 : 1;
float fireRate = phase4 ? 6f : phase3 ? 3f : phase2 ? 2f : 1f;
NPC.localAI[3] += fireRate;
if (NPC.ai[3] == 0f)
{
float shootMushroomsGateValue = revenge ? 120f : expertMode ? 200f : 300f;
if (NPC.localAI[3] > shootMushroomsGateValue)
{
NPC.ai[3] = 1f;
NPC.localAI[3] = 0f;
}
}
else if (NPC.localAI[3] > 30f)
{
NPC.localAI[3] = 0f;
NPC.ai[3] += 1f;
if (NPC.ai[3] >= mushBombAmt)
NPC.ai[3] = 0f;
float mushBombSpeed = phase4 ? 16f : phase3 ? 14f : phase2 ? 12f : 10f;
int type = ModContent.ProjectileType<MushBomb>();
SoundEngine.PlaySound(SoundID.Item42, NPC.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float yVelocity = death ? 1f : expertMode ? 2.5f : 4f;
Vector2 projectileVelocity = (Vector2.Normalize(player.Center - NPC.Center) * mushBombSpeed) - Vector2.UnitY * yVelocity;
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, projectileVelocity, type, MushroomShotDamage, 0f, Main.myPlayer, 0f, player.Center.Y);
}
}
}
if (NPC.ai[0] == 0f)
{
// Avoid cheap bullshit
@@ -245,7 +211,40 @@ namespace CalamityMod.NPCs.Crabulon
// Avoid cheap bullshit
NPC.damage = 0;
float walkingVelocity = death ? (5f + 1f * (1f - lifeRatio)) : expertMode ? 5f : 3.5f;
// Fire mushroom projectiles at the player
int mushBombAmt = phase4 ? 6 : phase3 ? 3 : phase2 ? 2 : 1;
float fireRate = phase4 ? 6f : phase3 ? 3f : phase2 ? 2f : 1f;
NPC.localAI[3] += fireRate;
if (NPC.ai[3] == 0f)
{
float shootMushroomsGateValue = revenge ? 120f : expertMode ? 200f : 300f;
if (NPC.localAI[3] > shootMushroomsGateValue)
{
NPC.ai[3] = 1f;
NPC.localAI[3] = 0f;
}
}
else if (NPC.localAI[3] > 30f)
{
NPC.localAI[3] = 0f;
NPC.ai[3] += 1f;
if (NPC.ai[3] >= mushBombAmt)
NPC.ai[3] = 0f;
float mushBombSpeed = phase4 ? 16f : phase3 ? 14f : phase2 ? 12f : 10f;
int type = ModContent.ProjectileType<MushBomb>();
SoundEngine.PlaySound(SoundID.Item42, NPC.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float yVelocity = death ? 1f : expertMode ? 2.5f : 4f;
Vector2 projectileVelocity = (Vector2.Normalize(player.Center - NPC.Center) * mushBombSpeed) - Vector2.UnitY * yVelocity;
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, projectileVelocity, type, MushroomShotDamage, 0f, Main.myPlayer, 0f, player.Center.Y);
}
}
// Walking
float walkingVelocity = expertMode ? 4.5f : 3.5f;
if (phase2)
walkingVelocity += 0.5f;
if (phase3)
@@ -330,6 +329,7 @@ namespace CalamityMod.NPCs.Crabulon
NPC.noTileCollide = false;
NPC.ai[0] = (Main.rand.NextBool() && revenge && phase2) ? 4f : 2f;
NPC.ai[1] = 0f;
NPC.ai[3] = 0f;
NPC.ForceNetUpdate();
}
@@ -485,7 +485,7 @@ namespace CalamityMod.NPCs.Crabulon
int type = ModContent.ProjectileType<MushBombFall>();
if ((NPC.ai[2] % 2f == 0f || death) && ((phase2 && revenge) || (phase3 && expertMode)))
if (NPC.ai[2] % 2f == 0f && ((phase2 && revenge) || (phase3 && expertMode)))
{
SoundEngine.PlaySound(SoundID.Item42, NPC.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
@@ -495,8 +495,7 @@ namespace CalamityMod.NPCs.Crabulon
destination.Normalize();
destination *= projectileVelocity;
// Less mushrooms in Death Mode phase 3 because otherwise it's an absolute shitshow.
int numProj = phase4 ? 14 : CalamityWorld.death ? (phase3 ? 10 : 16) : 12;
int numProj = phase4 ? 14 : CalamityWorld.death ? 16 : 12;
float rotation = MathHelper.ToRadians(90);
for (int i = 0; i < numProj; i++)
{
@@ -520,8 +519,7 @@ namespace CalamityMod.NPCs.Crabulon
destination.Normalize();
destination *= projectileVelocity;
// Less mushrooms in Death Mode phase 3 because otherwise it's an absolute shitshow.
int numProj = phase4 ? 8 : (phase3 && death) ? 6 : 8;
int numProj = 8;
float rotation = MathHelper.ToRadians(60);
for (int i = 0; i < numProj; i++)
{
@@ -621,42 +619,19 @@ namespace CalamityMod.NPCs.Crabulon
if (revenge)
{
float velocityXAdjustment = maxVelocityX;
if (lifeRatio < 0.5f && death)
switch ((int)NPC.ai[3])
{
// Mega velocity
switch ((int)NPC.ai[3])
{
case 0: // Normal
case 1: // High
case 2: // Low
maxVelocityX += velocityXAdjustment * 0.5f;
break;
case 0: // Normal
case 1: // High
case 2: // Low
break;
case 3: // Long and low
maxVelocityX += velocityXAdjustment * 1.5f;
break;
case 3: // Long and low
maxVelocityX += velocityXAdjustment * (lifeRatio < 0.5f && death ? 1.5f : 1f);
break;
default:
break;
}
}
else
{
switch ((int)NPC.ai[3])
{
case 0: // Normal
case 1: // High
case 2: // Low
break;
case 3: // Long and low
maxVelocityX += velocityXAdjustment;
break;
default:
break;
}
default:
break;
}
}
@@ -728,31 +703,30 @@ namespace CalamityMod.NPCs.Crabulon
if (NPC.velocity.Y >= 0f && NPC.Bottom.Y >= NPC.ai[3] - NPC.height)
NPC.noTileCollide = false;
// Impact and create lines of mushrooms that spread out along the ground (similar to an old Providence attack)
if (NPC.Bottom.Y >= NPC.ai[3] || NPC.velocity.Y == 0f)
{
SoundEngine.PlaySound(SlamSound, NPC.Center);
NPC.velocity.X *= 0.5f;
NPC.ai[0] = 0f;
NPC.ai[1] = 0f;
NPC.ai[2] = 0f;
NPC.ai[3] = 0f;
NPC.netUpdate = true;
int type = ModContent.ProjectileType<MushBombGround>();
if (Main.netMode != NetmodeID.MultiplayerClient)
// Create lines of mushrooms that spread out along the ground in Death Mode
if (death && Main.netMode != NetmodeID.MultiplayerClient)
{
float xVelocity = death ? 2f : 1f;
int numProj = death ? 5 : 3;
Vector2 initialVelocity = Vector2.UnitX * xVelocity;
int numProj = 3;
int type = ModContent.ProjectileType<MushBombGround>();
Vector2 initialVelocity = Vector2.UnitX;
Vector2 initialSpawnLocation = NPC.Bottom - new Vector2(0f, 8f);
for (int i = 0; i < numProj; i++)
Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), initialVelocity - (i / (float)numProj * initialVelocity), type, MushroomShotDamage, 0f, Main.myPlayer);
for (int i = 1; i <= numProj; i++)
Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), initialVelocity * (i / (float)numProj), type, MushroomShotDamage, 0f, Main.myPlayer);
for (int i = 0; i < numProj; i++)
Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(-81, 0), Main.rand.Next(-20, 1)), -(initialVelocity - (i / (float)numProj * initialVelocity)), type, MushroomShotDamage, 0f, Main.myPlayer);
for (int i = 1; i <= numProj; i++)
Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(-81, 0), Main.rand.Next(-20, 1)), -(initialVelocity * (i / (float)numProj)), type, MushroomShotDamage, 0f, Main.myPlayer);
}
for (int j = (int)NPC.position.X - 20; j < (int)NPC.position.X + NPC.width + 40; j += 20)
@@ -949,7 +923,7 @@ namespace CalamityMod.NPCs.Crabulon
if ((NPC.life + crabShroomSpawnFreq) < NPC.localAI[0])
{
NPC.localAI[0] = NPC.life;
int crabShroomAmt = death ? 4 : expertMode ? 3 : 2;
int crabShroomAmt = expertMode ? 3 : 2;
for (int mush = 0; mush < crabShroomAmt; mush++)
{
int x = (int)(NPC.position.X + Main.rand.Next(NPC.width - 32));
-13
View File
@@ -640,12 +640,6 @@ namespace CalamityMod.NPCs.DevourerofGods
string key = "Mods.CalamityMod.Status.Boss.DoGPhase2";
Color messageColor = Color.Cyan;
CalamityUtils.BroadcastLocalizedText(key, messageColor);
/*
var ctid = CombatText.NewText(NPC.Hitbox, messageColor, Language.GetTextValue(key), true);
if (ctid < Main.maxCombatText)
player.Calamity().subtitletext = Main.combatText[ctid];
player.Calamity().subtitleColors = new Color[] { Color.Cyan, Color.Fuchsia };
*/
DialogueDisplaySystem.StartDialogue("Mods.CalamityMod.DevourerOfGods.Phases", NPC, 2, 120, false, new BossText());
}
}
@@ -1477,13 +1471,6 @@ namespace CalamityMod.NPCs.DevourerofGods
string key = "Mods.CalamityMod.Status.Boss.DoGSubphase1";
Color messageColor = Color.Cyan;
CalamityUtils.BroadcastLocalizedText(key, messageColor);
/*
int ctid = CombatText.NewText(NPC.Hitbox, messageColor, Language.GetTextValue(key), true);
if (ctid < Main.maxCombatText)
player.Calamity().subtitletext = Main.combatText[ctid];
player.Calamity().subtitleColors = new Color[] { Color.Cyan, Color.Fuchsia };
*/
DialogueDisplaySystem.StartDialogue("Mods.CalamityMod.DevourerOfGods.Phases", NPC, 1, 120, false, new BossText());
}
+2 -2
View File
@@ -82,10 +82,10 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.dontCountMe = true;
if (Main.zenithWorld)
{
NPC.scale *= 1.5f;
if (Main.getGoodWorld)
NPC.takenDamageMultiplier = 2;
}
}
public override void BossHeadSlot(ref int index)
-8
View File
@@ -504,14 +504,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
draedonAlive = true;
}
// Prevent mechs from being respawned
// CIT 08JUN2025: This code is pointless and makes me unable to work swapping the laser arm position. Commenting it out.
/*if (otherExoMechWasFirst)
{
if (NPC.ai[3] < 1f)
NPC.ai[3] = 1f;
}*/
// Phases
bool spawnOtherExoMechs = lifeRatio < 0.7f && NPC.ai[3] == 0f;
bool berserk = lifeRatio < 0.4f || (otherExoMechsAlive == 0 && lifeRatio < 0.7f);
-15
View File
@@ -194,21 +194,6 @@ namespace CalamityMod.NPCs.NormalNPCs
{
if (Supercharged)
{
//old
/*
Texture2D shieldTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/NormalNPCs/WulfrumRoverShield").Value;
Rectangle frame = shieldTexture.Frame(1, 11, 0, (int)(Main.GlobalTimeWrappedHourly * 8) % 11);
spriteBatch.Draw(shieldTexture,
NPC.Center - screenPos + Vector2.UnitY * (NPC.gfxOffY + 6f),
frame,
Color.White * 0.625f,
NPC.rotation,
shieldTexture.Size() * 0.5f / new Vector2(1f, 11f),
NPC.scale + (float)Math.Cos(Main.GlobalTimeWrappedHourly) * 0.1f,
SpriteEffects.None,
0f);
*/
//0.6 : The noise upscale
//0.15 the scale its drawn at usually, 0.2 on Zenith
float scale = (Main.zenithWorld ? 0.2f : 0.15f) + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + NPC.whoAmI * 0.2f));
+3 -15
View File
@@ -50,6 +50,7 @@ namespace CalamityMod.NPCs.SlimeGod
{
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.MPAllowedEnemies[Type] = true;
NPCID.Sets.NeedsExpertScaling[Type] = true;
NPCID.Sets.TrailCacheLength[Type] = 8;
NPCID.Sets.TrailingMode[Type] = 1;
if (!Main.dedServ)
@@ -63,7 +64,7 @@ namespace CalamityMod.NPCs.SlimeGod
public override void SetDefaults()
{
NPC.Calamity().canBreakPlayerDefense = true;
NPC.damage = 40; // 80
NPC.damage = 0;
NPC.npcSlots = 10f;
NPC.width = 44;
NPC.height = 44;
@@ -195,9 +196,6 @@ namespace CalamityMod.NPCs.SlimeGod
// Vanish phase
if ((!purpleSlimeAlive && !redSlimeAlive) || calamityGlobalNPC.newAI[3] == 1f || NPC.ai[3] == 1f)
{
// Avoid cheap bullshit
NPC.damage = 0;
// Make sure Opacity is set to 0.8f if it's below that when the vanish phase starts
if (NPC.ai[3] == 0f)
{
@@ -354,9 +352,6 @@ namespace CalamityMod.NPCs.SlimeGod
calamityGlobalNPC.newAI[2] += 1f;
if (calamityGlobalNPC.newAI[2] >= hideInsideLargeSlimePhaseGateValue)
{
// Avoid cheap bullshit
NPC.damage = 0;
NPC.rotation += NPC.direction * 0.3f;
if (buffedSlime == 0)
@@ -427,9 +422,6 @@ namespace CalamityMod.NPCs.SlimeGod
return;
}
// Avoid cheap bullshit
NPC.damage = 0;
if (expertMode)
{
float divisor = death ? 180f : revenge ? 240f : 300f;
@@ -482,9 +474,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.ai[0] -= 1f;
if (distanceFromFlyDestination < 200f || NPC.ai[0] > 0f)
{
// Set damage
NPC.damage = NPC.defDamage;
if (distanceFromFlyDestination < 200f)
NPC.ai[0] = 20f;
@@ -655,8 +644,7 @@ IL_6899:
ModContent.ItemType<OverloadedBlaster>(),
ModContent.ItemType<AbyssalTome>(),
ModContent.ItemType<EldritchTome>(),
ModContent.ItemType<CorroslimeStaff>(),
ModContent.ItemType<CrimslimeStaff>()
ModContent.ItemType<BlightedSlimeStaff>()
};
normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons));
-77
View File
@@ -1805,83 +1805,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.noTileCollide = false;
NPC.noGravity = false;
NPC.damage = 0;
/*
// Teleport back to the arena on defeat
if (giveUpCounter == GiveUpCounterMax)
{
Dust.QuickDustLine(NPC.Center, initialRitualPosition + new Vector2(0, -30), 500f, permafrost ? Color.Cyan : Color.Red);
NPC.Center = initialRitualPosition + new Vector2(0, -30);
NPC.noTileCollide = false;
NPC.noGravity = false;
NPC.damage = 0;
SoundEngine.PlaySound(GiveUpSound with { Volume = 1.7f }, NPC.Center);
}
if (giveUpCounter == 1010)
{
Particle pulse2 = new StaticPulseRing(NPC.Center, Vector2.Zero, Color.Red * 0.55f, new Vector2(1f, 1f), 0f, 5f, 0f, 47);
GeneralParticleHandler.SpawnParticle(pulse2);
}
if (shieldOpacity > 0f)
shieldOpacity = 0;
if (giveUpCounter > 1000)
forcefieldScale = MathHelper.Lerp(forcefieldScale, 1.55f, 0.045f);
else if (giveUpCounter > 960)
forcefieldScale = MathHelper.Lerp(forcefieldScale, 0.4f, 0.085f);
if (giveUpCounter > 960)
{
for (int i = 0; i < 2; i++)
{
Vector2 sparkVel = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1.1f);
GlowOrbParticle orb = new GlowOrbParticle(NPC.Center + sparkVel * (8 * forcefieldScale), sparkVel * Utils.GetLerpValue(1200, 960, giveUpCounter, true), false, 60, Main.rand.NextFloat(0.7f, 1.7f) * Utils.GetLerpValue(1200, 960, giveUpCounter), Main.rand.NextBool() ? Color.Red : Color.Lerp(Color.Red, Color.Magenta, 0.5f), true, true);
GeneralParticleHandler.SpawnParticle(orb);
}
float vibrate = 15 * Utils.GetLerpValue(1200, 960, giveUpCounter, true);
NPC.Center = (initialRitualPosition + new Vector2(0, -30)) + Main.rand.NextVector2Circular(vibrate, vibrate);
}
else
{
if (giveUpCounter == 960)
{
NPC.Center = initialRitualPosition + new Vector2(0, -30);
Vector2 BurstFXDirection = new Vector2(0, 15);
for (int i = 0; i < 4; i++)
{
SparkParticle spark = new SparkParticle(NPC.Center, (BurstFXDirection) * (i + 1), false, 11, (5f - i * 0.6f) * 3, Color.Lerp(Color.Red, Color.Magenta, Utils.GetLerpValue(-3, 3, i)) * 0.8f);
GeneralParticleHandler.SpawnParticle(spark);
}
for (int i = 0; i < 4; i++)
{
SparkParticle spark = new SparkParticle(NPC.Center, (-BurstFXDirection) * (i + 1), false, 11, (5f - i * 0.6f) * 3, Color.Lerp(Color.Red, Color.Magenta, Utils.GetLerpValue(-3, 3, i)) * 0.8f);
GeneralParticleHandler.SpawnParticle(spark);
}
Particle orb = new CustomPulse(NPC.Center, Vector2.Zero, Color.Red, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 1.2f, 1.1f, 13);
GeneralParticleHandler.SpawnParticle(orb);
Particle orb2 = new CustomPulse(NPC.Center, Vector2.Zero, Color.Lerp(Color.Red, Color.Magenta, 0.5f), "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 1f, 0.9f, 13);
GeneralParticleHandler.SpawnParticle(orb2);
for (int i = 0; i < 4; i++)
{
Particle orb3 = new CustomPulse(NPC.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0.9f, 0.8f, 13);
GeneralParticleHandler.SpawnParticle(orb3);
}
for (int i = 0; i < 30; i++)
{
GlowOrbParticle burst = new GlowOrbParticle(NPC.Center, (new Vector2(30, 30).RotatedByRandom(100) + new Vector2(0, -2)) * Main.rand.NextFloat(0.1f, 1.2f), true, 120, Main.rand.NextFloat(1.7f, 2.7f), Main.rand.NextBool() ? Color.Red : Color.Lerp(Color.Red, Color.Magenta, 0.5f), true, true);
GeneralParticleHandler.SpawnParticle(burst);
}
NPC.velocity = new Vector2(18 * NPC.spriteDirection, -12);
giveUpCounter = GiveUpCounterMax;
hasDoneDeathAnim = true;
}
}
*/
}
else
{
-1
View File
@@ -307,7 +307,6 @@ namespace CalamityMod.NPCs.TownNPCs
NPCShop shop = new(Type);
shop.Add<Cinquedea>()
.Add<Glaive>()
.Add<SlickCane>()
.Add<OldDie>()
.Add(ItemID.TigerClimbingGear)
.Add<ThiefsDime>(Condition.DownedPirates)
Loaded 100 of 169 files, more files were not shown because too many files have changed in this diff. Show more