Merge pull request #1382 from CalamityTeam/doze-misc
Misc. Hotfix Changes
No files matched your search
@@ -1040,9 +1040,9 @@ namespace CalamityMod.CalPlayer
|
||||
public int fallingBootVelCheckTimer = 0;
|
||||
public bool voidOfCalamity = false;
|
||||
public bool apollyon = false;
|
||||
public bool eArtifact = false;
|
||||
public bool dArtifact = false;
|
||||
public bool auricSArtifact = false;
|
||||
public bool fragmentsOfAnotherWorld = false;
|
||||
public bool crushingEgo = false;
|
||||
public bool fadedIdolatry = false;
|
||||
public bool pSoulArtifact = false;
|
||||
public bool giantPearl = false;
|
||||
public bool shieldOfTheOcean = false;
|
||||
@@ -2470,9 +2470,9 @@ namespace CalamityMod.CalPlayer
|
||||
baroclaw = false;
|
||||
voidOfCalamity = false;
|
||||
apollyon = false;
|
||||
eArtifact = false;
|
||||
dArtifact = false;
|
||||
auricSArtifact = false;
|
||||
fragmentsOfAnotherWorld = false;
|
||||
crushingEgo = false;
|
||||
fadedIdolatry = false;
|
||||
pSoulArtifact = false;
|
||||
giantPearl = false;
|
||||
shieldOfTheOcean = false;
|
||||
@@ -5547,6 +5547,8 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Main.projectile[p].DamageType = DamageClass.Generic; //Makes it not proc shit like nanotech, extorter and other stuff
|
||||
Main.projectile[p].Calamity().LocketClone = true; //To not have clones trigger effects like Sacrifice's Lifesteal and Final Dawn's stealth generation
|
||||
|
||||
Projectile.NewProjectile(LocketSource, Main.projectile[p].Center, Vector2.Zero, ModContent.ProjectileType<DoGWeaponTeleportRift>(), 0, 0, Player.whoAmI); // Spawn a little portal!
|
||||
}
|
||||
|
||||
// Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all
|
||||
@@ -6091,12 +6093,6 @@ namespace CalamityMod.CalPlayer
|
||||
stealthGenMoving += ShadowPotion.StealthRegenBoost;
|
||||
}
|
||||
|
||||
if (eArtifact)
|
||||
{
|
||||
stealthGenStandstill += 0.15f;
|
||||
stealthGenMoving += 0.15f;
|
||||
}
|
||||
|
||||
// Accessory modifiers can boost these stats
|
||||
stealthGenStandstill += accStealthGenBoost;
|
||||
stealthGenMoving += accStealthGenBoost;
|
||||
|
||||
@@ -595,7 +595,19 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (proj.npcProj || proj.trap)
|
||||
return;
|
||||
|
||||
|
||||
//Add raider crit before hit
|
||||
if (!proj.Calamity().stealthStrike && !proj.Calamity().stealthStrikeSubProjectile && raiderCritLifespan > 0f)
|
||||
{
|
||||
if (nanotech)
|
||||
proj.CritChance += Items.Accessories.Nanotech.RaiderBonus;
|
||||
else if (vampiricTalisman)
|
||||
proj.CritChance += VampiricTalisman.RaiderBonus;
|
||||
else if (raiderTalisman)
|
||||
proj.CritChance += RaidersTalisman.RaiderBonus;
|
||||
}
|
||||
|
||||
|
||||
modifiers.CritDamage += critDamage;
|
||||
|
||||
// All Calamity multipliers are added together to prevent insane exponential stacking
|
||||
@@ -1624,7 +1636,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
#region Player Incoming Damage Multiplier (Increases)
|
||||
double damageMult = 1D;
|
||||
if (dArtifact) // Dimensional Soul Artifact increases incoming damage by 15%.
|
||||
if (crushingEgo) // Dimensional Soul Artifact increases incoming damage by 15%.
|
||||
damageMult += 0.15;
|
||||
if (enraged) // Demonshade Enrage
|
||||
damageMult += DemonshadeHelm.MultDamageTakenBoost;
|
||||
|
||||
@@ -2252,8 +2252,6 @@ namespace CalamityMod.CalPlayer
|
||||
bloodflareMageCooldown--;
|
||||
if (silvaMageCooldown > 0)
|
||||
silvaMageCooldown--;
|
||||
if (scuttlerCooldown > 0)
|
||||
scuttlerCooldown--;
|
||||
if (nanotechHitCooldown > 0)
|
||||
nanotechHitCooldown--;
|
||||
if (spectralVeilImmunity > 0)
|
||||
@@ -2707,12 +2705,6 @@ 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 (avertorBonus)
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
|
||||
@@ -3969,13 +3961,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<GammaSlime>()] = true;
|
||||
}
|
||||
|
||||
if (eArtifact)
|
||||
{
|
||||
Player.manaCost -= 0.25f;
|
||||
Player.maxMinions++;
|
||||
}
|
||||
|
||||
if (auricSArtifact && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
|
||||
if (fadedIdolatry && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
|
||||
Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType<FieryDraconid>()];
|
||||
|
||||
if (pSoulArtifact)
|
||||
@@ -4410,7 +4396,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Add any multiplicative damage bonuses here
|
||||
float multiplicativeDamage = 1;
|
||||
if (dArtifact)
|
||||
if (crushingEgo)
|
||||
multiplicativeDamage += 0.2f;
|
||||
if (WarbanneroftheRighteous)
|
||||
multiplicativeDamage += warbannerDamageMult;
|
||||
|
||||
@@ -212,6 +212,17 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.whoAmI != Main.myPlayer)
|
||||
return;
|
||||
|
||||
//Undo raider crit after hit
|
||||
if (!proj.Calamity().stealthStrike && !proj.Calamity().stealthStrikeSubProjectile && raiderCritLifespan > 0f)
|
||||
{
|
||||
if (nanotech)
|
||||
proj.CritChance -= Items.Accessories.Nanotech.RaiderBonus;
|
||||
else if (vampiricTalisman)
|
||||
proj.CritChance -= VampiricTalisman.RaiderBonus;
|
||||
else if (raiderTalisman)
|
||||
proj.CritChance -= RaidersTalisman.RaiderBonus;
|
||||
}
|
||||
|
||||
// Apply this to player equippable sources ie. Orichalcum set bonus petal spawns
|
||||
// Do not apply if this effect is an extension of a weapon ie. Pearl God round effect as it will mess up Old Fashioned
|
||||
var source = Player.GetSource_OnHit(target);
|
||||
@@ -1064,8 +1075,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);
|
||||
@@ -1273,7 +1283,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);
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 510 B |
|
After Width: | Height: | Size: 432 B |
|
After Width: | Height: | Size: 422 B |
@@ -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);
|
||||
|
||||
@@ -9,7 +9,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class DimensionalSoulArtifact : ModItem, ILocalizedModType
|
||||
[LegacyName("DimensionalSoulArtifact")]
|
||||
public class CrushingEgo : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
@@ -24,7 +25,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dArtifact = true;
|
||||
modPlayer.crushingEgo = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
Before Width: | Height: | Size: 793 B After Width: | Height: | Size: 793 B |
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
|
||||
/// The amount of critical strike chance bonus where crit starts decaying faster.<br/>
|
||||
/// When the crit bonus reaches this value, the decay rate increases by one tier.
|
||||
/// </summary>
|
||||
public static readonly int CritDecayThreshold = 60;
|
||||
public static readonly int CritDecayThreshold = 50;
|
||||
|
||||
/// <summary>
|
||||
/// When the critical strike chance bonus has exceeded <see cref="CritDecayThreshold"/>, it continues to decay faster for every <see cref="CritDecayEchelon"/> more.
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Accessories
|
||||
/// <summary>
|
||||
/// The maximum amount of extra critical strike chance you can get from this accessory.
|
||||
/// </summary>
|
||||
public static readonly int CritHardCap = 100;
|
||||
public static readonly int CritHardCap = 75;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public class EtherealExtorter : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
public static int soulDamage => 15;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
|
||||
@@ -9,8 +9,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[LegacyName("GodlySoulArtifact")]
|
||||
public class AuricSoulArtifact : ModItem, ILocalizedModType
|
||||
[LegacyName("GodlySoulArtifact", "AuricSoulArtifact")]
|
||||
public class FadedIdolatry : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.auricSArtifact = true;
|
||||
modPlayer.fadedIdolatry = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
@@ -5,12 +5,20 @@ using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class EldritchSoulArtifact : ModItem, ILocalizedModType
|
||||
[LegacyName("EldritchSoulArtifact")]
|
||||
public class FragmentsOfAnotherWorld : ModItem, ILocalizedModType
|
||||
{
|
||||
static float MeleeSpeedIncrease => 0.2f;
|
||||
static float RangedSpecialistDmgMult => 1.15f;
|
||||
static float ManaCostReduction => 0.25f;
|
||||
static int MaxSentries => 2;
|
||||
static float RogueSpeedIncrease => 0.1f;
|
||||
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -21,12 +29,19 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
}
|
||||
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeSpeedIncrease.ToPercent(), RangedSpecialistDmgMult, ManaCostReduction.ToPercent(), MaxSentries, RogueSpeedIncrease.ToPercent());
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.eArtifact = true;
|
||||
modPlayer.fragmentsOfAnotherWorld = true;
|
||||
|
||||
player.buffImmune[ModContent.BuffType<WhisperingDeath>()] = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.1f;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += MeleeSpeedIncrease;
|
||||
player.specialistDamage *= RangedSpecialistDmgMult;
|
||||
player.manaCost -= ManaCostReduction;
|
||||
player.maxTurrets += MaxSentries;
|
||||
player.GetAttackSpeed<RogueDamageClass>() += RogueSpeedIncrease;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -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 static int RaiderBonus => 10;
|
||||
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>().
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public class RaidersTalisman : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const float RaiderBonus = 15f;
|
||||
public const int RaiderCooldown = 10; //seconds
|
||||
public static int RaiderBonus => 15;
|
||||
public static int RaiderCooldown => 10; //seconds
|
||||
public static readonly SoundStyle StealthHitSound = new("CalamityMod/Sounds/Custom/RaidersTalismanStealthHit");
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class VampiricTalisman : ModItem, ILocalizedModType, IHoldShiftTooltipItem
|
||||
{
|
||||
internal const int ArmorCrunchDebuffTime = 150;
|
||||
internal const int HeavyBleedingDebuffTime = 300;
|
||||
public const float RaiderBonus = 15f;
|
||||
internal static int ArmorCrunchDebuffTime => 150;
|
||||
internal static int HeavyBleedingDebuffTime => 300;
|
||||
public static int RaiderBonus => 15;
|
||||
|
||||
public bool ShowExtensionIndicator => false;
|
||||
|
||||
|
||||
@@ -329,9 +329,6 @@ namespace CalamityMod.Items
|
||||
if (modPlayer.gloveOfRecklessness)
|
||||
velocity = velocity.RotatedByRandom(MathHelper.ToRadians(12f));
|
||||
}
|
||||
|
||||
if (modPlayer.eArtifact && item.CountsAsClass<RangedDamageClass>())
|
||||
velocity *= 1.25f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Item item, Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<Nebulash>().
|
||||
AddIngredient(ItemID.BlueMoon).
|
||||
AddIngredient<Lumenyl>(8).
|
||||
AddIngredient<RuinousSoul>(3).
|
||||
AddIngredient<ExodiumCluster>(16).
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -7,6 +6,7 @@ using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
@@ -14,6 +14,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public class MoltenAmputator : RogueWeapon
|
||||
{
|
||||
public float speed = 16;
|
||||
|
||||
public static int FlurryCount => 30;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 92;
|
||||
@@ -36,9 +38,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
player.Calamity().mouseWorldListener = true;
|
||||
if (player.Calamity().mouseRight)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
if (player.Calamity().StealthStrikeAvailable() && player.Calamity().focusFlurryAttackCount < FlurryCount)
|
||||
{
|
||||
player.Calamity().focusFlurryAttackCount = 30;
|
||||
player.Calamity().focusFlurryAttackCount = FlurryCount;
|
||||
player.Calamity().ConsumeStealthByAttacking();
|
||||
SoundStyle buff = new("CalamityMod/Sounds/Custom/ProfanedGuardians/GuardianRay");
|
||||
SoundEngine.PlaySound(buff with { Volume = 1f, Pitch = Main.rand.NextFloat(0.2f, 0.3f) }, player.Center);
|
||||
@@ -72,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
bool fastToss = player.Calamity().focusFlurryAttackCount > 0;
|
||||
|
||||
|
||||
SoundStyle fire = new("CalamityMod/Sounds/Item/SpearofDestiny");
|
||||
SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = (player.Calamity().focusFlurryAttackCount > 0 ? -0.4f + (player.Calamity().focusFlurryAttackCount * 0.02f) : Main.rand.NextFloat(-0.4f, -0.65f)) }, position);
|
||||
// Since the positioning of the scythe is important, its velocity is based on your mouse position
|
||||
@@ -87,8 +89,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
player.Calamity().focusFlurryAttackCount--;
|
||||
}
|
||||
player.Calamity().ConsumeStealthByAttacking();
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlurryCount);
|
||||
}
|
||||
}
|
||||
@@ -247,12 +247,12 @@ AsgardsValor: {
|
||||
'''
|
||||
}
|
||||
|
||||
AuricSoulArtifact: {
|
||||
DisplayName: Auric Soul Artifact
|
||||
FadedIdolatry: {
|
||||
DisplayName: Faded Idolatry
|
||||
Tooltip:
|
||||
'''
|
||||
For each Fiery Draconid you have summoned, you gain 1 minion slot
|
||||
Loyalty
|
||||
[c/ffe100:'Once everything has crumbled to dust, what will be left of the world you created?']
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -588,12 +588,12 @@ DiamondOfTheDeep: {
|
||||
'''
|
||||
}
|
||||
|
||||
DimensionalSoulArtifact: {
|
||||
DisplayName: Dimensional Soul Artifact
|
||||
CrushingEgo: {
|
||||
DisplayName: Crushing Ego
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies all damage by 1.2x, but at the cost of taking 15% increased damage
|
||||
Power
|
||||
[c/ff00ff:'Don the mask of arrogance, and dance by your lonesome. Once the ball has gone quiet, you'll be the last man standing.']
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -658,13 +658,17 @@ EclipseMirror: {
|
||||
FlavorTooltip: "'Its reflection shows naught but darkness'"
|
||||
}
|
||||
|
||||
EldritchSoulArtifact: {
|
||||
DisplayName: Eldritch Soul Artifact
|
||||
FragmentsOfAnotherWorld: {
|
||||
DisplayName: Fragments of Another World
|
||||
Tooltip:
|
||||
'''
|
||||
Boosts melee speed by 10%, ranged velocity by 25%, rogue stealth regen by 15%, max minions by 1 and reduces mana cost by 25%
|
||||
Grants immunity to [cbuffplr:CalamityMod/WhisperingDeath]
|
||||
Knowledge
|
||||
{0}% increased melee speed
|
||||
{1}x specialist ranged damage
|
||||
{2}% reduced mana usage
|
||||
+{3} maximum sentries
|
||||
{4}% increased rogue attack speed
|
||||
[c/ff0000:'Don't speak of your desires to the shadows, they listen.']
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -1151,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
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -762,7 +762,7 @@ MoltenAmputator: {
|
||||
Throw a spinning scythe that lingers at your cursor
|
||||
<right> to recall all existing scythes
|
||||
Recalling a scythe while it's on an enemy rends them for massive damage
|
||||
<right> with sufficient stealth to empower yourself, greatly increasing attack speed for a short time
|
||||
<right> with sufficient stealth to empower the next {0} scythes and greatly increase attack speed
|
||||
You cannot recall scythes thrown while empowered
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -3745,7 +3745,8 @@ namespace CalamityMod.NPCs
|
||||
// Hitbox criteria were changed to allow long one dimensional projectiles so that Condemnation would work.
|
||||
bool acceptableVelocity = projectile.velocity != Vector2.Zero;
|
||||
bool acceptableHitbox = (projectile.width <= 36) || (projectile.height <= 36);
|
||||
if (bullseye != null && acceptableVelocity && acceptableHitbox)
|
||||
|
||||
if (bullseye != null && acceptableVelocity && acceptableHitbox && !CalamityProjectileSets.DaawnlightBlacklist[projectile.type])
|
||||
{
|
||||
// Bullseyes are visually different on bosses and thus have larger hitboxes.
|
||||
float bullseyeRadius = npc.IsABoss() ? DaawnlightSpiritOrigin.BossBullseyeRadius : DaawnlightSpiritOrigin.RegularEnemyBullseyeRadius;
|
||||
|
||||
@@ -260,6 +260,10 @@ namespace CalamityMod.Projectiles
|
||||
/// <summary> If true, this projectile is from a rogue stealth strike. The primary variable responsible for triggering stealth strike effects. </summary>
|
||||
public bool stealthStrike = false;
|
||||
/// <summary>
|
||||
/// If true, this projectile is spawned from a stealth strike, but is not a primary projectile. Used to avoid proccing things like Raiders Talisman.
|
||||
/// </summary>
|
||||
public bool stealthStrikeSubProjectile = false;
|
||||
/// <summary>
|
||||
/// Number of times this stealth strike projectile has pierced an enemy.<br/>
|
||||
/// Used to limit the number of times a projectile can proc certain effects from rogue accessories.
|
||||
/// </summary>
|
||||
@@ -407,6 +411,13 @@ namespace CalamityMod.Projectiles
|
||||
if (e.Context == "SetBonus_GhostHurt")
|
||||
projectile.damage /= 2;
|
||||
}
|
||||
|
||||
if (source is EntitySource_Parent { Entity: Projectile proj })
|
||||
{
|
||||
if (proj.Calamity().stealthStrike || proj.Calamity().stealthStrikeSubProjectile)
|
||||
stealthStrikeSubProjectile = true;
|
||||
}
|
||||
|
||||
}
|
||||
public override void SendExtraAI(Projectile projectile, BitWriter bitWriter, BinaryWriter binaryWriter) => binaryWriter.Write(ParentNPCIndex);
|
||||
public override void ReceiveExtraAI(Projectile projectile, BitReader bitReader, BinaryReader binaryReader) => ParentNPCIndex = binaryReader.ReadInt32();
|
||||
@@ -4689,9 +4700,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)
|
||||
@@ -4745,17 +4754,34 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
// Scuttler's Jewel projectiles can spawn either on-hit or on-kill, but only spawn once per projectile.
|
||||
if (projectile.owner == Main.myPlayer && !projectile.npcProj && !projectile.trap && projectile.CountsAsClass<RogueDamageClass>() && modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned && !CannotProc)
|
||||
if (projectile.owner == Main.myPlayer && !projectile.npcProj && !projectile.trap && projectile.CountsAsClass<RogueDamageClass>() && !CannotProc)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(16);
|
||||
if (modPlayer.scuttlersJewel && stealthStrike && !JewelSpikeSpawned)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(16);
|
||||
|
||||
int spike = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<JewelSpike>(), damage, projectile.knockBack, projectile.owner);
|
||||
Main.projectile[spike].frame = 4;
|
||||
if (spike.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[spike].DamageType = DamageClass.Generic;
|
||||
modPlayer.scuttlerCooldown = 30;
|
||||
JewelSpikeSpawned = true;
|
||||
int spike = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<JewelSpike>(), damage, projectile.knockBack, projectile.owner);
|
||||
Main.projectile[spike].frame = 4;
|
||||
JewelSpikeSpawned = true;
|
||||
}
|
||||
if (modPlayer.etherealExtorter && extorterBoost && Main.player[projectile.owner].ownedProjectileCounts[ProjectileType<LostSoulFriendly>()] < 5)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(EtherealExtorter.soulDamage);
|
||||
|
||||
int soul = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, velocity, ProjectileType<LostSoulFriendly>(), damage, 0f, projectile.owner);
|
||||
Main.projectile[soul].tileCollide = false;
|
||||
if (soul.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[soul].DamageType = DamageClass.Generic;
|
||||
}
|
||||
extorterBoost = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -5231,17 +5257,18 @@ namespace CalamityMod.Projectiles
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(EtherealExtorter.soulDamage);
|
||||
|
||||
int soul = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, velocity, ProjectileType<LostSoulFriendly>(), damage, 0f, projectile.owner);
|
||||
Main.projectile[soul].tileCollide = false;
|
||||
if (soul.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[soul].DamageType = DamageClass.Generic;
|
||||
}
|
||||
extorterBoost = false;
|
||||
}
|
||||
|
||||
// Make sure the spike doesn't spawn again if it's already been spawned by on-hit.
|
||||
if (modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned && !CannotProc)
|
||||
if (modPlayer.scuttlersJewel && stealthStrike && !JewelSpikeSpawned && !CannotProc)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(16);
|
||||
|
||||
@@ -5249,7 +5276,6 @@ namespace CalamityMod.Projectiles
|
||||
Main.projectile[spike].frame = 4;
|
||||
if (spike.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[spike].DamageType = DamageClass.Generic;
|
||||
modPlayer.scuttlerCooldown = 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,12 +80,15 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
if (time == 250 || Utils.Distance(Projectile.Center, Owner.Center) < 10)
|
||||
{
|
||||
if (Projectile.ai[2] == 0 && Owner.HeldItem.type == ModContent.ItemType<PulseGrenade>())
|
||||
if (Projectile.ai[2] == 0 && Owner.HeldItem.type == ModContent.ItemType<PulseGrenade>() && Owner.controlUseItem)
|
||||
{
|
||||
Projectile reformGrenade = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), goal, Vector2.Zero, ModContent.ProjectileType<PulseGrenadeProjectile>(), Projectile.damage, 0f, Owner.whoAmI, 0);
|
||||
Projectile reformGrenade = Projectile.NewProjectileDirect(Owner.GetSource_ItemUse(Owner.HeldItem), goal, Vector2.Zero, ModContent.ProjectileType<PulseGrenadeProjectile>(), (int)Owner.GetTotalDamage<RogueDamageClass>().ApplyTo(Owner.HeldItem.damage), 0f, Owner.whoAmI, 0);
|
||||
reformGrenade.ai[1] = 5;
|
||||
reformGrenade.ai[0] = Owner.HeldItem.useTime * 0.7f;
|
||||
reformGrenade.Opacity = 0;
|
||||
//Doze Apr 15 2026 - Because this isn't being spawnwed from the shoot, these bools break. Manually fixing here.
|
||||
reformGrenade.Calamity().extorterBoost = true;
|
||||
reformGrenade.Calamity().stealthStrikeSubProjectile = false;
|
||||
|
||||
SoundStyle grab = new("CalamityMod/Sounds/Item/LightCatch");
|
||||
SoundEngine.PlaySound(grab with { Volume = 1f, Pitch = 0 }, Projectile.Center);
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Projectile.Center = Owner.Center;
|
||||
Projectile.extraUpdates = (Projectile.Calamity().stealthStrike ? 22 : 5);
|
||||
Projectile.rotation += Main.rand.NextFloat(-4, 4);
|
||||
Vector2 velocity = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld) * 9;
|
||||
Vector2 velocity = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld) * 9 * Owner.Calamity().rogueVelocity;
|
||||
Projectile.velocity = velocity;
|
||||
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
@@ -300,11 +300,9 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
// Do NOT change the damage of these here, do it on the on hit
|
||||
Projectile orb = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, (vel * 7f).RotatedBy(MathHelper.PiOver4 / 2), ModContent.ProjectileType<PulseGrenadeOrb>(), Projectile.damage, 0f, Owner.whoAmI, 0, spin, i);
|
||||
orb.Calamity().stealthStrike = Projectile.Calamity().stealthStrike;
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
Projectile orb2 = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, (vel * 10f), ModContent.ProjectileType<PulseGrenadeOrb>(), Projectile.damage, 0f, Owner.whoAmI, 0, -spin, i + 1);
|
||||
orb2.Calamity().stealthStrike = Projectile.Calamity().stealthStrike;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,11 +47,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Projectile bubble = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + Main.rand.NextVector2Circular(70, 70), Vector2.UnitY * Main.rand.NextFloat(-3.5f, -5f), ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner);
|
||||
Projectile bubble = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + Main.rand.NextVector2Circular(70, 70), Vector2.UnitY * Main.rand.NextFloat(-3.5f, -5f), ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner,0,0,Projectile.Calamity().stealthStrike ? 1 : 0);
|
||||
if (bubble.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
//We mark it as a stealth strike to change its dust
|
||||
bubble.Calamity().stealthStrike = Projectile.Calamity().stealthStrike;
|
||||
bubble.DamageType = RogueDamageClass.Instance;
|
||||
bubble.timeLeft = 45;
|
||||
}
|
||||
|
||||
@@ -137,12 +137,17 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
float speedMult = (float)Math.Pow(Utils.GetLerpValue(1, 4, charge, true), 2) + 0.05f;
|
||||
float arcValue = hasReachedFullCharge ? 0 : (float)Math.Pow(Utils.Remap(speedMult, 0, 1f, 1f, 0.8f), 4);
|
||||
Projectile.ai[1] = arcValue;
|
||||
Projectile.velocity = velocity * 9 * speedMult;
|
||||
Projectile.velocity = velocity * 9 * speedMult * Owner.Calamity().rogueVelocity;
|
||||
|
||||
SoundStyle w = new("CalamityMod/Sounds/Item/SwooshMid");
|
||||
SoundEngine.PlaySound(w with { Volume = 1f, Pitch = 0.2f, MaxInstances = 6 }, Projectile.Center);
|
||||
if (hasReachedFullCharge)
|
||||
{
|
||||
if (Owner.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
Projectile.Calamity().stealthStrike = true;
|
||||
Owner.Calamity().ConsumeStealthByAttacking();
|
||||
}
|
||||
rotSpeed *= 2;
|
||||
SoundStyle w2 = new("CalamityMod/Sounds/Item/SwooshMid");
|
||||
SoundEngine.PlaySound(w2 with { Volume = 1f, Pitch = -0.4f, MaxInstances = 6 }, Projectile.Center);
|
||||
@@ -150,11 +155,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
else
|
||||
Owner.Calamity().ConsumeStealthByAttacking();
|
||||
|
||||
if (Owner.Calamity().StealthStrikeAvailable() && hasReachedFullCharge)
|
||||
{
|
||||
Projectile.Calamity().stealthStrike = true;
|
||||
Owner.Calamity().ConsumeStealthByAttacking();
|
||||
}
|
||||
|
||||
|
||||
Projectile.tileCollide = true;
|
||||
flung = true;
|
||||
|
||||
@@ -34,7 +34,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.scale = Projectile.ai[1];
|
||||
if (Projectile.ai[1] != 0)
|
||||
Projectile.scale = Projectile.ai[1];
|
||||
if (Projectile.ai[0] == 0f)
|
||||
Projectile.ai[0] = 45f;
|
||||
|
||||
|
||||
@@ -6,9 +6,6 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public class JewelSpike : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Typeless";
|
||||
public ref float RealPenetrate => ref Projectile.ai[0];
|
||||
public const int MaxPenetrate = 2;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Type] = 5;
|
||||
@@ -19,12 +16,14 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.width = 36;
|
||||
Projectile.height = 44;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = -1; // For the animation, only hits up to 3 times though
|
||||
Projectile.penetrate = 3;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.timeLeft = 80;
|
||||
Projectile.DamageType = DamageClass.Generic;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 10;
|
||||
Projectile.stopsDealingDamageAfterPenetrateHits = true;
|
||||
Projectile.appliesImmunityTimeOnSingleHits = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -47,10 +46,6 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.frame = 0;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => RealPenetrate++;
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => RealPenetrate > MaxPenetrate - 1f ? false : (bool?)null;
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
|
||||
int inc;
|
||||
//For use with Contaminated Bile's Stealth Strike
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
if (Projectile.ai[2] > 0)
|
||||
{
|
||||
for (int k = 0; k < 15; k++)
|
||||
{
|
||||
|
||||
@@ -77,6 +77,11 @@ namespace CalamityMod.Systems.Collections
|
||||
public static bool[] DoesNotGetHomingWithGrapeBeer = Factory.CreateBoolSet(ProjectileType<NukeOfBliss>(), ProjectileType<PrismaticEnergyBlast>(), ProjectileType<PrismEnergyBullet>(),
|
||||
ProjectileType<PrismMine>(), ProjectileType<ScorchedEarthRocket>(), ProjectileType<UltimaRay>(), ProjectileType<SproutingArrowMain>());
|
||||
|
||||
|
||||
public static bool[] DaawnlightBlacklist = Factory.CreateNamedSet("DaawnlightBlacklist")
|
||||
.Description("Disables a projectile from increasing Daawnlight Spirit Origin's extra crit")
|
||||
.RegisterBoolSet(ProjectileType<SeasSearingSpout>(), ProjectileType<WaterSpout>(), ProjectileType<TyphoonBubble>());
|
||||
|
||||
/// <summary>
|
||||
/// Determines what other projectiles this projectile will share ID-static immunity frames with. Defaults to -1, which means that it does not share immunity frames.<br/>
|
||||
/// Each "set" of projectile which shares immunity frames is registered to point to the same ID reference, usually the first projectile in the set. If a projectile with this reference hits an NPC, all other projectiles with that reference also have their ID-static immunity cooldown set for that NPC.
|
||||
|
||||