Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into BiomeBladeChanges

This commit is contained in:
Altixal committed 2024-07-29 23:40:13 +07:00
commit 34e7be4c41
189 files changed
+1902 -1708

No files matched your search

+4 -16
View File
@@ -357,9 +357,6 @@ namespace CalamityMod.Balancing
#endregion
#region Exo Mechs: Ares
// 50% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(ResistTrueMelee(0.5f))));
// 30% resist to Dynamic Pursuer.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
@@ -504,11 +501,11 @@ namespace CalamityMod.Balancing
#endregion
#region Supreme Calamitas: Soul Seekers
// 85% resist to Chicken Cannon.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.15f, ProjectileType<ChickenExplosion>())));
// 80% resist to Chicken Cannon.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.2f, ProjectileType<ChickenExplosion>())));
// 50% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.5f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 40% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.6f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 40% resist to Supernova.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.6f, ProjectileType<SupernovaBoom>(), ProjectileType<SupernovaStealthBoom>())));
@@ -518,15 +515,6 @@ namespace CalamityMod.Balancing
// 25% resist to Yharim's Crystal.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.75f, ProjectileType<YharimsCrystalBeam>())));
// 10% resist to Celestus.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<CelestusProj>(), ProjectileType<CelestusMiniScythe>())));
// 10% resist to Executioner's Blade stealth strikes.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<ExecutionersBladeStealthProj>())));
// 10% resist to Surge Driver's alt click comets.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<PrismComet>())));
#endregion
}
-20
View File
@@ -1,20 +0,0 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Potions
{
public class TeslaBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().tesla = true;
}
}
}
+14 -1
View File
@@ -1,4 +1,6 @@
using Terraria;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
@@ -19,5 +21,16 @@ namespace CalamityMod.Buffs.StatDebuffs
npc.DelBuff(buffIndex);
buffIndex--;
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
{
if (Main.rand.NextBool(4))
{
int dustType = Main.rand.NextBool() ? DustID.GemSapphire : DustID.BlueCrystalShard;
Vector2 dustVelocity = Vector2.UnitX.RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 12f, 0f)) * (Main.rand.NextBool() ? -1f : 1f);
Dust theDust = Dust.NewDustDirect(npc.position, npc.width, npc.height, dustType, dustVelocity.X, dustVelocity.Y);
theDust.noGravity = true;
}
}
}
}
+34 -29
View File
@@ -179,6 +179,7 @@ namespace CalamityMod.CalPlayer
#region Timer and Counter
public int gaelSwipes = 0;
public int arsenalCooldown = 0;
public int dragoonDrizzlefishGelBoost = 1;
public int deadSunCounter = 6;
public int DragonsBreathAudioCooldown = 0;
@@ -507,6 +508,8 @@ namespace CalamityMod.CalPlayer
public bool evasionScarf = false;
public bool badgeOfBravery = false;
public bool warbannerOfTheSun = false;
public bool tesla = false;
public bool teslaVisuals = true;
public bool cryogenSoul = false;
public bool ascendantInsignia = false;
public int ascendantInsigniaBuffTime = 0;
@@ -551,7 +554,7 @@ namespace CalamityMod.CalPlayer
public bool aBrain = false;
public bool amalgam = false;
public bool raiderTalisman = false;
public float raiderCritBonus = RaidersTalisman.RaiderBonus;
public float raiderCritLifespan = 0f;
public int raiderSoundCooldown = 0;
public bool gSabaton = false;
public int gSabatonHotkeyHoldTime = 0;
@@ -968,7 +971,6 @@ namespace CalamityMod.CalPlayer
public bool astralInjection = false;
public bool gravityNormalizer = false;
public bool flaskHoly = false;
public bool tesla = false;
public bool galvanicCorrosion = false;
public bool sulphurskin = false;
public bool baguette = false;
@@ -1177,7 +1179,7 @@ namespace CalamityMod.CalPlayer
public bool omegaBlueTransformation;
public bool omegaBlueTransformationForce;
public bool omegaBlueTransformationPower;
public bool redBow;
public bool ghostBracelet;
#endregion
#region Calamitas Enchant Effects
@@ -1736,6 +1738,8 @@ namespace CalamityMod.CalPlayer
evolution = false;
nanotech = false;
deadshotBrooch = false;
tesla = false;
teslaVisuals = true;
cryogenSoul = false;
ascendantInsignia = false;
ascendantTrail = false;
@@ -2032,7 +2036,6 @@ namespace CalamityMod.CalPlayer
astralInjection = false;
gravityNormalizer = false;
flaskHoly = false;
tesla = false;
galvanicCorrosion = false;
sulphurskin = false;
baguette = false;
@@ -2231,7 +2234,7 @@ namespace CalamityMod.CalPlayer
omegaBlueTransformationPrevious = omegaBlueTransformation;
omegaBlueTransformation = omegaBlueTransformationForce = omegaBlueTransformationPower = false;
redBow = false;
ghostBracelet = false;
rageModeActive = false;
adrenalineModeActive = false;
@@ -2334,6 +2337,7 @@ namespace CalamityMod.CalPlayer
#region Debuffs
heldGaelsLastFrame = false;
gaelSwipes = 0;
arsenalCooldown = 0;
andromedaState = AndromedaPlayerState.Inactive;
planarSpeedBoost = 0;
galileoCooldown = 0;
@@ -2353,7 +2357,7 @@ namespace CalamityMod.CalPlayer
spiritOriginConvertedCrit = 0;
rage = 0f;
adrenaline = 0f;
raiderCritBonus = 0f;
raiderCritLifespan = 0f;
raiderSoundCooldown = 0;
gSabatonHotkeyHoldTime = 0;
gSabatonFall = 0;
@@ -2501,7 +2505,6 @@ namespace CalamityMod.CalPlayer
astralInjection = false;
gravityNormalizer = false;
flaskHoly = false;
tesla = false;
galvanicCorrosion = false;
sulphurskin = false;
baguette = false;
@@ -2844,16 +2847,15 @@ namespace CalamityMod.CalPlayer
Player.statLife = Player.statLifeMax2;
}
}
if (CalamityKeybinds.SandCloakHotkey.JustPressed && sandCloak && Main.myPlayer == Player.whoAmI && rogueStealth >= rogueStealthMax * 0.1f &&
wearingRogueArmor && rogueStealthMax > 0 && !Player.HasCooldown(Cooldowns.SandCloak.ID))
if (CalamityKeybinds.SandCloakHotkey.JustPressed && sandCloak && Main.myPlayer == Player.whoAmI && !Player.HasCooldown(Cooldowns.SandCloak.ID))
{
Player.AddCooldown(Cooldowns.SandCloak.ID, CalamityUtils.SecondsToFrames(30));
Player.AddCooldown(Cooldowns.SandCloak.ID, CalamityUtils.SecondsToFrames(20));
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.SandCloak>()));
rogueStealth -= rogueStealthMax * 0.1f;
int damage = Player.ApplyArmorAccDamageBonusesTo(7);
int damage = Player.ApplyArmorAccDamageBonusesTo(12);
float knockback = 2.5f;
int veil = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), damage, 8, Player.whoAmI);
int veil = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), damage, knockback, Player.whoAmI);
Main.projectile[veil].Center = Player.Center;
SoundEngine.PlaySound(SoundID.Item45, Player.Center);
}
@@ -3479,12 +3481,12 @@ namespace CalamityMod.CalPlayer
{
if (Player.whoAmI == Main.myPlayer)
{
//While holding hotkey, but before slam, bring Y velocity closer to 0
// While holding hotkey, but before slam, bring Y velocity closer to 0
if (gSabatonHotkeyHoldTime < 30 && gSabatonHotkeyHoldTime != 0 && !gSabatonFalling)
{
Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime / 2f)) / 60f;
}
//Play sound a bit early so it goes in time with the fall
// Play sound a bit early so it goes in time with the fall
if (gSabatonHotkeyHoldTime == 15 && !gSabatonFalling)
{
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/GravistarCharge") { Volume = 0.3f });
@@ -3493,9 +3495,11 @@ namespace CalamityMod.CalPlayer
if (gSabatonHotkeyHoldTime == 30)
{
gSabatonFalling = true;
Player.velocity.Y = 0.01f;
}
//Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
if (Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
// Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
// Also cancel fall if the player has upwards Y velocity (Goodbye Inner Tube cheese)
if (Player.velocity.Y < 0f || Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
{
gSabatonFall = 0;
gSabatonFalling = false;
@@ -3504,16 +3508,16 @@ namespace CalamityMod.CalPlayer
{
SpawnGravistarParticle();
//Cap time converted to damage at 2 seconds
// Cap time converted to damage at 2 seconds
if (gSabatonFall < 120)
gSabatonFall++;
Player.maxFallSpeed = 40f;
Player.gravity = 1.3f;
//If the player can fly during the fall, the physics gets a bit funky
// If the player can fly during the fall, the physics gets a bit funky
Player.controlJump = false;
//Check if player hit some form of solid resistance (the ground)
// Check if player hit some form of solid resistance (the ground)
if (Player.oldVelocity.Y == Player.velocity.Y)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<InterstellarStompers>()));
@@ -3524,7 +3528,7 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<StomperSlam>(), damage, 4f, Player.whoAmI, gSabatonFall);
gSabatonFall = 0;
gSabatonFalling = false;
//Temporary jump speed is granted for 40 frames
// Temporary jump speed is granted for 40 frames
gSabatonTempJumpSpeed = 40;
}
}
@@ -3535,6 +3539,10 @@ namespace CalamityMod.CalPlayer
gSabatonFall = 0;
gSabatonFalling = false;
}
// Reset The Evolution's same projectile DR if unequipped or the cooldown ends
if (!evolution || !Player.HasCooldown(GlobalDodge.ID))
projTypeJustHitBy = -1;
}
#endregion
@@ -3883,9 +3891,6 @@ namespace CalamityMod.CalPlayer
#region Get Weapon Damage And KB
public override void ModifyWeaponDamage(Item item, ref StatModifier damage)
{
if (fungalSymbiote && CalamityLists.MushroomWeaponIDs.Contains(item.type))
damage += 0.1f;
if (item.CountsAsClass<RogueDamageClass>())
{
// Apply weapon modifier stealth strike damage bonus
@@ -3973,7 +3978,7 @@ namespace CalamityMod.CalPlayer
if (item.CountsAsClass<MeleeDamageClass>())
{
var source = Player.GetSource_ItemUse(item);
if (fungalSymbiote && CalamityLists.MushroomWeaponIDs.Contains(item.type) && Player.whoAmI == Main.myPlayer)
if (fungalSymbiote && Player.HasBuff(ModContent.BuffType<Mushy>()) && Player.whoAmI == Main.myPlayer)
{
if (Player.itemAnimation == (int)(Player.itemAnimationMax * 0.1) ||
Player.itemAnimation == (int)(Player.itemAnimationMax * 0.3) ||
@@ -4288,11 +4293,11 @@ namespace CalamityMod.CalPlayer
profanedCrystalAnimCounter = new KeyValuePair<int, int>(0, 10);
}
if (redBow)
if (ghostBracelet)
{
Player.legs = EquipLoader.GetEquipSlot(Mod, "RedBow", EquipType.Legs);
Player.body = EquipLoader.GetEquipSlot(Mod, "RedBow", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "RedBow", EquipType.Head);
Player.legs = EquipLoader.GetEquipSlot(Mod, "GhostBracelet", EquipType.Legs);
Player.body = EquipLoader.GetEquipSlot(Mod, "GhostBracelet", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "GhostBracelet", EquipType.Head);
}
if (snowRuffianSet)
+72 -65
View File
@@ -41,12 +41,10 @@ using CalamityMod.Projectiles.Typeless;
using CalamityMod.UI;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Mono.Cecil;
using Terraria;
using Terraria.Audio;
using Terraria.Chat;
using Terraria.DataStructures;
using Terraria.GameContent.Events;
using Terraria.Graphics.Renderers;
using Terraria.Graphics.Shaders;
using Terraria.ID;
@@ -498,10 +496,6 @@ namespace CalamityMod.CalPlayer
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ManaBurn").Format(Player.name));
}
if (bloodyMary || everclear || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine || Player.tipsy)
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AlcoholSmall").Format(Player.name));
}
if (witheredDebuff)
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Withered").Format(Player.name));
@@ -934,6 +928,7 @@ namespace CalamityMod.CalPlayer
{
proj.hostile = false;
proj.friendly = true;
proj.damage *= 10;
proj.velocity *= -2f;
proj.extraUpdates += 1;
proj.penetrate = 1;
@@ -1038,13 +1033,7 @@ namespace CalamityMod.CalPlayer
if (evolution)
{
if (proj.type == projTypeJustHitBy)
projectileDamageReduction += 0.15;
}
if (transformer)
{
if (proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet)
projectileDamageReduction += 0.5;
projectileDamageReduction += 0.25;
}
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && proj.damage > 0)
@@ -1292,20 +1281,36 @@ namespace CalamityMod.CalPlayer
if (!hasIFrames && !Player.creativeGodMode)
nextHitDealsDefenseDamage |= proj.Calamity().DealsDefenseDamage;
if (sulphurSet && !proj.friendly && hurtInfo.Damage > 0)
// CIT 22JUL2024: This entire code segment is bugged, so I'm disabling it.
// Very likely because it's trying to index into Main.npc using Projectile.owner.
/*if (!proj.friendly && hurtInfo.Damage > 0)
{
if (Main.player[proj.owner] is null)
{
if (!Main.npc[proj.owner].friendly)
Main.npc[proj.owner].AddBuff(BuffID.Poisoned, 60);
{
if (sulphurSet)
Main.npc[proj.owner].AddBuff(BuffID.Poisoned, 60);
if (aSpark)
{
if (transformer)
Main.npc[proj.owner].Calamity().transformerShocked = 120;
else
Main.npc[proj.owner].Calamity().shocked = 120;
}
}
}
else
{
Player p = Main.player[proj.owner];
if (p.hostile && Player.hostile && (Player.team != p.team || p.team == 0))
p.AddBuff(BuffID.Poisoned, 60);
{
if (sulphurSet)
p.AddBuff(BuffID.Poisoned, 60);
}
}
}
}*/
// Apply The Bee cooldown, must be applied here so that it does not apply on dodges
if (theBee && shouldTriggerBeeCooldown)
@@ -1315,6 +1320,21 @@ namespace CalamityMod.CalPlayer
theBeeCooldown = TheBee.CooldownLength;
}
if (ursaSergeant)
{
ursaSergeantCooldown = (int)MathHelper.Clamp(ursaSergeantCooldown - 180, 0, 300);
Player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 150);
for (int i = 0; i < 9; i++)
{
Particle spark2 = new LineParticle(Player.Center, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f), false, 20, Main.rand.NextFloat(0.5f, 1.1f), Main.rand.NextBool() ? Color.Coral : Color.DarkTurquoise);
GeneralParticleHandler.SpawnParticle(spark2);
Dust dust2 = Dust.NewDustPerfect(Player.Center, 267, new Vector2(8, 8).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1f));
dust2.scale = Main.rand.NextFloat(0.75f, 1.2f);
dust2.noGravity = true;
dust2.color = Main.rand.NextBool() ? Color.Coral : Color.DarkTurquoise;
}
}
if (proj.hostile && hurtInfo.Damage > 0)
{
if (proj.type == ProjectileID.TorchGod)
@@ -1469,23 +1489,6 @@ namespace CalamityMod.CalPlayer
// As these reflects do not cancel damage, they need to be in OnHit rather than ModifyHit
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && hurtInfo.Damage > 0)
{
// The Transformer can reflect bullets
if (transformer)
{
if (proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
{
proj.hostile = false;
proj.friendly = true;
proj.velocity *= -1f;
proj.damage = (int)Player.GetBestClassDamage().ApplyTo(proj.damage * 8);
proj.penetrate = 1;
// 17APR2024: Ozzatron: The Transformer is a reflect which also functions as a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace.
int transformerIFrames = Player.ComputeReflectIFrames();
Player.GiveUniversalIFrames(transformerIFrames, true);
}
}
double dodgeDamageGateValuePercent = 0.05;
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
@@ -2404,15 +2407,15 @@ namespace CalamityMod.CalPlayer
if (npcDist < range)
{
float duration = Main.rand.Next(300 + (int)hurtInfo.Damage / 3, 480 + (int)hurtInfo.Damage / 2);
npc.AddBuff(BuffID.Confused, (int)duration, false);
int duration = Main.rand.Next(300 + hurtInfo.Damage / 3, 480 + hurtInfo.Damage / 2);
npc.AddBuff(BuffID.Confused, duration, false);
if (amalgam)
{
npc.AddBuff(BuffID.Venom, (int)duration);
npc.AddBuff(ModContent.BuffType<Plague>(), (int)duration);
npc.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), (int)duration);
npc.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), (int)duration);
npc.AddBuff(ModContent.BuffType<Irradiated>(), (int)duration);
npc.AddBuff(BuffID.Venom, duration);
npc.AddBuff(ModContent.BuffType<Plague>(), duration);
npc.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), duration);
npc.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), duration);
npc.AddBuff(ModContent.BuffType<Irradiated>(), duration);
}
}
}
@@ -2527,36 +2530,40 @@ namespace CalamityMod.CalPlayer
}
if (aSpark)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<HideofAstrumDeus>()));
if (hurtInfo.Damage > 0)
SoundEngine.PlaySound(SoundID.Item93, Player.Center);
// Only visual effects are done here
// The actual spark spawning is now handled with the shocked variable in CalamityGlobalNPC
SeaFoamParticle boom = new(Player.Center, Vector2.Zero, new Color(89, 239, 247), new Color(56, 158, 209), 1f, 200f, Main.rand.NextBool() ? -1f : 1f);
GeneralParticleHandler.SpawnParticle(boom);
for (int e = 0; e < 6; e++)
{
SoundEngine.PlaySound(SoundID.Item93, Player.Center);
// Start with base damage, then apply the best damage class you can
int sDamage = 6;
Vector2 dustVel = Main.rand.NextVector2CircularEdge(1f, 1f) * Main.rand.NextFloat(4.5f, 5.25f);
Dust electric = Dust.NewDustPerfect(Player.Center, DustID.Electric, dustVel, Scale: 0.75f);
electric.noGravity = true;
if (transformer)
sDamage += 42;
sDamage = (int)Player.GetBestClassDamage().ApplyTo(sDamage);
sDamage = Player.ApplyArmorAccDamageBonusesTo(sDamage);
if (Player.whoAmI == Main.myPlayer)
{
float sparkCount = transformer ? 10f : 8f;
for (float i = 0f; i < sparkCount; i++)
{
Vector2 velocity = (MathHelper.TwoPi * i / sparkCount).ToRotationVector2() * 5f;
Projectile spark = Projectile.NewProjectileDirect(source, Player.Center, velocity, ModContent.ProjectileType<GenericElectricSpark>(), sDamage, 1.25f, Player.whoAmI);
spark.timeLeft = 120;
if (transformer)
{
spark.timeLeft = 240;
spark.extraUpdates = 1;
spark.penetrate = 10;
}
}
NanoParticle nano = new(Player.Center, dustVel, new Color(0, 186, 242), 1f, 20, true, true);
GeneralParticleHandler.SpawnParticle(nano);
}
}
}
if (rBrain)
{
if (!CalamityUtils.AnyProjectiles(ModContent.ProjectileType<ShadeNimbus>()))
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<RottenBrain>()));
int effectStrength = amalgam ? 3 : aBrain ? 2 : 1;
int effectDamage = amalgam ? 300 : aBrain ? 50 : 15;
effectDamage = (int)Player.GetBestClassDamage().ApplyTo(effectDamage);
effectDamage = Player.ApplyArmorAccDamageBonusesTo(effectDamage);
Vector2 spawnerVelocity = -Vector2.UnitY.RotatedByRandom(MathHelper.Pi / 40f) * 12.5f;
Projectile.NewProjectile(source, Player.Center, spawnerVelocity, ModContent.ProjectileType<ShadeNimbusSpawner>(), effectDamage, 0f, Player.whoAmI, 0f, 0f, effectStrength);
}
}
if (inkBomb && !abyssalMirror && !eclipseMirror)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
+4 -2
View File
@@ -654,10 +654,12 @@ namespace CalamityMod.CalPlayer
if (trinketOfChi || chiRegen)
Player.lifeRegen += 2;
// Remember this is for 5 seconds after triggering a reflect with a long cooldown
if (evolutionLifeRegenCounter > 0)
{
Player.lifeRegenTime += 2;
Player.lifeRegen += 2;
Player.lifeRegen += 12;
if (Player.lifeRegenTime < 3600f)
Player.lifeRegenTime = 3600f;
}
if (darkSunRing)
+36 -22
View File
@@ -193,13 +193,12 @@ namespace CalamityMod.CalPlayer
Player.GetCritChance<RangedDamageClass>() = -spiritOriginConvertedCrit;
}
if (Player.ActiveItem().type == ModContent.ItemType<GaelsGreatsword>())
heldGaelsLastFrame = true;
if (Player.ActiveItem().type != ModContent.ItemType<SaharaSlicers>())
saharaSlicersBolts = 0;
// De-equipping Gael's Greatsword deletes all rage.
if (Player.ActiveItem().type == ModContent.ItemType<GaelsGreatsword>())
heldGaelsLastFrame = true;
else if (heldGaelsLastFrame)
{
heldGaelsLastFrame = false;
@@ -1414,6 +1413,8 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
}
if (arsenalCooldown > 0)
arsenalCooldown--;
if (ascendantInsigniaCooldown > 0 && ascendantInsigniaBuffTime <= 0)
ascendantInsigniaCooldown--;
if (DragonsBreathAudioCooldown > 0)
@@ -1446,8 +1447,8 @@ namespace CalamityMod.CalPlayer
soundCooldown--;
if (shadowPotCooldown > 0)
shadowPotCooldown--;
if (raiderCritBonus > 0f)
raiderCritBonus -= RaidersTalisman.RaiderBonus / (float)CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
if (raiderCritLifespan > 0f)
raiderCritLifespan--;
if (raiderSoundCooldown > 0)
raiderSoundCooldown--;
if (astralStarRainCooldown > 0)
@@ -1570,6 +1571,9 @@ namespace CalamityMod.CalPlayer
FlameLickedShell.HandleParryCountdown(Player);
}
if (!flameLickedShell && flameLickedShellParry > 0)
flameLickedShellParry--;
// Silver Armor "Medkit" effect
if (silverMedkitTimer > 0)
{
@@ -1828,8 +1832,8 @@ namespace CalamityMod.CalPlayer
}
// Raider Talisman bonus
if (raiderTalisman && !StealthStrikeAvailable())
Player.GetCritChance<ThrowingDamageClass>() += raiderCritBonus;
if (raiderTalisman && !StealthStrikeAvailable() && raiderCritLifespan > 0f)
Player.GetCritChance<ThrowingDamageClass>() += RaidersTalisman.RaiderBonus;
if (kamiBoost)
Player.GetDamage<GenericDamageClass>() += 0.15f;
@@ -2266,11 +2270,12 @@ namespace CalamityMod.CalPlayer
double breathLossMult = 1D -
(Player.gills ? 0.2 : 0D) - // 0.8
(oceanCrest ? 0.2 : 0D) - // 0.8
(victideSet ? 0.2 : 0D) - // 0.8
(Player.accDivingHelm ? 0.25 : 0D) - // 0.75
(Player.arcticDivingGear ? 0.25 : 0D) - // 0.75
(aquaticEmblem ? 0.25 : 0D) - // 0.75
(Player.accMerman ? 0.3 : 0D) - // 0.7
(victideSet ? 0.2 : 0D) - // 0.85
(reaverExplore ? 0.3 : 0D) - // 0.7
((aquaticHeart && NPC.downedBoss3) ? 0.3 : 0D) - // 0.7
(abyssalDivingSuit ? 0.3 : 0D); // 0.7
@@ -2358,7 +2363,7 @@ namespace CalamityMod.CalPlayer
// Reduce breath
if (Player.breath > 0)
Player.breath -= (int)(cDepth ? breathLoss + 1D : breathLoss);
Player.breath -= (int)(cDepth && !depthCharm ? breathLoss + 1D : breathLoss);
}
// If breath is greater than 0 and player has gills or is merfolk, balance out the effects by reducing breath
@@ -2911,7 +2916,7 @@ namespace CalamityMod.CalPlayer
if (giantPearl)
{
if (Main.netMode != NetmodeID.MultiplayerClient && !areThereAnyDamnBosses)
if (Main.netMode != NetmodeID.MultiplayerClient)
{
foreach (NPC npc in Main.ActiveNPCs)
{
@@ -3032,7 +3037,11 @@ namespace CalamityMod.CalPlayer
}
if (mushy)
Player.statDefense += 6;
{
Player.statDefense += 8;
if (fungalSymbiote)
Player.GetDamage<GenericDamageClass>() += 0.1f;
}
if (omniscience)
{
@@ -3117,14 +3126,6 @@ namespace CalamityMod.CalPlayer
if (manaOverloader)
Player.GetDamage<MagicDamageClass>() += 0.06f;
if (rBrain)
{
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.75))
Player.GetDamage<GenericDamageClass>() += 0.1f;
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.moveSpeed -= 0.05f;
}
if (bloodyWormTooth)
{
Player.GetDamage<MeleeDamageClass>() += 0.1f;
@@ -3231,7 +3232,7 @@ namespace CalamityMod.CalPlayer
var p = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -1f, ModContent.ProjectileType<SilvaCrystal>(), damage, 0f, Main.myPlayer, -20f, 0f);
if (Main.projectile.IndexInRange(p))
Main.projectile[p].originalDamage = 600;
Main.projectile[p].originalDamage = baseDamage;
}
}
@@ -3532,11 +3533,24 @@ namespace CalamityMod.CalPlayer
if (check)
{
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
var source = Player.GetSource_Buff(Player.FindBuffIndex(ModContent.BuffType<TeslaBuff>()));
int damage = (int)Player.GetBestClassDamage().ApplyTo(10);
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<TeslasAmulet>()));
int damage = (int)Player.GetBestClassDamage().ApplyTo(12);
if (Player.ownedProjectileCounts[ModContent.ProjectileType<TeslaAura>()] < 1)
Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<TeslaAura>(), damage, 0f, Player.whoAmI);
}
// Reduce duration of Static Discharge
for (int l = 0; l < Player.MaxBuffs; l++)
{
if (Player.buffType[l] == ModContent.BuffType<StaticDischarge>())
{
if (Player.buffTime[l] > 2)
{
Player.buffTime[l]--;
break;
}
}
}
}
}
else if (Player.ownedProjectileCounts[ModContent.ProjectileType<TeslaAura>()] > 0)
+24 -21
View File
@@ -7,9 +7,7 @@ using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Cooldowns;
using CalamityMod.Dusts;
using CalamityMod.EntitySources;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Armor.Prismatic;
using CalamityMod.Items.Armor.Reaver;
using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Items.VanillaArmorChanges;
@@ -27,7 +25,6 @@ using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using MonoMod.Cil;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
@@ -59,9 +56,10 @@ namespace CalamityMod.CalPlayer
return;
// Handle on-hit melee effects for the gem tech armor set.
GemTechState.MeleeOnHitEffects(target);
if (item.CountsAsClass<MeleeDamageClass>())
GemTechState.MeleeOnHitEffects(target);
// Handle on-hit melee effects for the mythril armor set.
// Handle on-hit melee effects for the mythril armor set. (all class inclusive)
MythrilArmorSetChange.OnHitEffects(target, damageDone, Player);
if (witheringWeaponEnchant)
@@ -202,11 +200,11 @@ namespace CalamityMod.CalPlayer
GemTechState.MeleeOnHitEffects(target);
// Handle on-hit ranged effects for the gem tech armor set.
if (proj.CountsAsClass<RangedDamageClass>() && proj.type != ModContent.ProjectileType<GemTechGreenFlechette>())
if (proj.CountsAsClass<RangedDamageClass>() && proj.type != ProjectileType<GemTechGreenFlechette>())
GemTechState.RangedOnHitEffects(target, proj.damage);
// Handle on-hit projectiles effects for the mythril armor set.
if (proj.type != ModContent.ProjectileType<MythrilFlare>())
if (proj.type != ProjectileType<MythrilFlare>())
MythrilArmorSetChange.OnHitEffects(target, damageDone, Player);
if (witheringWeaponEnchant)
@@ -497,7 +495,7 @@ namespace CalamityMod.CalPlayer
if (Main.player[Main.myPlayer].lifeSteal <= 0f || heal <= 0 || target.lifeMax <= 5)
return;
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ModContent.ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
}
if ((cgp.betterLifeBullet1 || cgp.betterLifeBullet2) && proj.numHits == 0)
@@ -519,7 +517,7 @@ namespace CalamityMod.CalPlayer
for (int i = 0; i <= 2; i++)
{
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ModContent.ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
}
}
@@ -625,13 +623,13 @@ namespace CalamityMod.CalPlayer
if (!proj.CountsAsClass<MeleeDamageClass>() && !proj.CountsAsClass<SummonMeleeSpeedDamageClass>() && Player.meleeEnchant == 7)
Projectile.NewProjectile(source, position, proj.velocity, ProjectileID.ConfettiMelee, 0, 0f, proj.owner);
if (alchFlask && AlchFlaskCooldown == 0 && proj.type != ModContent.ProjectileType<BasicPlagueBee>())
if (alchFlask && AlchFlaskCooldown == 0 && proj.type != ProjectileType<BasicPlagueBee>())
{
int seekerDamage = (int)Player.GetBestClassDamage().ApplyTo(10);
seekerDamage = Player.ApplyArmorAccDamageBonusesTo(seekerDamage);
Vector2 seekerVelocity = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.5f, 1.2f);
Projectile bee = Projectile.NewProjectileDirect(source, position, seekerVelocity, ModContent.ProjectileType<BasicPlagueBee>(), seekerDamage, 0f, Player.whoAmI, -20, 30, 2);
Projectile bee = Projectile.NewProjectileDirect(source, position, seekerVelocity, ProjectileType<BasicPlagueBee>(), seekerDamage, 0f, Player.whoAmI, -20, 30, 2);
bee.ArmorPenetration = 20;
bee.penetrate = 2;
bee.extraUpdates = 1;
@@ -674,7 +672,7 @@ namespace CalamityMod.CalPlayer
{
AbaddonCooldown = 15;
int AbaddonExploDamage = CalamityUtils.DamageSoftCap(proj.damage * 0.03f, 25);
Projectile.NewProjectile(source, position, Vector2.Zero, ModContent.ProjectileType<AbaddonCrit>(), AbaddonExploDamage, 0f, Player.whoAmI);
Projectile.NewProjectile(source, position, Vector2.Zero, ProjectileType<AbaddonCrit>(), AbaddonExploDamage, 0f, Player.whoAmI);
}
if (ursaSergeant && ursaSergeantCooldown <= 0)
@@ -684,7 +682,7 @@ namespace CalamityMod.CalPlayer
int ursaSlashdamage = (int)Player.GetBestClassDamage().ApplyTo(333);
ursaSlashdamage = Player.ApplyArmorAccDamageBonusesTo(ursaSlashdamage);
Projectile.NewProjectile(source, position, Vector2.Zero, ModContent.ProjectileType<UrsaSlash>(), ursaSlashdamage, 0f, Player.whoAmI);
Projectile.NewProjectile(source, position, Vector2.Zero, ProjectileType<UrsaSlash>(), ursaSlashdamage, 0f, Player.whoAmI);
}
if (proj.CountsAsClass<MeleeDamageClass>())
@@ -807,7 +805,7 @@ namespace CalamityMod.CalPlayer
// Bloodflare Mage Explosion: 50%, softcap starts at 500 base damage to not overly punish slow weapons
int bloodflareFireballDamage = Player.ApplyArmorAccDamageBonusesTo(CalamityUtils.DamageSoftCap(proj.damage * 0.5, 250));
int fire = Projectile.NewProjectile(source, position, Vector2.Zero, ModContent.ProjectileType<BloodBombExplosion>(), bloodflareFireballDamage, 0f, Player.whoAmI, 0f, 0f, 1f);
int fire = Projectile.NewProjectile(source, position, Vector2.Zero, ProjectileType<BloodBombExplosion>(), bloodflareFireballDamage, 0f, Player.whoAmI, 0f, 0f, 1f);
if (fire.WithinBounds(Main.maxProjectiles))
{
Main.projectile[fire].DamageType = DamageClass.Generic;
@@ -1097,9 +1095,9 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<TitanHeartBoom>(), damage, proj.knockBack, proj.owner, 1f, 0f);
SoundEngine.PlaySound(SoundID.Item14, proj.Center);
for (int dustexplode = 0; dustexplode < 360; dustexplode++)
for (int dustexplode = 0; dustexplode < 180; dustexplode++)
{
Vector2 dustd = new Vector2(17f, 17f).RotatedBy(MathHelper.ToRadians(dustexplode));
Vector2 dustd = new Vector2(17f, 17f).RotatedBy(MathHelper.ToRadians(dustexplode * 2));
int d = Dust.NewDust(proj.Center, proj.width, proj.height, Main.rand.NextBool() ? DustType<AstralBlue>() : DustType<AstralOrange>(), dustd.X, dustd.Y, 100, default, 1f);
Main.dust[d].noGravity = true;
Main.dust[d].position = proj.Center;
@@ -1154,7 +1152,7 @@ namespace CalamityMod.CalPlayer
if (raiderTalisman && modProj.stealthStrike)
{
raiderCritBonus = RaidersTalisman.RaiderBonus;
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
if (raiderSoundCooldown <= 0)
{
SoundEngine.PlaySound(RaidersTalisman.StealthHitSound, Player.Center);
@@ -1202,7 +1200,7 @@ namespace CalamityMod.CalPlayer
{
if (eGauntlet)
{
CalamityUtils.Inflict246DebuffsNPC(target, ModContent.BuffType<ElementalMix>());
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<ElementalMix>());
}
if (ataxiaFire)
{
@@ -1285,7 +1283,7 @@ namespace CalamityMod.CalPlayer
//20% chance for Voltaic Jelly
if (Main.rand.NextBool(starTaintedGenerator ? 1 : 5))
{
target.AddBuff(ModContent.BuffType<StaticDischarge>(), 60);
target.AddBuff(BuffType<StaticDischarge>(), 60);
}
}
@@ -1303,6 +1301,11 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<CrushDepth>(), 180);
if (sulphurSet)
target.AddBuff(BuffID.Poisoned, 60);
if (aSpark && Player.IsUnderwater())
{
int duration = transformer ? 120 : 60;
target.AddBuff(BuffType<StaticDischarge>(), duration);
}
if (abyssalAmulet)
{
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<RiptideDebuff>());
@@ -1344,7 +1347,7 @@ namespace CalamityMod.CalPlayer
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
target.Calamity().gladiatorOnKill = false;
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center.X, target.Center.Y, target.velocity.X / 2, target.velocity.Y / 2, ModContent.ProjectileType<GladiatorHealOrb>(), 0, 0f);
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center.X, target.Center.Y, target.velocity.X / 2, target.velocity.Y / 2, ProjectileType<GladiatorHealOrb>(), 0, 0f);
}
if (Main.player[Main.myPlayer].lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
@@ -1510,7 +1513,7 @@ namespace CalamityMod.CalPlayer
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
target.Calamity().gladiatorOnKill = false;
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ModContent.ProjectileType<GladiatorHealOrb>(), 0, 0f);
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0f);
}
if (reaverDefense)
+5 -37
View File
@@ -106,8 +106,6 @@ namespace CalamityMod
public static List<int> amalgamBuffList;
public static List<int> persistentBuffList;
public static List<int> MagicGunIDs;
public static List<int> MushroomWeaponIDs;
public static List<int> MushroomProjectileIDs;
public static List<int> BlacklistedWeaponsWithToolPower;
// Some of these lists of enemies are unused, but were difficult to create. Many of these common enemy types have a ton of variants.
@@ -911,17 +909,17 @@ namespace CalamityMod
NPCType<KingSlimeJewelRuby>(),
NPCType<KingSlimeJewelSapphire>(),
NPCType<KingSlimeJewelEmerald>(),
NPCID.EyeofCthulhu,
NPCType<BloodlettingServant>(),
NPCID.EaterofWorldsHead,
NPCID.EaterofWorldsBody,
NPCID.EaterofWorldsTail,
NPCID.BrainofCthulhu,
NPCID.Creeper,
NPCID.EyeofCthulhu,
NPCType<BloodlettingServant>(),
NPCID.QueenBee,
NPCID.Deerclops,
NPCID.SkeletronHead,
NPCID.SkeletronHand,
NPCID.Deerclops,
NPCID.WallofFlesh,
NPCID.WallofFleshEye,
NPCID.PirateShipCannon,
@@ -939,7 +937,6 @@ namespace CalamityMod
NPCID.Plantera,
NPCID.PlanterasTentacle,
NPCType<PlanterasFreeTentacle>(),
NPCID.HallowBoss,
NPCID.Everscream,
NPCID.SantaNK1,
NPCID.IceQueen,
@@ -957,6 +954,7 @@ namespace CalamityMod
NPCID.DukeFishron,
NPCID.Sharkron,
NPCID.Sharkron2,
NPCID.HallowBoss,
NPCID.CultistBoss,
NPCID.CultistDragonHead,
NPCID.CultistDragonBody1,
@@ -1564,6 +1562,7 @@ namespace CalamityMod
TileType<LivingGodSlayerFireBlockTile>(),
TileType<LivingHolyFireBlockTile>(),
TileType<LivingBrimstoneFireBlockTile>(),
TileType<LivingPlagueFireBlockTile>(),
TileID.LivingFire,
TileID.LivingCursedFire,
TileID.LivingDemonFire,
@@ -1587,7 +1586,6 @@ namespace CalamityMod
BuffType<ShadowBuff>(),
BuffType<Soaring>(),
BuffType<SulphurskinBuff>(),
BuffType<TeslaBuff>(),
BuffType<WeaponImbueBrimstone>(),
BuffType<WeaponImbueCrumbling>(),
BuffType<WeaponImbueHolyFlames>(),
@@ -1725,34 +1723,6 @@ namespace CalamityMod
ItemID.ZapinatorOrange
};
MushroomWeaponIDs = new List<int>()
{
ItemType<Mycoroot>(),
ItemType<InfestedClawmerang>(),
ItemType<PuffShroom>(),
ItemType<HyphaeRod>(),
ItemType<Fungicide>(),
ItemType<MycelialClaws>(),
ItemType<Shroomer>(),
ItemID.Hammush,
ItemID.MushroomSpear,
ItemID.Shroomerang
};
MushroomProjectileIDs = new List<int>()
{
ProjectileType<MycorootProj>(),
ProjectileType<ShroomerangSpore>(),
ProjectileType<InfestedClawmerangProj>(),
ProjectileType<PuffCloud>(),
ProjectileType<FungiOrb2>(),
ProjectileType<FungiOrb>(),
ProjectileType<Shroom>(),
ProjectileID.TruffleSpore,
ProjectileID.MushroomSpear,
ProjectileID.Shroomerang
};
// This list intentionally does not contain Grax.
BlacklistedWeaponsWithToolPower = new List<int>()
{
@@ -2762,8 +2732,6 @@ namespace CalamityMod
amalgamBuffList = null;
persistentBuffList = null;
MagicGunIDs = null;
MushroomWeaponIDs = null;
MushroomProjectileIDs = null;
BlacklistedWeaponsWithToolPower = null;
zombieList = null;
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.Localization;
using static CalamityMod.CalamityUtils;
namespace CalamityMod.Cooldowns
{
public class ArsenalPower : CooldownHandler
{
public static new string ID => "ArsenalPower";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ArsenalPower";
public override Color OutlineColor => Color.White;
public override Color CooldownStartColor => Color.Sienna;
public override Color CooldownEndColor => Color.LightSlateGray;
public override SoundStyle? EndSound => new("CalamityMod/Sounds/Item/ArsenalOffCooldown");
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

+2 -22
View File
@@ -8,7 +8,6 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
// TODO -- this item includes a dodge accessory, Brain of Cthulhu
public class AmalgamatedBrain : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
@@ -24,29 +23,10 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rBrain = true; // Handles shaderain cloud spawning on hit
modPlayer.aBrain = true;
player.brainOfConfusionItem = Item;
if (player.immune)
{
var source = player.GetSource_Accessory(Item);
if (player.miscCounter % 6 == 0)
{
if (player.whoAmI == Main.myPlayer)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(60);
damage = player.ApplyArmorAccDamageBonusesTo(damage);
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
{
rain.DamageType = DamageClass.Generic;
rain.tileCollide = false;
rain.penetrate = 1;
}
}
}
}
player.GetDamage<GenericDamageClass>() += 0.1f;
player.GetDamage<GenericDamageClass>() += 0.05f;
}
public override void AddRecipes()
-82
View File
@@ -1,82 +0,0 @@
using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class AmidiasPendant : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public const int ShardProjectiles = 2;
public const float ShardAngleSpread = 120;
public int ShardCountdown = 0;
public override void SetDefaults()
{
Item.width = 26;
Item.height = 46;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
if (ShardCountdown <= 0)
{
ShardCountdown = 140;
}
if (ShardCountdown > 0)
{
ShardCountdown -= Main.rand.Next(1, 4);
if (ShardCountdown <= 0)
{
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
int speed2 = 25;
float spawnX = Main.rand.Next(1000) - 500 + player.Center.X;
float spawnY = -1000 + player.Center.Y;
Vector2 baseSpawn = new Vector2(spawnX, spawnY);
Vector2 baseVelocity = player.Center - baseSpawn;
baseVelocity.Normalize();
baseVelocity *= speed2;
int spawnOffset = ShardProjectiles * 15;
float spread = -ShardAngleSpread / 2f;
for (int i = 0; i < ShardProjectiles; i++)
{
Vector2 spawn = baseSpawn;
spawn.X = spawn.X + i * 30 - spawnOffset;
Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(spread + (ShardAngleSpread * i / (float)ShardProjectiles)));
velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f;
int type = 0;
int damage = 0;
switch (Main.rand.Next(3))
{
case 0:
type = ModContent.ProjectileType<PendantProjectile1>();
damage = 15;
break;
case 1:
type = ModContent.ProjectileType<PendantProjectile2>();
damage = 15;
break;
case 2:
type = ModContent.ProjectileType<PendantProjectile3>();
damage = 30;
break;
}
int finalDamage = (int)player.GetBestClassDamage().ApplyTo(damage);
finalDamage = player.ApplyArmorAccDamageBonusesTo(finalDamage);
Projectile.NewProjectile(source, spawn.X, spawn.Y, velocity.X / 3, velocity.Y / 2, type, finalDamage, 5f, Main.myPlayer);
}
}
}
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

+2
View File
@@ -17,6 +17,8 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().transformer;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
+2 -2
View File
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories
public override void SetDefaults()
{
Item.width = 38;
Item.height = 44;
Item.width = 50;
Item.height = 48;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.defense = 8; // we buff Ankh Shield to 8
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+30
View File
@@ -1,10 +1,14 @@
using CalamityMod.CalPlayer;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[LegacyName("AmidiasPendant")]
public class GiantPearl : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
@@ -22,6 +26,32 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.giantPearl = true;
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.45f, 0.8f, 0.8f);
// Draw the aura visual
float npcDistCompare = 1000f;
foreach (NPC n in Main.ActiveNPCs)
{
if (n.friendly || n.dontTakeDamage)
continue;
float currentNPCDist = Vector2.Distance(n.Center, player.Center);
if (currentNPCDist < npcDistCompare)
npcDistCompare = currentNPCDist;
}
float opacity = Utils.Remap(npcDistCompare, 120f, 640f, 1f, 0f);
if (opacity > 0.7f)
{
for (int d = 0; d < 3; d++)
{
Vector2 bubbleSpawn = player.Center + Vector2.UnitX.RotatedByRandom(MathHelper.Pi) * 120f;
GenericBubbleParticle bubble = new(bubbleSpawn, Main.rand.NextVector2CircularEdge(0.75f, 0.75f), 0.3f, Main.rand.NextFloat(MathHelper.TwoPi), 8);
GeneralParticleHandler.SpawnParticle(bubble);
}
}
CustomPulse auraVisual = new(player.Center, Vector2.Zero, new Color(75, 164, 191), "CalamityMod/Particles/HighResFoggyCircleHardEdge", Vector2.One, 0f, 0.12f, 0.1175f, 3, true, opacity);
GeneralParticleHandler.SpawnParticle(auraVisual);
}
}
}
+4 -3
View File
@@ -15,7 +15,7 @@ using static CalamityMod.CalamityUtils;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Back)]
//Its not like its a renamed version of the bayonet, but i put this here more as a way to "refund" the item, so it doesnt end up rotting as an unloaded item.
//It's not like it's a renamed version of the bayonet, but I put this here more as a way to "refund" the item, so it doesnt end up rotting as an unloaded item.
[LegacyName("MarniteBayonet")]
public class MarniteRepulsionShield : ModItem, ILocalizedModType
{
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Blue;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.accessory = true;
Item.defense = 2;
Item.defense = 4;
}
public override void UpdateAccessory(Player player, bool hideVisual)
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
var source = player.GetSource_Accessory(Item);
if (player.ownedProjectileCounts[ModContent.ProjectileType<MarniteRepulsionHitbox>()] < 1)
{
var hitbox = Projectile.NewProjectileDirect(source, player.Center, Vector2.Zero, ModContent.ProjectileType<MarniteRepulsionHitbox>(), baseDamage, 10f, Main.myPlayer);
var hitbox = Projectile.NewProjectileDirect(source, player.Center, Vector2.Zero, ModContent.ProjectileType<MarniteRepulsionHitbox>(), baseDamage, 12f, Main.myPlayer);
hitbox.originalDamage = baseDamage;
}
}
@@ -91,6 +91,7 @@ namespace CalamityMod.Items.Accessories
Projectile.penetrate = -1;
Projectile.timeLeft = 700;
Projectile.tileCollide = false;
Projectile.ArmorPenetration = 20;
Projectile.netImportant = true;
}
+18 -42
View File
@@ -33,11 +33,11 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.nCore = true;
player.GetDamage<GenericDamageClass>() += 0.1f;
int damage = (int)player.GetBestClassDamage().ApplyTo(250);
damage = player.ApplyArmorAccDamageBonusesTo(damage);
float knockBack = 3f;
// Spawn nebula stars
if (Main.rand.NextBool(15))
{
// Count the number of current active nebula stars; if this is at least 10, no more can spawn
int numProj = 0;
foreach (Projectile p in Main.ActiveProjectiles)
{
@@ -46,56 +46,32 @@ namespace CalamityMod.Items.Accessories
numProj++;
}
}
var source = player.GetSource_Accessory(Item);
if (Main.rand.Next(15) >= numProj && numProj < 10)
{
int spawnRadius = 24;
int backupSpawnRadius = 90;
for (int j = 0; j < 50; j++)
for (int j = 0; j < 50; j++) // Attempt to spawn the star randomly around the player
{
int randomProjOffset = Main.rand.Next(200 - j * 2, 400 + j * 2);
float randomProjOffset = Main.rand.NextFloat(200 - j * 2, 400 + j * 2);
Vector2 center = player.Center;
center.X += (float)Main.rand.Next(-randomProjOffset, randomProjOffset + 1);
center.Y += (float)Main.rand.Next(-randomProjOffset, randomProjOffset + 1);
center.X += Main.rand.NextFloat(-randomProjOffset, randomProjOffset + 1);
center.Y += Main.rand.NextFloat(-randomProjOffset, randomProjOffset + 1);
// Ensure we are not trying to spawn the star on top of a solid tile or liquid
if (!Collision.SolidCollision(center, spawnRadius, spawnRadius) && !Collision.WetCollision(center, spawnRadius, spawnRadius))
{
center.X += (float)(spawnRadius / 2);
center.Y += (float)(spawnRadius / 2);
if (Collision.CanHit(new Vector2(player.Center.X, player.position.Y), 1, 1, center, 1, 1) || Collision.CanHit(new Vector2(player.Center.X, player.position.Y - 50f), 1, 1, center, 1, 1))
// Ensure the star's spawn point has line-of-sight with the player
if (Collision.CanHit(player.Center, 1, 1, center, 1, 1) || Collision.CanHit(player.Center - new Vector2(0f, 50f), 1, 1, center, 1, 1))
{
int projTileX = (int)center.X / 16;
int projTileY = (int)center.Y / 16;
bool canSpawnProj = false;
if (Main.rand.NextBool(3) && Main.tile[projTileX, projTileY] != null && Main.tile[projTileX, projTileY].WallType > 0)
if (Main.rand.NextBool(3) && Main.myPlayer == player.whoAmI)
{
canSpawnProj = true;
}
else
{
center.X -= (float)(backupSpawnRadius / 2);
center.Y -= (float)(backupSpawnRadius / 2);
if (Collision.SolidCollision(center, backupSpawnRadius, backupSpawnRadius))
{
center.X += (float)(backupSpawnRadius / 2);
center.Y += (float)(backupSpawnRadius / 2);
canSpawnProj = true;
}
}
if (canSpawnProj)
{
for (int k = 0; k < Main.maxProjectiles; k++)
{
if (Main.projectile[k].active && Main.projectile[k].owner == player.whoAmI && Main.projectile[k].type == ModContent.ProjectileType<NebulaStar>() && (center - Main.projectile[k].Center).Length() < 48f)
{
canSpawnProj = false;
break;
}
}
if (canSpawnProj && Main.myPlayer == player.whoAmI)
{
Projectile.NewProjectile(source, center.X, center.Y, 0f, 0f, ModContent.ProjectileType<NebulaStar>(), damage, knockBack, player.whoAmI);
return;
}
var source = player.GetSource_Accessory(Item);
int damage = (int)player.GetBestClassDamage().ApplyTo(250);
damage = player.ApplyArmorAccDamageBonusesTo(damage);
float knockBack = 3f;
Projectile.NewProjectile(source, center.X, center.Y, 0f, 0f, ModContent.ProjectileType<NebulaStar>(), damage, knockBack, player.whoAmI);
return;
}
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
public class RaidersTalisman : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public const float RaiderBonus = 12f;
public const float RaiderBonus = 10f;
public const int RaiderCooldown = 5;
public static readonly SoundStyle StealthHitSound = new("CalamityMod/Sounds/Custom/RaidersTalismanStealthHit");
+1 -20
View File
@@ -20,28 +20,9 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
if (player.immune)
{
var source = player.GetSource_Accessory(Item);
if (player.miscCounter % 6 == 0)
{
if (player.whoAmI == Main.myPlayer)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(18);
damage = player.ApplyArmorAccDamageBonusesTo(damage);
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
{
rain.DamageType = DamageClass.Generic;
rain.tileCollide = false;
rain.penetrate = 1;
}
}
}
}
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rBrain = true;
player.GetDamage<GenericDamageClass>() += 0.06f;
}
public override void AddRecipes()
-3
View File
@@ -7,8 +7,6 @@ namespace CalamityMod.Items.Accessories
{
public class SandCloak : ModItem, ILocalizedModType
{
public static float KnockbackStrength = 0.3f;
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
@@ -17,7 +15,6 @@ namespace CalamityMod.Items.Accessories
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
Item.defense = 2;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.SandCloakHotkey);
+45
View File
@@ -0,0 +1,45 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class TeslasAmulet : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 14));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.rare = ItemRarityID.Orange;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().tesla = true;
player.Calamity().teslaVisuals = !hideVisual;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.BottledWater).
AddIngredient<AerialiteBar>(8).
AddIngredient<SeaPrism>(8).
AddIngredient<StormlionMandible>(4).
AddTile(TileID.Anvils).
Register();
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

