Fixed Nanotech raider bonus not working, added Vampiric to recipe, and added cooldown indicator

This commit is contained in:
doze-zoze committed 2026-04-09 14:54:09 -05:00
1 parent 6dc970b6b1
commit bfe8a355a8
10 files changed
+26 -15

No files matched your search

+9 -5
View File
@@ -2708,11 +2708,15 @@ namespace CalamityMod.CalPlayer
}
// Raider Talisman bonus
if (raiderTalisman && !vampiricTalisman && !StealthStrikeAvailable() && raiderCritLifespan > 0f)
Player.GetCritChance<ThrowingDamageClass>() += RaidersTalisman.RaiderBonus;
if (vampiricTalisman && !StealthStrikeAvailable() && raiderCritLifespan > 0f)
Player.GetCritChance<ThrowingDamageClass>() += VampiricTalisman.RaiderBonus;
if (!StealthStrikeAvailable() && raiderCritLifespan > 0f)
{
if (nanotech)
Player.GetCritChance<GenericDamageClass>() += Items.Accessories.Nanotech.RaiderBonus;
else if (vampiricTalisman)
Player.GetCritChance<GenericDamageClass>() += VampiricTalisman.RaiderBonus;
else if (raiderTalisman)
Player.GetCritChance<GenericDamageClass>() += RaidersTalisman.RaiderBonus;
}
if (avertorBonus)
Player.GetDamage<GenericDamageClass>() += 0.1f;
+2 -3
View File
@@ -1088,8 +1088,7 @@ namespace CalamityMod.CalPlayer
if (raiderTalisman && modProj.stealthStrike)
{
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
// TO DO: Add nanotech here
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, vampiricTalisman ? "Bloodfeast" : "default");
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, nanotech ? "Nanotech" : vampiricTalisman ? "Vampiric" : "default");
if (raiderSoundCooldown <= 0)
{
SoundEngine.PlaySound(RaidersTalisman.StealthHitSound, Player.Center);
@@ -1297,7 +1296,7 @@ namespace CalamityMod.CalPlayer
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, heal, (raiderCritLifespan > 0 && !proj.Calamity().stealthStrike) ? 1.2f : 1.5f);
}
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike && proj.numHits < 1)
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && (modProj.stealthStrike || (nanotech && raiderCritLifespan > 0)) && proj.numHits < 1)
//Nanotech has the same heal as Electrician's glove
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, electricianGlove ? 2f : 3f);
Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

+8 -1
View File
@@ -26,7 +26,14 @@ namespace CalamityMod.Cooldowns
{
switch (skin)
{
case "Bloodfeast":
case "Nanotech":
skinTexture = "NanotechBoost";
outlineColor = new Color(14, 103, 129);
cooldownColorStart = new Color(85, 252, 229);
cooldownColorEnd = new Color(52,255,171);
break;
case "Vampiric":
skinTexture = "VampiricTalismanBoost";
outlineColor = new Color(143, 27, 27);
cooldownColorStart = new Color(133, 5, 5);
+3
View File
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Accessories
{
//The stealth damage boost is handled in CalamityPlayer for some reason, maybe someone didn't want em to stack?
public new string LocalizationCategory => "Items.Accessories";
public const float RaiderBonus = 10f;
public override void SetDefaults()
{
Item.width = 46;
@@ -27,6 +28,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.electricianGlove = true;
modPlayer.filthyGlove = true;
modPlayer.bloodyGlove = true;
modPlayer.raiderTalisman = true;
player.GetDamage<ThrowingDamageClass>() += 0.15f;
player.Calamity().rogueVelocity += 0.15f;
}
@@ -35,6 +37,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<RogueEmblem>().
AddIngredient<VampiricTalisman>().
AddIngredient<ElectriciansGlove>().
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
@@ -76,7 +76,7 @@ OldFashionedBuff: {
RedWineBuff: {
DisplayName: Red Wine
Description: Increased vertical speed, reduced flight time
ItemTooltip: Causes Baguette to heal 200 HP, but reduce regeneration by 2 HP/s for 15 seconds
ItemTooltip: Causes Baguette to heal 200 HP, but reduce regeneration by 2 HP/s for 15 seconds
}
RumBuff: {
@@ -1155,9 +1155,9 @@ Nanotech: {
'''
Rogue projectiles create nanoblades as they travel
Stealth strikes summon nanobeams and sparks on enemy hits
Stealth strikes have +15 armor penetration, deal 5% more damage, and heal for 2 HP
Stealth strikes have lifesteal, +15 armor penetration, deal 5% more damage
15% increased rogue damage and 15% increased rogue velocity
Stealth strikes grant 10% critical strike chance to non-stealth strikes for 5 seconds
Stealth strikes grant lifesteal and 10% critical strike chance to non-stealth strikes for 10 seconds
'''
}
+1 -3
View File
@@ -4690,9 +4690,7 @@ namespace CalamityMod.Projectiles
else if (modPlayer.vampiricTalisman && projectile.Calamity().stealthStrike)
{
target.AddBuff(BuffType<ArmorCrunch>(), VampiricTalisman.ArmorCrunchDebuffTime);
if (!modPlayer.nanotech)
target.AddBuff(BuffType<HeavyBleeding>(), VampiricTalisman.HeavyBleedingDebuffTime);
target.AddBuff(BuffType<HeavyBleeding>(), VampiricTalisman.HeavyBleedingDebuffTime);
}
if (modPlayer.flamingItemEnchant && !projectile.minion && !projectile.npcProj && !projectile.Calamity().CreatedByPlayerDash)