IV Drip on the Rocks
New accessory. Inherits the same effects as Old Fashioned.
This commit is contained in:
1 parent
edf26fa6c4
commit
62374db3a5
7 files changed
+65
No files matched your search
@@ -791,6 +791,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool fishingStation = false;
|
||||
public bool rBrain = false;
|
||||
public bool bloodyWormTooth = false;
|
||||
public bool ivDrip = false;
|
||||
/// <summary> NOT the primary Affliction variable, used instead for the Afflicted buff which is given to teammates. </summary>
|
||||
public bool afflicted = false;
|
||||
public bool chiRegen = false;
|
||||
@@ -2230,6 +2231,7 @@ namespace CalamityMod.CalPlayer
|
||||
fishingStation = false;
|
||||
rBrain = false;
|
||||
bloodyWormTooth = false;
|
||||
ivDrip = false;
|
||||
vexation = false;
|
||||
badgeOfBravery = false;
|
||||
// Clear the Warbanner "cooldown" if not wearing Warbanner. This has absolutely zero effect for a casual player, but is useful for resetting the cooldown's duration.
|
||||
|
||||
@@ -198,6 +198,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityBuffSets.AlcoholStrength.TryGetValue(buff, out int level))
|
||||
alcoholPoisonLevel += level;
|
||||
}
|
||||
if (Player.Calamity().ivDrip) // +1 stack of poisoning while IV Drip is equipped
|
||||
alcoholPoisonLevel++;
|
||||
if (vodka)
|
||||
totalNegativeLifeRegen += Vodka.RegenLoss;
|
||||
if (redWine)
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class IVDripOnTheRocks : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public static readonly float DamageBoostMultiplier = 1.25f;
|
||||
public static readonly float DamageReductionMultiplier = 0.75f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DamageBoostMultiplier).ToString("N2"), (DamageReductionMultiplier).ToString("N2")); public override void SetDefaults()
|
||||
{
|
||||
Item.width = 58;
|
||||
Item.height = 60;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.ivDrip = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<OldFashioned>().
|
||||
AddIngredient<DarkPlasma>().
|
||||
AddIngredient<ArmoredShell>().
|
||||
AddIngredient<TwistingNether>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -974,6 +974,8 @@ 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;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(Item item, Player player, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
|
||||
@@ -1039,6 +1039,18 @@ IronBoots: {
|
||||
'''
|
||||
}
|
||||
|
||||
IVDripOnTheRocks: {
|
||||
DisplayName: IV Drip on the Rocks
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies most non-weapon, non-debuff damage by {0}x
|
||||
Multiplies all weapon damage by {1}x
|
||||
Counts as an alcohol stack toward Alcohol Poisoning
|
||||
{$Common.AlcoholWarning}
|
||||
'(drunken mumbling)'
|
||||
'''
|
||||
}
|
||||
|
||||
JellyChargedBattery: {
|
||||
DisplayName: Jelly-Charged Battery
|
||||
Tooltip:
|
||||
|
||||
@@ -4490,8 +4490,11 @@ namespace CalamityMod.Projectiles
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
// Old Fashioned buffs (or debuffs) apply if the player has Old Fashioned
|
||||
// IV Drip on the Rocks inherits the same logic as Old Fashioned
|
||||
if (modPlayer.oldFashioned && buffedByOldFashioned.HasValue)
|
||||
modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier;
|
||||
if (modPlayer.ivDrip && buffedByOldFashioned.HasValue)
|
||||
modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier;
|
||||
|
||||
if (projectile.type == ProjectileID.JoustingLance || projectile.type == ProjectileID.HallowJoustingLance || projectile.type == ProjectileID.ShadowJoustingLance)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user