+1 -19
View File
@@ -34,28 +34,10 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rBrain = true; // Handles shaderain cloud spawning on hit
modPlayer.amalgam = true;
player.brainOfConfusionItem = Item;
player.GetDamage<GenericDamageClass>() += 0.15f;
if (player.immune)
{
var source = player.GetSource_Accessory(Item);
if (player.miscCounter % 6 == 0)
{
if (player.whoAmI == Main.myPlayer)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(300);
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
{
rain.DamageType = DamageClass.Generic;
rain.tileCollide = false;
rain.penetrate = 1;
}
}
}
}
}
public override void AddRecipes()
+2
View File
@@ -27,6 +27,8 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().aSpark;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -4,23 +4,22 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories.Vanity
{
public class RedBow : ModItem, ILocalizedModType
[LegacyName("RedBow")]
public class GhostBracelet : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void Load()
{
if (Main.netMode != NetmodeID.Server)
{
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Apelusa_Head", EquipType.Head, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Apelusa_Body", EquipType.Body, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Apelusa_Legs", EquipType.Legs, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Head", EquipType.Head, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Body", EquipType.Body, this);
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Legs", EquipType.Legs, this);
}
}
public override void SetStaticDefaults()
{
if (Main.netMode == NetmodeID.Server)
return;
@@ -37,8 +36,8 @@ namespace CalamityMod.Items.Accessories.Vanity
public override void SetDefaults()
{
Item.width = 22;
Item.height = 30;
Item.width = 42;
Item.height = 38;
Item.accessory = true;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
@@ -48,21 +47,21 @@ namespace CalamityMod.Items.Accessories.Vanity
public override void UpdateVanity(Player player)
{
player.Calamity().redBow = true;
player.Calamity().ghostBracelet = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
if (!hideVisual)
{
player.Calamity().redBow = true;
player.Calamity().ghostBracelet = true;
}
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Silk, 5).
AddIngredient(ItemID.Silk, 20).
AddTile(TileID.Loom).
Register();
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

+2 -2
View File
@@ -61,13 +61,13 @@ namespace CalamityMod.Items.Armor.GemTech
Item.height = 32;
Item.defense = 14;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.rare = RarityType<Violet>();
Item.Calamity().donorItem = true;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<GemTechBodyArmor>() && legs.type == ModContent.ItemType<GemTechSchynbaulds>();
return body.type == ItemType<GemTechBodyArmor>() && legs.type == ItemType<GemTechSchynbaulds>();
}
public static bool HasArmorSet(Player player) => player.armor[0].type == ItemType<GemTechHeadgear>() && player.armor[1].type == ItemType<GemTechBodyArmor>() && player.armor[2].type == ItemType<GemTechSchynbaulds>();
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 0;
Item.defense = 1;
}
private void ActivateLift(Terraria.On_Player.orig_QuickMount orig, Player self)
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
orig(self);
}
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<MarniteArchitectToga>();
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ItemType<MarniteArchitectToga>();
public static bool HasArmorSet(Player player) => player.armor[0].type == ItemType<MarniteArchitectHeadgear>() && player.armor[1].type == ItemType<MarniteArchitectToga>();
public bool IsPartOfSet(Item item) => item.type == ItemType<MarniteArchitectHeadgear>() ||
item.type == ItemType<MarniteArchitectToga>();
@@ -155,12 +155,13 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 1;
Item.defense = 2;
}
public override void UpdateEquip(Player player)
{
player.tileSpeed += 0.5f;
player.wallSpeed += 0.5f;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => MarniteArchitectHeadgear.ModifySetTooltips(this, tooltips);
@@ -204,7 +205,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
public override void PostUpdateMiscEffects()
{
if (!setEquipped && Player.mount.Type == ModContent.MountType<MarniteLift>() && Player.mount.Active)
if (!setEquipped && Player.mount.Type == MountType<MarniteLift>() && Player.mount.Active)
Player.mount.Dismount(Player);
if (mounted)
@@ -367,7 +368,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
//Sprites
if (Main.netMode != NetmodeID.Server)
{
MountData.frontTextureGlow = ModContent.Request<Texture2D>("CalamityMod/Items/Armor/MarniteArchitect/MarniteLiftFire");
MountData.frontTextureGlow = Request<Texture2D>("CalamityMod/Items/Armor/MarniteArchitect/MarniteLiftFire");
}
}
+8 -3
View File
@@ -41,8 +41,9 @@ namespace CalamityMod.Items.Armor.Reaver
modPlayer.reaverExplore = true;
modPlayer.wearingRogueArmor = true;
player.findTreasure = true;
player.blockRange += 4;
player.aggro -= 200;
if (player.IsUnderwater())
player.gills = true;
if (player.whoAmI == Main.myPlayer)
{
@@ -55,6 +56,10 @@ namespace CalamityMod.Items.Armor.Reaver
{
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<ReaverOrb>(), 0, 0f, player.whoAmI);
}
// These are static variables. Awesome
Player.tileRangeX += 7;
Player.tileRangeY += 7;
}
}
@@ -63,8 +68,8 @@ namespace CalamityMod.Items.Armor.Reaver
player.ignoreWater = true;
player.lavaImmune = true;
player.pickSpeed -= 0.2f;
player.tileSpeed += 0.4f;
player.wallSpeed += 0.4f;
player.tileSpeed += 0.5f;
player.wallSpeed += 0.5f;
}
public override void AddRecipes()
+3 -3
View File
@@ -82,9 +82,9 @@ namespace CalamityMod.Items.Armor.Wulfrum
}
}
else if (player.HasItem(ModContent.ItemType<WulfrumMetalScrap>()))
else if (player.HasItem(ItemType<WulfrumMetalScrap>()))
{
player.ConsumeItem(ModContent.ItemType<WulfrumMetalScrap>());
player.ConsumeItem(ItemType<WulfrumMetalScrap>());
//I Thiiiinnnk there's no need to add mp syncing packets since cooldowns get auto synced right.
player.AddCooldown(WulfrumBastion.ID, BastionCooldown + BastionTime);
//Though do i need to sync that or is the player inventory auto synced?
@@ -234,7 +234,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
setBonus1.OverrideColor = Color.Lerp(new Color(194, 255, 67), new Color(112, 244, 244), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f));
tooltips.Insert(setBonusIndex + 1, setBonus1);
int AmmoItem = ModContent.ItemType<WulfrumMetalScrap>();
int AmmoItem = ItemType<WulfrumMetalScrap>();
string AmmoDisplay = $"[i:{AmmoItem}] {CalamityUtils.GetItemName(AmmoItem)}";
TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem<WulfrumHat>("AbilityDescription").Format(AmmoDisplay));
setBonus2.OverrideColor = new Color(110, 192, 93);
+7 -2
View File
@@ -204,6 +204,10 @@ namespace CalamityMod.Items
break;
}
// Increase how much health Mushrooms heal.
if (item.type == ItemID.Mushroom && item.healLife == 15)
item.healLife = 25;
// Allow Beam Sword to change direction when it fires, because vanilla disables it for some reason.
if (item.type == ItemID.BeamSword)
item.ChangePlayerDirectionOnShoot = true;
@@ -1629,9 +1633,10 @@ namespace CalamityMod.Items
if (grabRangeMultiplier > 1f)
grabRange = (int)(grabRangeMultiplier * grabRange);
// Then, if wearing the appropriate Reaver armor, add 20 flat item grab range.
// Then, if wearing the appropriate Reaver armor, add 246 flat item grab range. (2.625 + 15.375 = 18 tiles)
// For reference, Treasure Magnet adds 150 (2.625 + 9.375 = 12 tiles)
if (player.Calamity().reaverExplore)
grabRange += 20;
grabRange += 246;
}
#endregion
+2 -2
View File
@@ -826,7 +826,7 @@ namespace CalamityMod.Items
//Flame Waker Boots buff.
if (item.type == ItemID.FlameWakerBoots)
{
EditTooltipByNum(0, (line) => line.Text = "Multiplies all fire-based debuff damage by 1.25\n" +
EditTooltipByNum(0, (line) => line.Text = "Multiplies all fire-based debuff damage by 1.25x\n" +
"All attacks light enemies on fire\n" +
"'Never get cold feet again'");
}
@@ -835,7 +835,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.HellfireTreads)
{
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("fire blocks", "the Burning and On Fire! debuffs"));
EditTooltipByNum(2, (line) => line.Text += "\nMultiplies all fire-based debuff damage by 1.5, does not stack with downgrades\n" +
EditTooltipByNum(2, (line) => line.Text += "\nMultiplies all fire-based debuff damage by 1.5x, does not stack with downgrades\n" +
"All attacks inflict Hellfire");
}
+1 -1
View File
@@ -248,7 +248,7 @@ namespace CalamityMod.Items
{ ItemID.TerraBlade, Do(DamageExact(122)) },
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
// Terrarian is extremely overpowered and requires a heavy nerf.
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(86)) },
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(90)) },
{ ItemID.TheEyeOfCthulhu, Do(AutoReuse, DamageExact(90)) },
{ ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) },
{ ItemID.TheUndertaker, Do(PointBlank, AutoReuse, DamageExact(15)) },
@@ -0,0 +1,44 @@
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.LivingFire;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.LivingFire
{
public class LivingPlagueFireBlock : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 12;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createTile = ModContent.TileType<LivingPlagueFireBlockTile>();
}
public override void PostUpdate()
{
Lighting.AddLight((int)((Item.position.X + Item.width / 2) / 16f), (int)((Item.position.Y + Item.height / 2) / 16f), 0f, 1f, 0.2f);
}
public override void AddRecipes()
{
CreateRecipe(20).
AddIngredient(ItemID.LivingFireBlock, 20).
AddIngredient<PlagueCellCanister>().
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

+1 -2
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Potions.Alcohol
Item.value = Item.sellPrice(silver: 40);
}
public override bool? UseItem(Player player)
public override void OnConsumeItem(Player player)
{
if (PlayerInput.Triggers.JustPressed.QuickBuff)
{
@@ -49,7 +49,6 @@ namespace CalamityMod.Items.Potions.Alcohol
}
}
player.AddBuff(Item.buffType, Item.buffTime);
return true;
}
}
}
+1 -2
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Potions
Item.buffTime = CalamityUtils.SecondsToFrames(360f);
}
public override bool? UseItem(Player player)
public override void OnConsumeItem(Player player)
{
if (PlayerInput.Triggers.JustPressed.QuickBuff)
{
@@ -49,7 +49,6 @@ namespace CalamityMod.Items.Potions
}
player.AddBuff(BuffID.MagicPower, Item.buffTime);
player.AddBuff(BuffID.ManaRegeneration, Item.buffTime);
return true;
}
}
}
+1 -2
View File
@@ -52,12 +52,11 @@ namespace CalamityMod.Items.Potions
return player.potionDelay <= 0 && player.Calamity().potionTimer <= 0;
}
public override bool? UseItem(Player player)
public override void OnConsumeItem(Player player)
{
player.AddBuff(BuffType, BuffDuration);
// fixes hardcoded potion sickness duration from quick heal (see CalamityPlayerMiscEffects.cs)
player.Calamity().potionTimer = 2;
return true;
}
public override void AddRecipes()
-60
View File
@@ -1,60 +0,0 @@
using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Placeables.Ores;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class TeslaPotion : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Potions";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 20;
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 14));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.useTurn = true;
Item.maxStack = 9999;
Item.rare = ItemRarityID.Orange;
Item.useAnimation = 17;
Item.useTime = 17;
Item.useStyle = ItemUseStyleID.DrinkLiquid;
Item.UseSound = SoundID.Item3;
Item.consumable = true;
Item.buffType = ModContent.BuffType<TeslaBuff>();
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
Item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void AddRecipes()
{
CreateRecipe(5).
AddIngredient(ItemID.BottledWater).
AddIngredient<AerialiteOre>(2).
AddIngredient<SeaPrism>(5).
AddIngredient<PearlShard>().
AddIngredient<StormlionMandible>().
AddTile(TileID.Bottles).
AddDecraftCondition(CalamityConditions.DownedHiveMindOrPerforator).
Register();
CreateRecipe().
AddIngredient(ItemID.BottledWater).
AddIngredient<BloodOrb>(10).
AddIngredient<PearlShard>().
AddTile(TileID.AlchemyTable).
Register()
.DisableDecraft();
}
}
}
+2 -2
View File
@@ -38,8 +38,8 @@ namespace CalamityMod.Items.SummonItems.Invasion
public override bool? UseItem(Player player)
{
CalamityNetcode.SyncWorld();
AcidRainEvent.TryStartEvent(true);
AcidRainEvent.TryStartEvent(forceRain: true);
//CalamityNetcode.SyncWorld(); //TryStartEvent(forceRain: true) already sync the world data
return true;
}
@@ -39,7 +39,16 @@ namespace CalamityMod.Items.SummonItems.Invasion
public override bool? UseItem(Player player)
{
Main.StartInvasion(InvasionID.MartianMadness);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Main.invasionDelay = 0;
Main.StartInvasion(InvasionID.MartianMadness);
}
else
{
//-7.0 is hardcoded id for MartianMadness Event
NetMessage.SendData(MessageID.SpawnBossUseLicenseStartEvent, number: player.whoAmI, number2: -7.0f);
}
return true;
}
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools
Item.shootSpeed = BobbitHead.LaunchSpeed; // How quickly the hook is shot.
Item.shoot = ProjectileType<BobbitHead>();
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
Item.rare = ModContent.RarityType<PureGreen>();
Item.rare = RarityType<PureGreen>();
}
}
}
+6
View File
@@ -34,9 +34,15 @@ namespace CalamityMod.Items.Tools.ClimateChange
public override bool CanUseItem(Player player)
{
//Only SinglePlayer or DedServ should change time to prevent unwanted race condition
if (Main.netMode == NetmodeID.MultiplayerClient)
return true;
if (CalamityPlayer.areThereAnyDamnBosses)
return false;
// Early Morning -> Noon
if (Main.dayTime && Main.time < NoonCutoff)
Main.SkipToTime(NoonCutoff, true);
@@ -90,15 +90,15 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags
};
itemLoot.AddIf(getsHapuFruit, ModContent.ItemType<HapuFruit>());
// Apelusa dev item
// Name specific: "Pelusa"
static bool getsRedBow(DropAttemptInfo info)
// Dandy dev item
// Name specific: "Dandy"
static bool getsGhostBracelet(DropAttemptInfo info)
{
string playerName = info.player.name;
return playerName == "Pelusa";
return playerName == "Dandy";
}
itemLoot.AddIf(getsRedBow, ModContent.ItemType<RedBow>());
itemLoot.AddIf(getsGhostBracelet, ModContent.ItemType<GhostBracelet>());
// Mishiro dev vanity
// Name specific: "Amber" or "Mishiro"
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.useTurn = false;
Item.knockBack = 7f;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
@@ -37,6 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.useStyle = ItemUseStyleID.Shoot;
Item.shoot = ModContent.ProjectileType<AnomalysNanogunHoldout>();
Item.UseSound = null;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
Item.rare = ModContent.RarityType<DarkBlue>();
@@ -33,6 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.UseSound = SoundID.Item1;
+41 -16
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Magic;
using CalamityMod.NPCs.BrimstoneElemental;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria;
@@ -11,37 +12,61 @@ namespace CalamityMod.Items.Weapons.Magic
public class SeethingDischarge : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public int DartTimer = 0;
public override void SetDefaults()
{
Item.width = 28;
Item.height = 32;
Item.damage = 52;
Item.damage = 40;
Item.DamageType = DamageClass.Magic;
Item.mana = 15;
Item.useTime = 24;
Item.useAnimation = 24;
Item.mana = 20;
Item.useTime = 60;
Item.useAnimation = 60;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 6.75f;
Item.UseSound = CommonCalamitySounds.FlareSound;
Item.UseSound = BrimstoneElemental.ShellFireSound;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<SeethingDischargeBrimstoneBarrage>();
Item.shootSpeed = 12f;
Item.shootSpeed = 10f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float SpeedX = velocity.X + 10f * 0.05f;
float SpeedY = velocity.Y + 10f * 0.05f;
float SpeedX2 = velocity.X - 10f * 0.05f;
float SpeedY2 = velocity.Y - 10f * 0.05f;
float SpeedX3 = velocity.X + 0f * 0.05f;
float SpeedY3 = velocity.Y + 0f * 0.05f;
Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(source, position.X, position.Y, SpeedX2, SpeedY2, ModContent.ProjectileType<SeethingDischargeBrimstoneHellblast>(), damage, knockback, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(source, position.X, position.Y, SpeedX3, SpeedY3, type, damage, knockback, player.whoAmI, 0f, 0f);
DartTimer++;
// Spawn hellblasts
float diameter = 50f;
Vector2 projVelocity = velocity.SafeNormalize(Vector2.UnitY);
projVelocity *= diameter;
int totalProjectiles = 5;
float offsetAngle = MathHelper.Pi * 0.2f;
for (int j = 0; j < totalProjectiles; j++)
{
float radians = j - (totalProjectiles - 1f) / 2f;
Vector2 offset = projVelocity.RotatedBy(offsetAngle * radians);
Projectile.NewProjectile(source, player.Center + offset, velocity, ModContent.ProjectileType<SeethingDischargeBrimstoneHellblast>(), damage, knockback, player.whoAmI);
}
// Every 3rd attack, spawn a ring of homing darts
if (DartTimer == 3)
{
DartTimer = 0;
totalProjectiles = 8;
Vector2 initialOffset = Vector2.UnitX.RotatedBy(Main.rand.NextFloat(0f, MathHelper.PiOver4));
for (int k = 0; k < totalProjectiles; k++)
{
velocity = initialOffset.RotatedBy(MathHelper.TwoPi * (k / (float)totalProjectiles)) * Item.shootSpeed;
Projectile.NewProjectile(source, player.Center, velocity, type, damage, 0f, player.whoAmI, 0f, 1f);
}
}
return false;
}
}
+1 -1
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 86;
Item.height = 104;
Item.damage = 466;
Item.damage = 460;
Item.DamageType = DamageClass.Magic;
Item.useTime = Item.useAnimation = 20;
Item.shootSpeed = 7f;
+1 -1
View File
@@ -85,7 +85,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 28f;
Item.rare = ModContent.RarityType<Violet>();
Item.rare = RarityType<Violet>();
}
// Terraria seems to really dislike high crit values in SetDefaults
+2 -2
View File
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 74;
Item.height = 86;
Item.width = 86;
Item.height = 98;
Item.damage = 105;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 22;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+1 -1
View File
@@ -138,7 +138,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ExobladeGlow").Value);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ExobladeGlow").Value);
}
public override void AddRecipes()
+6 -44
View File
@@ -16,9 +16,9 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 126;
Item.height = 42;
Item.damage = 290;
Item.damage = 277;
Item.DamageType = DamageClass.Ranged;
Item.useTime = Item.useAnimation = 33;
Item.useTime = Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
@@ -27,58 +27,20 @@ namespace CalamityMod.Items.Weapons.Ranged
// No use sound is intentional
Item.autoReuse = true;
Item.shootSpeed = 14.5f;
Item.shoot = ModContent.ProjectileType<ChickenRocket>();
Item.shoot = ModContent.ProjectileType<ChickenCannonHeld>();
Item.useAmmo = AmmoID.Rocket;
Item.channel = true;
}
public override void HoldItem(Player player)
{
Item.channel = player.altFunctionUse != 2;
Item.noUseGraphic = player.altFunctionUse != 2;
Item.noUseGraphic = true;
}
public override Vector2? HoldoutOffset() => new Vector2(-20, 0);
public override bool AltFunctionUse(Player player) => true;
// Right click doesn't use ammo because it's a detonation signal.
public override bool CanConsumeAmmo(Item ammo, Player player) => player.altFunctionUse != 2;
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[ModContent.ProjectileType<ChickenCannonHeld>()] <= 0 || player.altFunctionUse == 2;
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
// Play a sound and detonate all in-flight rockets, but don't shoot anything.
if (player.altFunctionUse == 2)
{
SoundEngine.PlaySound(SoundID.Item110, position);
DetonateRockets(player);
return false;
}
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<ChickenCannonHeld>(), 0, 0f, player.whoAmI, 1);
// Otherwise just play a grenade launcher sound and fire a rocket.
//Main.PlaySound(SoundID.Item61, position);
//Projectile.NewProjectile(source, position, velocity, item.shoot, damage, knockback, player.whoAmI);
Projectile.NewProjectile(source, position, velocity, type, 0, 0f, player.whoAmI, 1);
return false;
}
private void DetonateRockets(Player player)
{
foreach (Projectile p in Main.ActiveProjectiles)
{
if (p.owner != player.whoAmI || p.type != Item.shoot)
continue;
// All rockets will instantly explode on the next frame and send packets to indicate as such.
p.timeLeft = 1;
p.netUpdate = true;
p.netSpam = 0;
}
}
// Right clicking to detonate all rockets is very fast.
public override float UseSpeedMultiplier(Player player) => player.altFunctionUse == 2 ? 5f : 1f;
}
}
+2 -8
View File
@@ -1,18 +1,12 @@
using System;
using System.Collections.Generic;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.CalPlayer;
using CalamityMod.NPCs.NormalNPCs;
using System.Collections.Generic;
using CalamityMod.Projectiles.Boss;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using static Humanizer.In;
namespace CalamityMod.Items.Weapons.Ranged
{
@@ -37,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 38;
Item.height = 34;
Item.damage = 35;
Item.damage = 41;
Item.DamageType = DamageClass.Ranged;
Item.useTime = SetUseTime;
+1
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.rare = ItemRarityID.Green;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.DamageType = RogueDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.UseSound = SoundID.Item1;
Item.shoot = ModContent.ProjectileType<BouncingEyeballProjectile>();
+1
View File
@@ -34,6 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.noMelee = true;
Item.noUseGraphic = true;
Item.UseSound = SoundID.Item1;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.knockBack = 4;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.rare = RarityType<Violet>();
Item.Calamity().donorItem = true;
Item.autoReuse = false;
+3 -3
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Summon
Item.channel = true;
Item.noMelee = true;
Item.shoot = ModContent.ProjectileType<CnidarianJellyfishOnTheString>();
Item.shoot = ProjectileType<CnidarianJellyfishOnTheString>();
Item.shootSpeed = 10f;
Item.rare = ItemRarityID.Green;
@@ -124,7 +124,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D properSprite = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/Cnidarian").Value;
Texture2D properSprite = Request<Texture2D>("CalamityMod/Items/Weapons/Summon/Cnidarian").Value;
spriteBatch.DrawNewInventorySprite(properSprite, new Vector2(42f, 34), position, drawColor, origin, scale);
return false;
@@ -132,7 +132,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D properSprite = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/Cnidarian").Value;
Texture2D properSprite = Request<Texture2D>("CalamityMod/Items/Weapons/Summon/Cnidarian").Value;
spriteBatch.Draw(properSprite, Item.position - Main.screenPosition, null, lightColor, rotation, properSprite.Size() / 2f, scale, 0, 0);
return false;
@@ -597,11 +597,6 @@ SulphurskinBuff: {
Description: The sulphuric waters have a lesser effect on you
}
TeslaBuff: {
DisplayName: Tesla's Electricity
Description: Summons an aura of electricity
}
WeaponImbueBrimstone: {
DisplayName: Weapon Imbue: Brimstone
Description: Melee, Whip, and Rogue attacks ignite enemies with brimstone flames
@@ -785,7 +780,7 @@ KamiBuff: {
Mushy: {
DisplayName: Mushy
Description: Increased defense by 6 and life regen by 1HP/s
Description: Increased defense by 8 and life regen by 1HP/s
}
PhantomicEmpowerment: {
@@ -42,7 +42,7 @@ AbyssalDivingSuit: {
Grants the ability to swim, extends underwater breathing, emits light underwater, and improves mobility on ice
Provides a moderate amount of light and reduces breath loss in the abyss
Abyss creatures are less likely to see you, mitigates the abyss' defense reduction, and lets you sink faster in liquids
Grants immunity to the sulphurous waters
Grants immunity to the sulphurous waters and Crush Depth's increased breath loss
'''
}
@@ -103,10 +103,11 @@ AmalgamatedBrain: {
DisplayName: Amalgamated Brain
Tooltip:
'''
10% increased damage
Shade rains down and enemies are confused when hit,
and summon damage and crit chance are boosted by 10%
5% increased damage
Taking damage confuses nearby enemies and spawns a dank creeper
The dank creeper flies above you, exploding into several shaderain clouds
Grants the ability to dodge attacks
After dodging, summon damage and crit chance are boosted by 10%
'''
HoldShiftTooltip:
'''
@@ -129,14 +130,14 @@ AmbrosialAmpoule: {
'''
}
AmidiasPendant: {
DisplayName: Amidias' Pendant
Tooltip: Periodically rains down prism shards that briefly stun enemies
}
AmidiasSpark: {
DisplayName: Amidias' Spark
Tooltip: Taking damage releases a blast of sparks
Tooltip:
'''
Attacks inflict Static Discharge while underwater
Taking damage causes the enemy to be shocked
Shocked enemies constantly release sparks
'''
}
AncientFossil: {
@@ -359,7 +360,7 @@ BlunderBooster: {
12% increased rogue damage and 15% increased rogue projectile velocity
Stealth generates 10% faster
Summons a red lightning aura around the player that electrifies nearby enemies
The aura's appearance can be toggled with visibility
The aura has reduced opacity if visibility is disabled
Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards diagonal dash
This dash leaves a trail of red lightning bolts
This effect has a 1 second cooldown before it can be used again
@@ -573,6 +574,7 @@ DepthCharm: {
'''
Reduces the damage caused by drowning in the abyss
Removes the bleed effect caused by the upper layers of the abyss
Removes the increased breath loss of Crush Depth
'''
}
@@ -808,8 +810,8 @@ FungalSymbiote: {
Tooltip:
'''
You grow mushrooms on the grass beneath you
Consuming mushrooms provides the Mushy buff, granting 6 defense and +1 HP/s life regen
All mushroom-based weapons deal 10% more damage and emit harmless mushrooms
Consuming mushrooms provides the Mushy buff, granting 8 defense and +1 HP/s life regen
10% increased damage while you have the Mushy buff
'''
}
@@ -819,7 +821,7 @@ GiantPearl: {
'''
You have a light aura around you
Enemies within the aura are slowed down
Does not work while a boss is alive
You release homing prism shards while an enemy is slowed
Provides a small amount of light in the abyss
'''
}
@@ -1101,8 +1103,7 @@ Nanotech: {
Stealth strikes summon nanobeams and sparks on enemy hits
Stealth strikes have +15 armor penetration, deal 5% more damage, and heal for 2 HP
15% increased rogue damage and 15% increased rogue velocity
Landing a stealth strike grants a 12% crit bonus to non-stealth strikes
This crit bonus slowly decays
Stealth strikes grant 10% critical strike chance to non-stealth strikes for 5 seconds
'''
}
@@ -1356,11 +1357,7 @@ RadiantOoze: {
RaidersTalisman: {
DisplayName: Raider's Talisman
Tooltip:
'''
Stealth strikes grant 12% crit bonus to non-stealth strikes
This crit bonus slowly decays
'''
Tooltip: Stealth strikes grant 10% critical strike chance to non-stealth strikes for 5 seconds
}
RampartofDeities: {
@@ -1410,9 +1407,9 @@ RottenBrain: {
DisplayName: Rotten Brain
Tooltip:
'''
10% increased damage when below 75% life
5% decreased movement speed when below 50% life
Shade rains down when you are hit
6% increased damage
Taking damage spawns a dank creeper
The dank creeper flies above you, exploding into several shaderain clouds
'''
}
@@ -1458,9 +1455,9 @@ SandCloak: {
Tooltip:
'''
5% increased movement speed
Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil
While inside the veil, you gain 6 defense and +1 HP/s life regen
This effect has a 30 second cooldown before it can be used again
Press [KEY] to create a protective sand veil which damages enemies inside it
While inside the veil, you gain 6 defense and 3% critical strike chance
This effect has a 20 second cooldown before it can be used again
'''
}
@@ -1754,6 +1751,16 @@ SupremeBaitTackleBoxFishingStation: {
'''
}
TeslasAmulet: {
DisplayName: Tesla's Amulet
Tooltip:
'''
Generates an electrifying field that slows enemies
The field has reduced opacity if visibility is disabled
Reduces the duration of the Static Discharge debuff
'''
}
TheAbsorber: {
DisplayName: The Absorber
Tooltip:
@@ -1772,8 +1779,11 @@ TheAmalgam: {
Tooltip:
'''
15% increased damage
Shade rains down when you are hit
Most buffs last twice as long, and persist after dying
Taking damage inflicts several debuffs on nearby enemies and spawns a dank creeper
The dank creeper flies above you, exploding into several shaderain clouds
Grants the ability to dodge attacks
After dodging, summon damage and crit chance are boosted by 10%
'''
HoldShiftTooltip:
'''
@@ -1828,12 +1838,12 @@ TheEvolution: {
DisplayName: The Evolution
Tooltip:
'''
Reflects projectiles that hit you, making them harmless to you but 10x more harmful to enemies
Reflects projectiles that hit you, reducing their damage to 1 and dealing 10x damage to enemies
Projectiles that deal less than 5% of your max life in damage will not be reflected
The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage
This cooldown is shared with all other dodges and reflects
Reflecting a projectile grants +1 HP/s life regen and accelerated life regen for 5 seconds
If the same enemy projectile type hits you again you will resist its damage by 15%
Reflecting a projectile grants +6 HP/s life regen for 5 seconds and grants maximum natural life regen
Getting hit by the same enemy projectile type during cooldown will resist its damage by 25%
'''
}
@@ -1863,10 +1873,11 @@ TheTransformer: {
DisplayName: The Transformer
Tooltip:
'''
Multiplies all electric debuff damage by 1.5
Taking damage releases a blast of sparks
Complete immunity to Electrified and all electric attacks
You take halved damage from enemy bullets and reflect them for 800% damage
Multiplies all electricity debuff damage by 1.5x
Attacks inflict Static Discharge while underwater
Reduces the damage of all electricity debuffs by 50%
Taking damage causes the enemy to be shocked
Shocked enemies constantly release sparks
'''
}
@@ -2027,9 +2038,9 @@ CrystalHeartVodka: {
Tooltip: "'Tastes like strawberry cream liqueur (and estrogen)'"
}
CocosFeather: {
DisplayName: Coco's Feather
Tooltip: ""
GhostBracelet: {
DisplayName: Ghost Bracelet
Tooltip: Wow.... It looks at me with its hollow eyes full of curiosity
}
HapuFruit: {
@@ -2050,8 +2061,3 @@ Popo: {
'Don't let the demons steal your nose'
'''
}
RedBow: {
DisplayName: Red Bow
Tooltip: "'Pelusa's favorite bow'"
}
@@ -460,17 +460,17 @@ ReaverHeadExplore: {
DisplayName: Reaver Headgear
Tooltip:
'''
20% increased mining speed and block/wall placement speed
20% increased mining speed
50% increased block & wall placement speed
Grants immunity to lava and can move freely through liquids
'''
SetBonus:
'''
Highlights all treasure nearby
Increased item grab range and block placement range
Mining tiles restores breath while underwater
Summons a reaver orb to light up the area around you
Reduces enemy aggression, even in the abyss
Provides a small amount of light in the abyss
Summons an orb which highlights nearby treasure and provides light
Grants underwater breathing and reduced enemy aggression
These have a moderate effect while in the Abyss
Increased block placement & tool range by 7
Increases pickup range for items
'''
}
@@ -96,7 +96,7 @@ MarniteArchitectHeadgear: {
MarniteArchitectToga: {
DisplayName: Marnite Architect Toga
Tooltip: Increases tile placement speed by 50%
Tooltip: Increases block & wall placement speed by 50%
}
SnowRuffianChestplate: {
@@ -46,7 +46,7 @@ UrsaSergeant: {
Attacks maul enemies with astral claw swipes
Taking damage reduces the cooldown, but inflicts you with Astral Infection
Enemy kills also reduce the cooldown
Swipes will be opaque and produce no sound if visibility is disabled
Swipes will be translucent and silent if visibility is disabled
'''
}
@@ -3095,6 +3095,11 @@ LivingHolyFireBlock: {
Tooltip: ""
}
LivingPlagueFireBlock: {
DisplayName: Living Plague Fire Block
Tooltip: ""
}
DraedonExoSelectMusicBox: {
DisplayName: Music Box (Exo Mech Selection)
Tooltip: Plays 'Signal Received' by CDMusic
@@ -155,15 +155,6 @@ SupremeManaPotion: {
Tooltip: ""
}
TeslaPotion: {
DisplayName: Tesla Potion
Tooltip:
'''
Summons an aura of electricity that electrifies and slows enemies
Aura damage is reduced on bosses
'''
}
ZenPotion: {
DisplayName: Zen Potion
Tooltip: Vastly decreases enemy spawn rate
@@ -158,7 +158,8 @@ PulseTurretRemote: {
DisplayName: Pulse Turret Remote
Tooltip:
'''
Summons a pulse turret which eradicates nearby foes with focused energy blasts
{$CommonItemTooltip.Sentry}
Summons a turret to fire explosive pulse blasts at your enemies
Only one pulse turret may exist at a time
'''
}
@@ -723,7 +723,11 @@ SanguineFlare: {
SeethingDischarge: {
DisplayName: Seething Discharge
Tooltip: Fires a barrage of brimstone blasts
Tooltip:
'''
Fires an accelerating arc of brimstone hellblasts
Every third attack spawns a brimstone dart ring which chases after foes
'''
}
Serpentine: {
@@ -239,11 +239,7 @@ Buzzkill: {
ChickenCannon: {
DisplayName: Chicken Cannon
Tooltip:
'''
Fires chicken flares which create enormous incendiary explosions
Press <right> to detonate all airborne rockets
'''
Tooltip: Fires chicken flares which create enormous incendiary explosions
}
ChromaticEruption: {
@@ -588,7 +588,11 @@ Hypothermia: {
Icebreaker: {
DisplayName: Icebreaker
Tooltip: Stealth strikes spawn a cosmic explosion and freeze nearby enemies on enemy hits
Tooltip:
'''
Throws an icy hammer that magically returns to the player
Stealth strikes spawn a cosmic explosion and freeze nearby enemies on hit
'''
}
IceStar: {
@@ -24,7 +24,8 @@ AquasScepter: {
DisplayName: Aqua's Scepter
Tooltip:
'''
Summons a giant storm cloud sentry to rain down on your foes, and strike nearby enemies with overloading tesla energy
{$CommonItemTooltip.Sentry}
Summons a giant storm cloud to rain down on your foes, and strike nearby enemies with overloading tesla energy
'Captain! I think- we've got a risk of rain!'
'''
}
@@ -44,6 +45,7 @@ AtlasMunitionsBeacon: {
DisplayName: Atlas Munitions Beacon
Tooltip:
'''
[c/F2B629:{$CommonItemTooltip.Sentry}]
[c/F2B629:Brings forth an exo-powered, stationary cannon]
[c/F2B629:The cannon will fire at enemies within its range]
[c/F27049:If an enemy is in close proximity, it will enter Overdrive]
@@ -96,7 +98,11 @@ BrittleStarStaff: {
CadaverousCarrion: {
DisplayName: Cadaverous Carrion
Tooltip: Summons a gross, shark-puking Old Duke head on the ground
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a gross, shark-puking Old Duke head on the ground
'''
}
CalamarisLament: {
@@ -115,7 +121,11 @@ CalamarisLament: {
CausticCroakerStaff: {
DisplayName: Caustic Croaker Staff
Tooltip: Summons a toad that explodes if enemies are nearby
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a toad that explodes if enemies are nearby
'''
}
CausticStaff: {
@@ -214,7 +224,8 @@ CryogenicStaff: {
DisplayName: Cryogenic Staff
Tooltip:
'''
Summons an animated ice construct to protect you
{$CommonItemTooltip.Sentry}
Summons an ice construct to unleash the cold upon your enemies
Fire rate and range increase the longer it targets an enemy
'''
}
@@ -277,7 +288,11 @@ DragonbloodDisgorger: {
DreadmineStaff: {
DisplayName: Dreadmine Staff
Tooltip: Summons a dreadmine turret to fight for you
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a turret that swarms your enemies with sea mines
'''
}
EnchantedConch: {
@@ -415,7 +430,8 @@ GuidelightofOblivion: {
DisplayName: Guidelight of Oblivion
Tooltip:
'''
Summons a lantern turret to fight for you
{$CommonItemTooltip.Sentry}
Summons a lantern that swarms your enemies with flames
'Shadows dream of endless fire, flames devour and embers swoop'
'''
}
@@ -424,6 +440,7 @@ HarvestStaff: {
DisplayName: Harvest Staff
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Grows a pumpkin patch that sprouts pumpkins nearby
Pumpkins will hop out when approached by nearby creatures or players
Once out, they will aggressively tackle enemies, exploding on hit
@@ -443,7 +460,11 @@ HerringStaff: {
HivePod: {
DisplayName: Hive Pod
Tooltip: Summons an astraglomerate to protect you
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons an astraglomerate to spawn glomerings at your enemies
'''
}
IgneousExaltation: {
@@ -503,7 +524,6 @@ Metastasis: {
It takes up 4 minion slots and it can only be summoned once
[c/C61B40:A contemplated possible future of the cosmic serpent,]
[c/C61B40:A gruesome warning for those blinded by the hunger for power.]
'''
}
@@ -540,7 +560,11 @@ MutatedTruffle: {
OrthoceraShell: {
DisplayName: Orthocera Shell
Tooltip: Summons a flying orthocera sentry at the mouse position
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a flying orthocera to spit acid streams at your enemies
'''
}
Perdition: {
@@ -564,7 +588,11 @@ PlantationStaff: {
PolypLauncher: {
DisplayName: Polyp Launcher
Tooltip: Summons a polyp bunch that launches coral chunks at nearby enemies
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a polyp bunch that launches coral chunks at nearby enemies
'''
}
PuffShroom: {
@@ -586,14 +614,18 @@ RustyBeaconPrototype: {
DisplayName: Rusty Beacon Prototype
Tooltip:
'''
Summons a long-abandoned drone to support you
The drone hovers in place and releases toxic waves that irradiate hit enemies
{$CommonItemTooltip.Sentry}
Summons a long-abandoned drone that passively emits irradiated waves
'''
}
SanctifiedSpark: {
DisplayName: Sanctified Spark
Tooltip: Summons a profaned energy turret to fight for you
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a friendly immolator to fire holy sparks at your enemies
'''
}
SandSharknadoStaff: {
@@ -649,17 +681,26 @@ SlimePuppetStaff: {
SpikecragStaff: {
DisplayName: Spikecrag Staff
Tooltip: "[GFB]"
TooltipNormal: Summons a spikecrag to protect you
TooltipNormal:
'''
{$CommonItemTooltip.Sentry}
Summons a bed of stalagmites to spray spikes at your enemies
'''
TooltipGFB:
'''
Summons a spikecrag to protect you"
{$CommonItemTooltip.Sentry}
Summons a bed of stalagmites to spray spikes at your enemies
Defeating the Profaned Goddess unlocks its true power
'''
}
SquirrelSquireStaff: {
DisplayName: Squirrel Squire Staff
Tooltip: Summons a squirrel squire to fight for you
Tooltip:
'''
{$CommonItemTooltip.Sentry}
Summons a squirrel to throw acorns at your enemies
'''
}
StaffOfNecrosteocytes: {
@@ -579,7 +579,7 @@ THIEF: {
LikeNPC: "{NPCName} doesn't only keep spiky balls in his pockets, he keeps a ton of cash! He's too absentminded to notice I'm stealing from him too! I like that a lot!"
DislikeNPC: What a goody two shoes, {NPCName} is! I dislike her out of principle! …And because she has almost no material goods.
LikeNPC_Princess: I couldn't bear to steal anything from {NPCName}, she's so cute!
Princess_LovesNPC: "{NPCName} gifts me with nice exact replicas of other's things, I wonder how she does it!"
Princess_LovesNPC: "{NPCName} gifts me with nice exact replicas of other's things, I wonder how they do it!"
}
}
@@ -81,7 +81,7 @@ HolyFlare.DisplayName: Holy Flare
HolyLight.DisplayName: Holy Light
HolySpear.DisplayName: Holy Spear
HomingGasBulb.DisplayName: Homing Gas Bulb
HomingGasBulbSporeGas.DisplayName: Homing Gas Bulb Spore Gas
HomingGasBulbSporeGas.DisplayName: Spore Bulb Gas
IceBlast.DisplayName: Ice Blast
IceBomb.DisplayName: Ice Bomb
IceRain.DisplayName: Ice Rain
@@ -20,7 +20,6 @@ AstralCrystalInvisibleExplosion.DisplayName: Astral Crystal Invisible Explosion
AstralStarMagic.DisplayName: Astral Star
AtlantisSpear.DisplayName: Atlantis Spear
AugurTentacle.DisplayName: Elemental Tentacle
AuraRain.DisplayName: Aura Rain
AuroraAustralis.DisplayName: Aurora Australis
BeamingBolt.DisplayName: Beaming Bolt
BeamingBolt2.DisplayName: Beaming Bolt
@@ -195,7 +194,6 @@ SerpentineBody.DisplayName: Serpentine
SerpentineHead.DisplayName: Serpentine
SerpentineTail.DisplayName: Serpentine
ShadecrystalProjectile.DisplayName: Shadecrystal
ShadeNimbus.DisplayName: Shade Nimbus
ShadeNimbusCloud.DisplayName: Shade Nimbus
Shaderain.DisplayName: Shaderain
Shadowbolt.DisplayName: Shadowbolt
@@ -76,6 +76,7 @@ DeepWounderWater.DisplayName: Water Droplet
DesecratedBubble.DisplayName: Desecrated Bubble
DesecratedWaterProj.DisplayName: Desecrated Water
DestructionBolt.DisplayName: Destruction Bolt
DestructionExplosion.DisplayName: Destruction Explosion
DestructionStar.DisplayName: Star of Destruction
DragonScalesInfernado.DisplayName: Infernado
DragonShit.DisplayName: Fire
@@ -328,4 +329,3 @@ WrathwingCinder.DisplayName: Wrathwing Eruption
WrathwingFireball.DisplayName: Wrathwing Fireball
WrathwingSpear.DisplayName: Wrathwing
WulfrumKnifeProj.DisplayName: Wulfrum Knife
DestructionExplosion.DisplayName: Destruction Explosion
@@ -89,9 +89,7 @@ OmegaBlueTentacle.DisplayName: Omega Blue Tentacle
OnyxLabSeeker.DisplayName: Seeking Mechanism
PauldronDash.DisplayName: Pauldron Dash
PauldronExplosion.DisplayName: Pauldron Explosion
PendantProjectile1.DisplayName: Prism Shard
PendantProjectile2.DisplayName: Prism Shard
PendantProjectile3.DisplayName: Prism Shard
PearlAuraShard.DisplayName: Prism Shard
PlaguePulse.DisplayName: Plague Pulse
PoisonousSeawater.DisplayName: Seawater
PscTransformAnimation.DisplayName: Psc Transform Animation
@@ -105,6 +103,9 @@ SandExplosion.DisplayName: Sand
Seashell.DisplayName: Seashell
SepulcherSoul.DisplayName: Tormented Soul
SerpentsBiteHook.DisplayName: Serpent's Bite
ShadeNimbus.DisplayName: Shade Nimbus
ShadeNimbusRain.DisplayName: Shade Rain
ShadeNimbusSpawner.DisplayName: Dank Creeper
ShadowflameExplosion.DisplayName: Shadowflame Explosion
ShadowflameExplosionBig.DisplayName: Shadowflame Explosion
SkyFlareFriendly.DisplayName: Flare
@@ -3,7 +3,6 @@ AbyssDrown2: Oxygen failed to reach {0} from the depths of the Abyss.
AbyssDrown3: "{0} faded away, lost in the dark waters."
AlcoholBig1: "{0} downed too many shots."
AlcoholBig2: "{0}'s liver failed."
AlcoholSmall: "{0} succumbed to alcohol sickness."
Armageddon: "{0} failed the challenge at hand."
AstralInfection1: "{0}'s infection spread too far."
AstralInfection2: "{0}'s skin was replaced by the astral virus."
@@ -85,6 +84,7 @@ Plague2: "{0} couldn't vaccinate against the plague."
Plague3: "{0} was reduced to nutrient rich sludge."
ProfanedSoulCrystal: "{0} was summoned too soon."
ProvidenceAntiHealing: "{0} was purged of their unworthy existence."
Rebecca: "{0} was once again exploded by CIT."
Riptide1: "{0} was swept away by the tides."
Riptide2: "{0} was ripped apart by the current."
SearingLava1: "{0}'s soul was released by the lava."
@@ -80,6 +80,7 @@ ExtensionName: {
// Cooldowns
Cooldowns: {
AquaticHeartIceShield: Ice Shield Cooldown
ArsenalPower: Arsenal Cooldown
AscendEffect: Ascension Cooldown
BloodflareFrenzy: Blood Frenzy Cooldown
BloodflareRangedSet: Bloodflare Soul Cooldown
@@ -37,7 +37,7 @@ SetBonus: {
'''
Eskimo:
'''
Multiplies all cold-based debuff damage by 1.25
Multiplies all cold-based debuff damage by 1.25x
Cold enemies will deal reduced contact damage to the player
Provides immunity to the Chilled, Frozen, Frostburn and Glacial State debuffs
'''
+2 -2
View File
@@ -1074,8 +1074,8 @@ namespace CalamityMod
double Damage(DamageClass damageClass) => Math.Round(Main.LocalPlayer.GetTotalDamage(damageClass).Additive * Main.LocalPlayer.GetTotalDamage(damageClass).Multiplicative * 100 - 100);
int Crit(DamageClass damageClass) => (int)Main.LocalPlayer.GetTotalCritChance(damageClass);
int rogueItem = ModContent.ItemType<WulfrumKnife>();
DamageClass rogueDamageClass = ModContent.GetInstance<RogueDamageClass>();
int rogueItem = ItemType<WulfrumKnife>();
DamageClass rogueDamageClass = GetInstance<RogueDamageClass>();
Func<string> rogueDamage = () => $"Rogue Damage: {Damage(rogueDamageClass)}%";
Func<string> rogueCrit = () => $"Rogue Critical: {Crit(rogueDamageClass)}%";
fargos.Call("AddStat", rogueItem, rogueDamage);
+1 -1
View File
@@ -91,8 +91,8 @@ namespace CalamityMod.NPCs.Abyss
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(NPC.localAI[0]);
writer.Write(playerCrossed);
writer.Write(NPC.localAI[0]);
}
public override void ReceiveExtraAI(BinaryReader reader)
+1 -1
View File
@@ -156,8 +156,8 @@ namespace CalamityMod.NPCs.AcidRain
hasDoneDeathray = reader.ReadBoolean();
AttackIndex = reader.ReadInt32();
DelayTime = reader.ReadInt32();
DeathrayTime = reader.ReadInt32();
JumpTimer = reader.ReadSingle();
DeathrayTime = reader.ReadInt32();
ShootPosition = reader.ReadVector2();
}
@@ -112,8 +112,8 @@ namespace CalamityMod.NPCs.BrimstoneElemental
public override void ReceiveExtraAI(BinaryReader reader)
{
NPC.chaseable = reader.ReadBoolean();
currentMode = reader.ReadInt32();
NPC.chaseable = reader.ReadBoolean();
NPC.localAI[0] = reader.ReadSingle();
NPC.localAI[1] = reader.ReadSingle();
NPC.localAI[3] = reader.ReadSingle();
+1
View File
@@ -130,6 +130,7 @@ namespace CalamityMod.NPCs.CalClone
double dist = death ? 180 : 150;
NPC.position.X = parent.Center.X - (int)(Math.Cos(rad) * dist) - NPC.width / 2;
NPC.position.Y = parent.Center.Y - (int)(Math.Sin(rad) * dist) - NPC.height / 2;
NPC.velocity = Vector2.Zero;
NPC.ai[1] += death ? 0.5f : 2f;
return false;
}
@@ -47,11 +47,12 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
bool revenge = CalamityWorld.revenge || bossRush;
bool death = CalamityWorld.death || bossRush;
float exhaustionGateValue = 300f;
float exhaustionGateValue = 360f;
if (Main.getGoodWorld)
exhaustionGateValue *= 0.5f;
float exhaustionIncreasePerAttack = exhaustionGateValue * 0.1f;
float numberOfAttacksBeforeExhaustion = 12f;
float exhaustionIncreasePerAttack = exhaustionGateValue * (1f / numberOfAttacksBeforeExhaustion);
bool exhausted = calamityGlobalNPC.newAI[1] == 1f;
bool phase2 = lifeRatio <= (death ? 0.8f : revenge ? 0.7f : 0.5f);
bool phase3 = lifeRatio <= (death ? 0.5f : (revenge ? 0.35f : 0.2f)) && expertMode;
Loaded 100 of 189 files, more files were not shown because too many files have changed in this diff. Show more