Eye of the Golem & Sniper Scope increase crit damage

This commit is contained in:
Doze-Zoze committed 2025-05-07 19:33:51 -05:00
1 parent ae29061d20
commit fd7fd606ab
5 files changed
+26 -3

No files matched your search

+7
View File
@@ -928,6 +928,11 @@ namespace CalamityMod.CalPlayer
public bool spiritOrigin = false;
public bool spiritOriginVanity = false;
public int spiritOriginCritBoost = 0;
/// <summary>
/// The amount of bonus crit damage the player has.
/// At 0f, the player has regular crit damage. At 1f, the player has +100% crit damage.
/// </summary>
public float critDamage = 0;
public bool darkSunRing = false;
public bool crawCarapace = false;
public bool baroclaw = false;
@@ -2352,6 +2357,7 @@ namespace CalamityMod.CalPlayer
spiritOriginCritBoost = 0;
spiritOrigin = false;
spiritOriginVanity = false;
critDamage = 0;
astralStarRain = false;
@@ -2849,6 +2855,7 @@ namespace CalamityMod.CalPlayer
SulphWaterPoisoningLevel = 0f;
holyInfernoFadeIntensity = 0f;
spiritOriginCritBoost = 0;
critDamage = 0f;
rage = 0f;
adrenaline = 0f;
raiderCritLifespan = 0;
+3
View File
@@ -511,6 +511,7 @@ namespace CalamityMod.CalPlayer
#region Modify Hit NPC
public override void ModifyHitNPCWithItem(Item item, NPC target, ref NPC.HitModifiers modifiers)
{
modifiers.CritDamage += critDamage;
// All Calamity multipliers are added together to prevent insane exponential stacking
float totalDamageMult = 1f;
@@ -592,6 +593,8 @@ namespace CalamityMod.CalPlayer
{
if (proj.npcProj || proj.trap)
return;
modifiers.CritDamage += critDamage;
// All Calamity multipliers are added together to prevent insane exponential stacking
float totalDamageMult = 1f;
+8 -2
View File
@@ -1286,10 +1286,16 @@ namespace CalamityMod.Items
if (item.type == ItemID.ArcaneFlower)
player.GetDamage<MagicDamageClass>() += 0.05f;
if (item.type == ItemID.EyeoftheGolem)
{
player.Calamity().critDamage += 0.2f;
}
if (item.type == ItemID.SniperScope)
{
player.GetDamage<RangedDamageClass>() -= 0.03f;
player.GetCritChance<RangedDamageClass>() -= 3;
player.GetDamage<RangedDamageClass>() -= 0.1f; //Total 0% damage
player.GetCritChance<RangedDamageClass>() += 2; //Total 12% crit
player.Calamity().critDamage += 0.2f;
}
if (item.type == ItemID.MagicQuiver)
+6
View File
@@ -799,6 +799,11 @@ namespace CalamityMod.Items
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("EmpressFlightBooster2"));
}
if (item.type == ItemID.EyeoftheGolem)
{
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("EyeoftheGolem"));
}
// Rifle Scope visibility change
if (item.type == ItemID.RifleScope)
{
@@ -811,6 +816,7 @@ namespace CalamityMod.Items
{
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("SniperScope"));
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("RifleScope"));
EditTooltipByNum(1, (line) => line.Text += AddedTooltip("EyeoftheGolem"));
}
// Recon Scope visibility change
@@ -7,6 +7,7 @@ DodgeInfo:
'''
AddedTooltip: {
EyeoftheGolem: 20% increased critical strike damage
TruffleWorm:
'''
Summons Duke Fishron if used as bait in the Ocean
@@ -199,7 +200,7 @@ EditedTooltip: {
EmpressFlightBooster2: Increases movement and jump speed by 10% and acceleration by 1.25x
RifleScope1: Increase view range for guns (Right click to zoom out)
RifleScope2: The scope effect can be toggled with visibility
SniperScope: 7% increased ranged damage and critical strike chance
SniperScope: 12% increased ranged critical strike chance
MagicQuiver: Increases arrow damage by 5% and greatly increases arrow speed
MoltenQuiver1: Increases arrow damage by 7% and greatly increases arrow speed
MoltenQuiver2: Lights wooden arrows ablaze and all arrows inflict Hellfire