tidying 2
This commit is contained in:
1 parent
ec2a5fb234
commit
2b1ddc08e9
2 files changed
+6
-3
No files matched your search
@@ -898,8 +898,10 @@ namespace CalamityMod.Items
|
||||
// This assume all items with a damage hit is a weapon. There appears to be no edge cases for this thus far
|
||||
if (player.Calamity().oldFashioned)
|
||||
modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier;
|
||||
if (player.Calamity().ivDrip)
|
||||
modifiers.SourceDamage *= IVDripOnTheRocks.DamageReductionMultiplier;
|
||||
|
||||
var dripPlayer = player.GetModPlayer<IVDripPlayer>();
|
||||
if (dripPlayer.HasAlcohol(AlcoholType.OldFashioned))
|
||||
modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(Item item, Player player, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
|
||||
@@ -4757,7 +4757,8 @@ namespace CalamityMod.Projectiles
|
||||
{
|
||||
var player = Main.player[projectile.owner];
|
||||
float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana;
|
||||
target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1);
|
||||
var dripPlayer = player.GetModPlayer<IVDripPlayer>();
|
||||
target.Calamity().manaBurn += damageDone * burnRatio * (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) ? OldFashioned.DamageBoostMultiplier : 1) * (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1);
|
||||
target.Calamity().playerManaBurnIntensity = -player.statMana / (float)player.statManaMax2;
|
||||
if (Main.netMode != NetmodeID.SinglePlayer)
|
||||
ManaBurnSyncPacket.Send(target);
|
||||
|
||||
Reference in new issue
Block a user