Amalgam Rework

This commit is contained in:
mochi-angel committed 2025-04-28 20:46:33 -07:00
1 parent e7d7ff52f2
commit 3d233eec0b
7 files changed
+38 -15

No files matched your search

-8
View File
@@ -2540,14 +2540,6 @@ namespace CalamityMod.CalPlayer
{
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, 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);
}
}
}
+13
View File
@@ -90,6 +90,8 @@ namespace CalamityMod.CalPlayer
target.Calamity().IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
target.Calamity().IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
target.Calamity().IncreasedDebuffEffects_Amalgam = amalgam;
switch (item.type)
{
case ItemID.DeathSickle:
@@ -225,6 +227,8 @@ namespace CalamityMod.CalPlayer
cgn.IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
cgn.IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
cgn.IncreasedDebuffEffects_Amalgam = amalgam;
switch (proj.type)
{
case ProjectileID.ObsidianSwordfish:
@@ -1230,6 +1234,15 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<Irradiated>(), 180);
}
}
if (amalgam)
{
target.AddBuff(BuffType<Irradiated>(), 120);
target.AddBuff(BuffType<HolyFlames>(), 120);
target.AddBuff(BuffType<Voidfrost>(), 120);
target.AddBuff(BuffType<SulphuricPoisoning>(), 120);
target.AddBuff(BuffType<VermillionFlux>(), 120);
target.AddBuff(BuffType<HadopelagicPressure>(), 120);
}
if (voidOfExtinction)
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<BrimstoneFlames>());
if (frostFlare)
+6 -5
View File
@@ -1,5 +1,6 @@
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
@@ -43,12 +44,12 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<AmalgamatedBrain>().
AddIngredient<CosmiliteBar>(5).
AddIngredient<AscendantSpiritEssence>(4).
AddIngredient<UnholyCore>(5).
AddIngredient<MolluskHusk>(10).
AddIngredient<CorrodedFossil>(15).
AddIngredient<PlagueCellCanister>(15).
AddIngredient<UnholyEssence>(10).
AddIngredient<ExodiumCluster>(10).
AddIngredient<CorrodedFossil>(10).
AddIngredient<DepthCells>(10).
AddIngredient<EffulgentFeather>(10).
AddTile<CosmicAnvil>().
Register();
}
+1
View File
@@ -52,6 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged
AddIngredient(ItemID.ChainGun).
AddIngredient<P90>().
AddIngredient<AuricBar>(5).
AddIngredient<LifeAlloy>(3).
AddTile<CosmicAnvil>().
Register();
}
+2 -1
View File
@@ -46,9 +46,10 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<GoldenEagle>().
AddIngredient<RubicoPrime>().
AddIngredient<AntiMaterielRifle>().
AddIngredient<AuricBar>(5).
AddIngredient<LifeAlloy>(3).
AddTile<CosmicAnvil>().
Register();
}
@@ -1836,8 +1836,9 @@ TheAmalgam: {
Tooltip:
'''
15% increased damage
All attacks inflict a variety of debuffs and multiplies all elemental debuff damage by 3x
Most buffs last twice as long, and persist after dying
Taking damage inflicts several debuffs on nearby enemies and spawns a dank creeper
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%
+14
View File
@@ -178,6 +178,9 @@ namespace CalamityMod.NPCs
public bool IncreasedSicknessAndWaterEffects_EvergreenGin = false;
public bool IncreasedSicknessAndWaterEffects_CorrosiveSpine = false;
// Universal debuff effects
public bool IncreasedDebuffEffects_Amalgam = false;
/// <summary> Constant variable representing the grace period, in frames, in which a boss can remain outside of its native biome before enraging. </summary>
public const int biomeEnrageTimerMax = 300;
@@ -553,6 +556,7 @@ namespace CalamityMod.NPCs
myClone.IncreasedWaterEffects_Amulet2 = IncreasedWaterEffects_Amulet2;
myClone.IncreasedSicknessAndWaterEffects_CorrosiveSpine = IncreasedSicknessAndWaterEffects_CorrosiveSpine;
myClone.IncreasedSicknessAndWaterEffects_EvergreenGin = IncreasedSicknessAndWaterEffects_EvergreenGin;
myClone.IncreasedDebuffEffects_Amalgam = IncreasedDebuffEffects_Amalgam;
myClone.velocityPriorToPhaseSwap = velocityPriorToPhaseSwap;
@@ -1006,6 +1010,16 @@ namespace CalamityMod.NPCs
waterDamageMult += EvergreenGin.SicknessWaterDebuffBoost;
}
//Amalgam triples all elemental debuff damage. Ironically this excludes Elemental Mix
if (IncreasedDebuffEffects_Amalgam)
{
heatDamageMult += 3;
coldDamageMult += 3;
waterDamageMult += 3;
sicknessDamageMult += 3;
electricityDamageMult += 3;
}
// Subtract 1 for the vanilla damage multiplier because it's already dealing DoT in the vanilla regen code.
double vanillaHeatDamageMult = heatDamageMult - BaseDoTDamageMult;
double vanillaColdDamageMult = coldDamageMult - BaseDoTDamageMult;