Merge: Doze's alcohols rework
Obtainment via rote crafting is not a permanent measure.
This commit is contained in:
47 files changed
+701
-669
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,9 +17,12 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().evergreenGin = true;
|
||||
player.Calamity().SicknessDebuffMultiplier += 0.25f;
|
||||
player.Calamity().WaterDebuffMultiplier += 0.25f;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.evergreenGin = true;
|
||||
cplayer.SicknessDebuffMultiplier += EvergreenGin.DebuffBoost;
|
||||
cplayer.WaterDebuffMultiplier += EvergreenGin.DebuffBoost;
|
||||
cplayer.ElectricDebuffMultiplier -= EvergreenGin.DebuffLoss;
|
||||
cplayer.HeatDebuffMultiplier -= EvergreenGin.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,8 +17,10 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().fireball = true;
|
||||
player.Calamity().HeatDebuffMultiplier += 0.25f;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.fireball = true;
|
||||
cplayer.HeatDebuffMultiplier += Fireball.DebuffBoost;
|
||||
cplayer.SicknessDebuffMultiplier -= Fireball.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,7 +17,9 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().grapeBeer = true;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.grapeBeer = true;
|
||||
cplayer.critDamage -= GrapeBeer.CritLoss * 0.01f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
{
|
||||
public class ManhattanBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.ColdDebuffMultiplier += Manhattan.DebuffBoost;
|
||||
cplayer.WaterDebuffMultiplier -= Manhattan.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,7 +17,14 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().margarita = true;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.margarita = true;
|
||||
cplayer.HeatDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
cplayer.SicknessDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
cplayer.ColdDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
cplayer.WaterDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
cplayer.ElectricDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
cplayer.TypelessDebuffMultiplier -= Margarita.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,6 +18,10 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().screwdriver = true;
|
||||
player.blockRange += 5;
|
||||
player.tileSpeed += 1;
|
||||
player.wallSpeed += 1;
|
||||
player.GetDamage(DamageClass.Generic) *= 0.75f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,7 +17,10 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tequila = true;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.tequila = true;
|
||||
cplayer.ElectricDebuffMultiplier += Tequila.DebuffBoost;
|
||||
cplayer.ColdDebuffMultiplier -= Tequila.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,7 +17,14 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().vodka = true;
|
||||
var cplayer = player.Calamity();
|
||||
cplayer.vodka = true;
|
||||
cplayer.TypelessDebuffMultiplier += Vodka.DebuffBoost;
|
||||
cplayer.HeatDebuffMultiplier -= Vodka.DebuffLoss;
|
||||
cplayer.ColdDebuffMultiplier -= Vodka.DebuffLoss;
|
||||
cplayer.SicknessDebuffMultiplier -= Vodka.DebuffLoss;
|
||||
cplayer.WaterDebuffMultiplier -= Vodka.DebuffLoss;
|
||||
cplayer.ElectricDebuffMultiplier -= Vodka.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,8 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
player.statDefense += 4;
|
||||
player.GetCritChance<MeleeDamageClass>() -= 2;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.1f;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.2f;
|
||||
player.GetDamage<MeleeDamageClass>() -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.WellFed)
|
||||
{
|
||||
|
||||
+147
-13
@@ -198,6 +198,14 @@ namespace CalamityMod.CalPlayer
|
||||
public StatModifier SicknessDebuffMultiplier = new();
|
||||
public StatModifier WaterDebuffMultiplier = new();
|
||||
public StatModifier ElectricDebuffMultiplier = new();
|
||||
|
||||
public int TimeHoldingMelee = 0;
|
||||
public int TimeHoldingRanged = 0;
|
||||
public int TimeHoldingMagic = 0;
|
||||
public int TimeHoldingSummon = 0;
|
||||
public int TimeHoldingRogue = 0;
|
||||
public int TimeHoldingClassless = 0;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Speedrun Timer
|
||||
@@ -848,6 +856,10 @@ namespace CalamityMod.CalPlayer
|
||||
public bool lAmbergrisVisual = false;
|
||||
public bool tortShell = false;
|
||||
public bool absorber = false;
|
||||
public bool hadLifeRegenHinderingDebuff = false;
|
||||
public bool alwaysHoneyRegen = false;
|
||||
public float alwaysHoneyRegenAmount = 0;
|
||||
public bool honeyTurboRegen = false;
|
||||
public bool honeyDewHalveDebuffs = false;
|
||||
public bool livingDewHalveDebuffs = false;
|
||||
public int jewelBonusDefense = 0;
|
||||
@@ -1349,6 +1361,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool isNearbyBoss = false;
|
||||
public bool flaskBrimstone = false;
|
||||
public bool purpleHaze = false;
|
||||
public int purpleHazeStealthTimer = 0;
|
||||
public bool mushy = false;
|
||||
public bool fortunesFavor = false;
|
||||
public bool PinkJellyRegen = false;
|
||||
@@ -1375,7 +1388,9 @@ namespace CalamityMod.CalPlayer
|
||||
public bool baguette = false;
|
||||
public bool vodka = false;
|
||||
public bool redWine = false;
|
||||
public float redWineStoredY = 0;
|
||||
public bool grapeBeer = false;
|
||||
public int grapeBeerTimer = 0;
|
||||
public bool moonshine = false;
|
||||
public bool rum = false;
|
||||
public bool whiskey = false;
|
||||
@@ -1392,6 +1407,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool screwdriver = false;
|
||||
public bool moscowMule = false;
|
||||
public bool whiteWine = false;
|
||||
public float whiteWineTimer = 0;
|
||||
public bool evergreenGin = false;
|
||||
public bool tranquilityCandle = false;
|
||||
public bool chaosCandle = false;
|
||||
@@ -2563,6 +2579,8 @@ namespace CalamityMod.CalPlayer
|
||||
amidiasBlessing = false;
|
||||
flaskBrimstone = false;
|
||||
purpleHaze = false;
|
||||
if (purpleHazeStealthTimer > 0)
|
||||
purpleHazeStealthTimer--;
|
||||
shine = false;
|
||||
anechoicCoating = false;
|
||||
mushy = false;
|
||||
@@ -2578,6 +2596,8 @@ namespace CalamityMod.CalPlayer
|
||||
vodka = false;
|
||||
redWine = false;
|
||||
grapeBeer = false;
|
||||
if (grapeBeerTimer > 0)
|
||||
grapeBeerTimer--;
|
||||
moonshine = false;
|
||||
rum = false;
|
||||
whiskey = false;
|
||||
@@ -4260,7 +4280,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Reset The Evolution's same projectile DR if unequipped or the cooldown ends
|
||||
if (!evolution || !Player.HasCooldown(GlobalDodge.ID))
|
||||
projTypeJustHitBy = -1;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region PreUpdate
|
||||
@@ -4373,6 +4393,19 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
//Multiply vertical speed
|
||||
if (redWine)
|
||||
{
|
||||
if (Player.velocity.Y > 0.2f || Player.velocity.Y < -0.2f)
|
||||
{
|
||||
redWineStoredY = Player.velocity.Y;
|
||||
Player.velocity.Y *= 1 + RedWine.VerticalSpeedBoost;
|
||||
}
|
||||
else
|
||||
{
|
||||
redWineStoredY = 0;
|
||||
}
|
||||
}
|
||||
// Remove acceleration when using the exo chair.
|
||||
if (Player.whoAmI == Main.myPlayer && ExoChair)
|
||||
{
|
||||
@@ -4606,7 +4639,8 @@ namespace CalamityMod.CalPlayer
|
||||
Player.AddCooldown(LifeSteal.ID, duration);
|
||||
}
|
||||
}
|
||||
|
||||
if (moonshine)
|
||||
Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost));
|
||||
ForceVariousEffects();
|
||||
}
|
||||
#endregion
|
||||
@@ -4614,6 +4648,104 @@ namespace CalamityMod.CalPlayer
|
||||
#region PostUpdateEquips
|
||||
public override void PostUpdateEquips()
|
||||
{
|
||||
|
||||
var item = Player.HeldItem;
|
||||
if (!(item.IsAir || item.damage <= 0))
|
||||
{
|
||||
if (item.DamageType.CountsAsClass(DamageClass.Melee))
|
||||
{
|
||||
TimeHoldingMelee++;
|
||||
if (TimeHoldingMelee > Whiskey.TimeToDischarge)
|
||||
TimeHoldingMelee = (int)Whiskey.TimeToDischarge;
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingMelee / Whiskey.TimeToDischarge);
|
||||
}
|
||||
} else
|
||||
{
|
||||
TimeHoldingMelee -= 2;
|
||||
if (TimeHoldingMelee < 0)
|
||||
TimeHoldingMelee = 0;
|
||||
}
|
||||
if (item.DamageType.CountsAsClass(DamageClass.Ranged))
|
||||
{
|
||||
TimeHoldingRanged++;
|
||||
if (TimeHoldingRanged > Whiskey.TimeToDischarge)
|
||||
TimeHoldingRanged = (int)Whiskey.TimeToDischarge;
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingRanged / Whiskey.TimeToDischarge);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeHoldingRanged -= 2;
|
||||
if (TimeHoldingRanged < 0)
|
||||
TimeHoldingRanged = 0;
|
||||
}
|
||||
if (item.DamageType.CountsAsClass(DamageClass.Magic))
|
||||
{
|
||||
TimeHoldingMagic++;
|
||||
if (TimeHoldingMagic > Whiskey.TimeToDischarge)
|
||||
TimeHoldingMagic = (int)Whiskey.TimeToDischarge;
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingMagic / Whiskey.TimeToDischarge);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeHoldingMagic -= 2;
|
||||
if (TimeHoldingMagic < 0)
|
||||
TimeHoldingMagic = 0;
|
||||
}
|
||||
if (item.DamageType.CountsAsClass(DamageClass.Summon))
|
||||
{
|
||||
TimeHoldingSummon++;
|
||||
if (TimeHoldingSummon > Whiskey.TimeToDischarge)
|
||||
TimeHoldingSummon = (int)Whiskey.TimeToDischarge;
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingSummon / Whiskey.TimeToDischarge);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeHoldingSummon -= 2;
|
||||
if (TimeHoldingSummon < 0)
|
||||
TimeHoldingSummon = 0;
|
||||
}
|
||||
if (item.DamageType.CountsAsClass(RogueDamageClass.Instance))
|
||||
{
|
||||
TimeHoldingRogue++;
|
||||
if (TimeHoldingRogue > Whiskey.TimeToDischarge)
|
||||
TimeHoldingRogue = (int)Whiskey.TimeToDischarge;
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingRogue / Whiskey.TimeToDischarge);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeHoldingRogue -= 2;
|
||||
if (TimeHoldingRogue < 0)
|
||||
TimeHoldingRogue = 0;
|
||||
}
|
||||
} else
|
||||
{
|
||||
if (TimeHoldingMelee-- < 0)
|
||||
TimeHoldingMelee = 0;
|
||||
if (TimeHoldingRanged-- < 0)
|
||||
TimeHoldingRanged = 0;
|
||||
if (TimeHoldingMagic-- < 0)
|
||||
TimeHoldingMagic = 0;
|
||||
if (TimeHoldingSummon-- < 0)
|
||||
TimeHoldingSummon = 0;
|
||||
if (TimeHoldingRogue-- < 0)
|
||||
TimeHoldingRogue = 0;
|
||||
}
|
||||
|
||||
|
||||
// PostUpdateMiscEffects runs after the cap has been applied. Do NOT put mining speed stuff there.
|
||||
// Ancient Chisel nerf (also affects Hand of Creation)
|
||||
if (Player.chiselSpeed)
|
||||
@@ -4697,6 +4829,12 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void PostUpdate()
|
||||
{
|
||||
//reset the stored Y value for red wine's increased vertical speed
|
||||
if (redWine && (redWineStoredY > 0.2f || redWineStoredY < -0.2f) && (Player.velocity.Y > 0.2f || Player.velocity.Y < -0.2f))
|
||||
{
|
||||
Player.velocity.Y = redWineStoredY;
|
||||
}
|
||||
|
||||
|
||||
if (subtitletext != null)
|
||||
{
|
||||
@@ -4879,15 +5017,6 @@ namespace CalamityMod.CalPlayer
|
||||
// Adding to StatModifier adds to the additive multiplier
|
||||
bool rogue = item.CountsAsClass<RogueDamageClass>();
|
||||
|
||||
if (whiskey)
|
||||
knockback += Whiskey.KnockbackBoost;
|
||||
|
||||
if (tequila && Main.dayTime)
|
||||
knockback += Tequila.KnockbackBoost;
|
||||
|
||||
if (tequilaSunrise && Main.dayTime)
|
||||
knockback += TequilaSunrise.KnockbackBoost;
|
||||
|
||||
if (moscowMule)
|
||||
knockback += MoscowMule.KnockbackBoost;
|
||||
|
||||
@@ -5068,7 +5197,13 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (bladeArmEnchant)
|
||||
return false;
|
||||
|
||||
if (purpleHaze)
|
||||
{
|
||||
if (item.CountsAsClass<RogueDamageClass>() && StealthStrikeAvailable())
|
||||
{
|
||||
purpleHazeStealthTimer = 300;
|
||||
}
|
||||
}
|
||||
if (veneratedLocket)
|
||||
{
|
||||
var LocketSource = Player.GetSource_Accessory(FindAccessory(ItemType<VeneratedLocket>()));
|
||||
@@ -5823,7 +5958,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Misc Stuff
|
||||
|
||||
@@ -656,13 +656,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (proj.Calamity().stealthStrike && proj.CountsAsClass<RogueDamageClass>())
|
||||
modifiers.SourceDamage *= (float)bonusStealthDamage + 1; // Default bonusStealthDamage is 0, a 1 has to be added to take the damage of the weapon.
|
||||
|
||||
// Screwdriver adds 5% bonus damage to all piercing projectiles.
|
||||
if (screwdriver)
|
||||
{
|
||||
if (proj.penetrate > 1 || proj.penetrate == -1)
|
||||
modifiers.ScalingBonusDamage += Screwdriver.PiercingDamageBuff;
|
||||
}
|
||||
|
||||
if (Player.Calamity().scionsCurio && proj.CountsAsClass<RangedDamageClass>())
|
||||
target.Calamity().scionsCurioEffected = true;
|
||||
|
||||
@@ -2041,9 +2034,9 @@ namespace CalamityMod.CalPlayer
|
||||
bool hasIFrames = Player.HasIFrames();
|
||||
|
||||
// If the player was just hit by something capable of dealing defense damage, then apply defense damage.
|
||||
// Bloodflare Core makes every hit deal defense damage (to enable its function).
|
||||
// Bloodflare Core or Moonshine makes every hit deal defense damage (to enable its function).
|
||||
// Defense damage is not applied if the player has iframes or godmode.
|
||||
bool hitCanApplyDefenseDamage = nextHitDealsDefenseDamage || bloodflareCore;
|
||||
bool hitCanApplyDefenseDamage = nextHitDealsDefenseDamage || bloodflareCore || moonshine;
|
||||
bool defenseDamageShouldApply = hitCanApplyDefenseDamage && !hasIFrames && !Player.creativeGodMode;
|
||||
|
||||
// 15AUG2024: Ozzatron: External flag which completely disables defense damage. This overrides Bloodflare Core.
|
||||
@@ -2051,19 +2044,25 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (defenseDamageShouldApply && externalFlagsAppropriate)
|
||||
{
|
||||
double specialDefenseDmgMinimum = 0;
|
||||
double halfDefense = Player.statDefense / 2.0;
|
||||
if (bloodflareCore)
|
||||
specialDefenseDmgMinimum += halfDefense;
|
||||
if (moonshine) //Moonshine also halves defense damage recovery alongside forcing 50% of defense as defense damage
|
||||
specialDefenseDmgMinimum += halfDefense;
|
||||
int netMitigation = hurtInfo.SourceDamage - hurtInfo.Damage;
|
||||
double standardDefenseDamage = netMitigation * defenseDamageRatio;
|
||||
|
||||
// Bloodflare Core overrides standard defense damage if it would be less than half of the player's total defense.
|
||||
if (bloodflareCore && standardDefenseDamage < halfDefense)
|
||||
// Bloodflare Core or Moonshine overrides standard defense damage if it would be less than half of the player's total defense.
|
||||
// They stack together for 100% lost defense
|
||||
if (specialDefenseDmgMinimum > 0 && standardDefenseDamage < specialDefenseDmgMinimum)
|
||||
{
|
||||
// In this case, forcibly deal half of the player's total defense as defense damage. This ignores ratios.
|
||||
DealDefenseDamage((int)halfDefense, true);
|
||||
// In this case, forcibly deal the proportion of the player's total defense as defense damage. This ignores ratios.
|
||||
DealDefenseDamage((int)specialDefenseDmgMinimum, true);
|
||||
|
||||
// Set up Bloodflare Core's heal over time. Any in-progress heals are overwritten if they would have a shorter duration.
|
||||
if (bloodflareCoreRemainingHealOverTime < halfDefense)
|
||||
bloodflareCoreRemainingHealOverTime = (int)halfDefense;
|
||||
if (bloodflareCore && bloodflareCoreRemainingHealOverTime < specialDefenseDmgMinimum)
|
||||
bloodflareCoreRemainingHealOverTime = (int)specialDefenseDmgMinimum;
|
||||
|
||||
// Play a sound and make dust to signify that defense has been shattered
|
||||
SoundEngine.PlaySound(SoundID.DD2_MonkStaffGroundImpact, Player.Center);
|
||||
|
||||
@@ -198,34 +198,8 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (Player.Calamity().ivDrip) // +1 stack of poisoning while IV Drip is equipped
|
||||
alcoholPoisonLevel++;
|
||||
if (vodka)
|
||||
totalNegativeLifeRegen += Vodka.RegenLoss;
|
||||
if (redWine)
|
||||
totalNegativeLifeRegen += baguette ? Baguette.RedWineBuffedRegenLoss : RedWine.RegenLoss;
|
||||
if (moonshine)
|
||||
totalNegativeLifeRegen += Moonshine.RegenLoss;
|
||||
if (fireball)
|
||||
totalNegativeLifeRegen += Fireball.RegenLoss;
|
||||
if (everclear)
|
||||
totalNegativeLifeRegen += Everclear.RegenLoss;
|
||||
if (bloodyMary)
|
||||
totalNegativeLifeRegen += BloodyMary.RegenLoss;
|
||||
if (tequila)
|
||||
totalNegativeLifeRegen += Tequila.RegenLoss;
|
||||
if (tequilaSunrise)
|
||||
totalNegativeLifeRegen += TequilaSunrise.RegenLoss;
|
||||
if (screwdriver)
|
||||
totalNegativeLifeRegen += Screwdriver.RegenLoss;
|
||||
if (margarita)
|
||||
totalNegativeLifeRegen += Margarita.RegenLoss;
|
||||
if (starBeamRye)
|
||||
totalNegativeLifeRegen += StarBeamRye.RegenLoss;
|
||||
if (moscowMule)
|
||||
totalNegativeLifeRegen += MoscowMule.RegenLoss;
|
||||
if (whiteWine)
|
||||
totalNegativeLifeRegen += WhiteWine.RegenLoss;
|
||||
if (evergreenGin)
|
||||
totalNegativeLifeRegen += EvergreenGin.RegenLoss;
|
||||
|
||||
// Blanket effect for all alcohols
|
||||
if (alcoholPoisonLevel > 0)
|
||||
@@ -294,9 +268,13 @@ namespace CalamityMod.CalPlayer
|
||||
// At the last second, Reaver defense helm reduces DoT debuffs by 20%
|
||||
if (reaverDefense)
|
||||
totalNegativeLifeRegen -= (int)(totalNegativeLifeRegen * ReaverHeadTank.SetBonusDebuffDamageReduction);
|
||||
if (tequilaSunrise)
|
||||
totalNegativeLifeRegen = (int)(totalNegativeLifeRegen * TequilaSunrise.DoTMultiplier);
|
||||
|
||||
Player.lifeRegen -= (int)totalNegativeLifeRegen;
|
||||
|
||||
bool hasLifeRegenHinderingDebuff = Player.lifeRegenTime == 0;
|
||||
|
||||
#region Life Regen That Works Even During DoT Debuffs
|
||||
if (honeyDewHalveDebuffs)
|
||||
{
|
||||
@@ -457,6 +435,16 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.buffType.Any(i => CalamityBuffSets.IsDebuff[i]))
|
||||
Player.lifeRegen += 3;
|
||||
}
|
||||
|
||||
//If a player had a life regen hindering debuff, add 30 seconds to their regen time when under Tequila Sunrise
|
||||
//This stacks with all other post-debuff boosts due to Tequila Sunrise increasing DoT damage taken
|
||||
if (tequilaSunrise)
|
||||
{
|
||||
if (hadLifeRegenHinderingDebuff && !hasLifeRegenHinderingDebuff)
|
||||
{
|
||||
Player.lifeRegenTime += 1800;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
// During Silva revive or God Slayer dash, all negative life regen is canceled
|
||||
@@ -530,18 +518,15 @@ namespace CalamityMod.CalPlayer
|
||||
// Chalice of the Blood God bleedout
|
||||
// The bleedout is applied by directly reducing the player's health. It is not canceled by anything.
|
||||
ChaliceOfTheBloodGod.HandleBleedout(Player);
|
||||
|
||||
//Finally, update the state of hadLifeRegenHinderingDebuff for next frame.
|
||||
hadLifeRegenHinderingDebuff = hasLifeRegenHinderingDebuff;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Update Life Regen
|
||||
public override void UpdateLifeRegen()
|
||||
{
|
||||
if (rum)
|
||||
Player.lifeRegen += Rum.RegenBoost;
|
||||
|
||||
if (caribbeanRum)
|
||||
Player.lifeRegen += CaribbeanRum.RegenBoost;
|
||||
|
||||
if (mushy)
|
||||
Player.lifeRegen += Mushy.RegenBoost;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
@@ -624,6 +625,15 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (cinnamonRoll)
|
||||
{
|
||||
if (dashStart)
|
||||
Player.velocity.X *= 3;
|
||||
else if (Player.dashDelay == -1)
|
||||
Player.velocity.X *= 0.8f;
|
||||
}
|
||||
|
||||
if (Player.dashDelay == -1)
|
||||
IsFirstDashFrame = false;
|
||||
else
|
||||
@@ -3582,74 +3592,40 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.chilled)
|
||||
Player.moveSpeed *= 1f + (1f / 6f);
|
||||
|
||||
if (purpleHaze)
|
||||
Player.GetDamage<GenericDamageClass>() += PurpleHaze.DamageBoost;
|
||||
|
||||
if (vodka)
|
||||
if (purpleHazeStealthTimer > 0)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += Vodka.DamageBoost;
|
||||
Player.GetCritChance<GenericDamageClass>() += Vodka.CritBoost;
|
||||
}
|
||||
|
||||
if (moonshine)
|
||||
{
|
||||
Player.statDefense += Moonshine.DefenseBoost;
|
||||
Player.endurance += Moonshine.DamageReductionBoost;
|
||||
}
|
||||
|
||||
if (rum)
|
||||
Player.moveSpeed += Rum.MoveSpeedBoost;
|
||||
|
||||
if (whiskey)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += Whiskey.DamageBoost;
|
||||
Player.GetCritChance<GenericDamageClass>() += Whiskey.CritBoost;
|
||||
//this is so janky looking but it's the only way I could get it to work properly
|
||||
if (!(StealthStrikeAvailable() && Player.HeldItem.DamageType == RogueDamageClass.Instance))
|
||||
Player.GetDamage(DamageClass.Generic) += PurpleHaze.DamageBoost;
|
||||
else
|
||||
stealthDamage -= PurpleHaze.StealthDamageLoss;
|
||||
}
|
||||
|
||||
if (everclear)
|
||||
Player.GetDamage<GenericDamageClass>() += Everclear.DamageBoost;
|
||||
|
||||
if (bloodyMary)
|
||||
{
|
||||
if (Main.bloodMoon)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += BloodyMary.DamageBoost;
|
||||
Player.moveSpeed += BloodyMary.MoveSpeedBoost;
|
||||
}
|
||||
}
|
||||
|
||||
if (tequila)
|
||||
{
|
||||
if (Main.dayTime)
|
||||
{
|
||||
Player.statDefense += Tequila.DefenseBoost;
|
||||
Player.GetCritChance<GenericDamageClass>() += Tequila.CritBoost;
|
||||
}
|
||||
}
|
||||
|
||||
if (tequilaSunrise)
|
||||
{
|
||||
if (Main.dayTime)
|
||||
{
|
||||
Player.statDefense += TequilaSunrise.DefenseBoost;
|
||||
Player.GetCritChance<GenericDamageClass>() += TequilaSunrise.CritBoost;
|
||||
}
|
||||
}
|
||||
|
||||
if (caribbeanRum)
|
||||
Player.moveSpeed += CaribbeanRum.MoveSpeedBoost;
|
||||
|
||||
if (cinnamonRoll)
|
||||
{
|
||||
Player.manaRegenDelayBonus += CinnamonRoll.ManaRegenDelayBonus;
|
||||
Player.manaRegenBonus += CinnamonRoll.ManaRegenBonus;
|
||||
Player.gravity *= CaribbeanRum.GravityMultiplier;
|
||||
Player.moveSpeed += CaribbeanRum.MoveSpeedBoost;
|
||||
}
|
||||
|
||||
if (starBeamRye)
|
||||
{
|
||||
Player.GetDamage<MagicDamageClass>() += StarBeamRye.MagicDamageBoost;
|
||||
Player.manaCost -= StarBeamRye.ManaCostReduction;
|
||||
Player.statManaMax2 += StarBeamRye.MaxManaBoost;
|
||||
Player.manaFlower = false;
|
||||
Player.ClearBuff(ModContent.BuffType<AstralInjectionBuff>());
|
||||
if (!Player.manaSick)
|
||||
{
|
||||
Player.manaRegenCount -= Player.manaRegen;
|
||||
Player.manaRegenDelay = 0;
|
||||
Player.manaRegenCount += 20; // 20 mana per second, even while using an item
|
||||
if (Player.HeldItem.mana > 0)
|
||||
{
|
||||
Player.GetDamage<MagicDamageClass>() += 0.5f + MathHelper.Max(0.1f,Player.HeldItem.mana / (float)Player.HeldItem.useTime);
|
||||
}
|
||||
Player.GetDamage<GenericDamageClass>() -= 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
if (moscowMule)
|
||||
@@ -3659,7 +3635,32 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (whiteWine)
|
||||
Player.GetDamage<MagicDamageClass>() += WhiteWine.MagicDamageBoost;
|
||||
{
|
||||
Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - WhiteWine.FlightTimeLoss));
|
||||
|
||||
float bonus = 0f;
|
||||
float MaxDistance = 640f;
|
||||
NPC closestTarget = Player.Center.ClosestNPCAt(MaxDistance * 7); // extra range is to account for bonus range from massive targets
|
||||
if (closestTarget != null)
|
||||
{
|
||||
float generousHitboxWidth = Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
|
||||
bonus = Utils.Remap(Utils.Distance(Player.Center, closestTarget.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 0, 1, true);
|
||||
}
|
||||
else
|
||||
bonus = 0;
|
||||
whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount;
|
||||
while (whiteWineTimer > 1)
|
||||
{
|
||||
if (Player.wingTime < Player.wingTimeMax)
|
||||
Player.wingTime++;
|
||||
whiteWineTimer--;
|
||||
}
|
||||
}
|
||||
|
||||
if (redWine)
|
||||
{
|
||||
Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - RedWine.FlightTimeLoss));
|
||||
}
|
||||
|
||||
if (giantPearl)
|
||||
{
|
||||
@@ -3802,7 +3803,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (molluskLegs)
|
||||
Player.velocity.X *= 0.995f;
|
||||
|
||||
if ((warped || caribbeanRum) && !Player.slowFall && !Player.mount.Active)
|
||||
if ((warped) && !Player.slowFall && !Player.mount.Active)
|
||||
{
|
||||
float velocityYMultiplier = 1.01f;
|
||||
Player.velocity.Y *= velocityYMultiplier;
|
||||
@@ -4852,7 +4853,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
totalDefenseDamage = 0;
|
||||
defenseDamageRecoveryFrames = 0;
|
||||
totalDefenseDamageRecoveryFrames = DefenseDamageBaseRecoveryTime;
|
||||
totalDefenseDamageRecoveryFrames = DefenseDamageBaseRecoveryTime * (moonshine ? 2 : 1);
|
||||
defenseDamageDelayFrames = 0;
|
||||
}
|
||||
}
|
||||
@@ -4883,87 +4884,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Multiplicative defense reductions.
|
||||
// These are done last because they need to be after the defense lower cap at 0.
|
||||
if (purpleHaze)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * PurpleHaze.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (vodka)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * Vodka.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (grapeBeer)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * GrapeBeer.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (rum)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * Rum.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (whiskey)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * Whiskey.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (everclear)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * Everclear.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (bloodyMary)
|
||||
{
|
||||
if (Main.bloodMoon)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * BloodyMary.DefenseLossPercent);
|
||||
}
|
||||
}
|
||||
|
||||
if (caribbeanRum)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * CaribbeanRum.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (cinnamonRoll)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * CinnamonRoll.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (margarita)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * Margarita.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (starBeamRye)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * StarBeamRye.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (whiteWine)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * WhiteWine.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (Player.HasBuff(BuffID.Tipsy))
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * 0.05);
|
||||
}
|
||||
|
||||
if (DesertProwlerHat.ShroudedInSmoke(Player, out _))
|
||||
Player.statDefense -= (int)(Player.statDefense * DesertProwlerHat.SmokeDefenseMult);
|
||||
}
|
||||
@@ -5197,8 +5122,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (item.type == ModContent.ItemType<HadalStew>())
|
||||
CalamityUtils.ConsumeItemViaQuickBuff(Player, item, HadalStew.BuffType, HadalStew.BuffDuration, true);
|
||||
if (item.type == ModContent.ItemType<Margarita>())
|
||||
CalamityUtils.ConsumeItemViaQuickBuff(Player, item, Margarita.BuffType, CalamityUtils.MinutesToFrames(Margarita.MinuteDuration), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,7 +240,25 @@ namespace CalamityMod.CalPlayer
|
||||
if (proj.type != ProjectileType<MythrilFlare>())
|
||||
MythrilArmorSetChange.OnHitEffects(target, damageDone, Player);
|
||||
|
||||
if (witheringWeaponEnchant)
|
||||
if (moscowMule)
|
||||
{
|
||||
var center = Player.Center;
|
||||
if (proj.IsMinionOrSentryRelated)
|
||||
center = proj.Center;
|
||||
Vector2 launchVel = Utils.DirectionTo(center, target.Center);
|
||||
target.MoveNPC(launchVel, proj.knockBack, true);
|
||||
}
|
||||
|
||||
if (moscowMule || bloodyMary)
|
||||
{
|
||||
if (!(PierceResistNPC.exemptProjectiles.Contains(proj.type) || (PierceResistNPC.singleHitboxExemptProjectiles.ContainsKey(proj.type) && PierceResistNPC.singleHitboxExemptProjectiles[proj.type])))
|
||||
{
|
||||
proj.damage = (int)(proj.damage * (moscowMule ? 0.8f : 1f) * (bloodyMary ? 0.75f : 1f));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (witheringWeaponEnchant)
|
||||
witheringDamageDone += (int)(damageDone * (hit.Crit ? 2D : 1D));
|
||||
cgn.TypelessDebuffMultiplier = TypelessDebuffMultiplier;
|
||||
cgn.HeatDebuffMultiplier = HeatDebuffMultiplier;
|
||||
|
||||
@@ -1017,6 +1017,11 @@ namespace CalamityMod.Items
|
||||
return "";
|
||||
}
|
||||
|
||||
public override void ModifyItemScale(Item item, Player player, ref float scale)
|
||||
{
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && player.HasBuff(BuffID.Tipsy))
|
||||
scale += 0.15f;
|
||||
}
|
||||
public override void UpdateArmorSet(Player player, string set)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
@@ -12,12 +12,6 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DamageBoost = 0.1f;
|
||||
public static float MoveSpeedBoost = 0.1f; // Both 10% so we only need just one in the tooltip
|
||||
public static int RegenLoss = 4;
|
||||
public static float DefenseLossPercent = 0.04f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
@@ -30,27 +24,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(20, 32, ModContent.BuffType<BloodyMaryBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(20, 32, ModContent.BuffType<BloodyMaryBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.BloodMoonStarter).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int RegenBoost = 2;
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public static float DefenseLossPercent = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenBoost.ToRegenPerSecond(), MoveSpeedBoost.ToPercent(), DefenseLossPercent.ToPercent());
|
||||
public static float MoveSpeedBoost = 0.25f;
|
||||
public static float GravityMultiplier = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), (1-GravityMultiplier).ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,7 +29,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 32, ModContent.BuffType<CaribbeanRumBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(14, 32, ModContent.BuffType<CaribbeanRumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -38,19 +37,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<LivingShard>().
|
||||
CreateRecipe(12).
|
||||
AddIngredient(ItemID.Bottle, 12).
|
||||
AddIngredient(ItemID.IceFeather).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<LivingShard>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,13 +13,6 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
// Mana has a stupid formula so it won't go into the tooltip
|
||||
public static float ManaRegenDelayBonus = 1f;
|
||||
public static int ManaRegenBonus = 10;
|
||||
public static float HeatDebuffBoost = 0.5f;
|
||||
public static float DefenseLossPercent = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f + HeatDebuffBoost).ToString(), DefenseLossPercent.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
@@ -32,27 +25,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<CinnamonRollBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<CinnamonRollBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<ScoriaOre>(3).
|
||||
AddIngredient(ItemID.LivingFireBlock).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.TurtleShell).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<ScoriaOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 42, ModContent.BuffType<EverclearBuff>(), CalamityUtils.MinutesToFrames(1), true);
|
||||
Item.DefaultToFood(14, 42, ModContent.BuffType<EverclearBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -37,21 +37,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient(ItemID.Glass, 10).
|
||||
AddIngredient<AureusCell>().
|
||||
CreateRecipe(12).
|
||||
AddIngredient(ItemID.Bottle, 12).
|
||||
AddIngredient(ItemID.BlackLens).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient(ItemID.Glass, 5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,9 +12,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float SicknessWaterDebuffBoost = 0.25f;
|
||||
public static int RegenLoss = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f + SicknessWaterDebuffBoost).ToString(), RegenLoss.ToRegenPerSecond());
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<EvergreenGinBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<EvergreenGinBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -37,19 +37,12 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<LivingShard>().
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Vine, 3).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<LivingShard>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,9 +12,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float HeatDebuffBoost = 0.25f;
|
||||
public static int RegenLoss = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f + HeatDebuffBoost).ToString(), RegenLoss.ToRegenPerSecond());
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(16, 38, ModContent.BuffType<FireballBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(16, 38, ModContent.BuffType<FireballBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -36,19 +36,13 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient(ItemID.LivingFireBlock).
|
||||
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.LivingFireBlock, 50).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient(ItemID.LivingFireBlock).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,9 +12,8 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DefenseLossPercent = 0.03f;
|
||||
public static int SecondDuration = 15;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DefenseLossPercent.ToPercent(), SecondDuration);
|
||||
public static float CritLoss = 10;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritLoss);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -28,33 +27,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToHealingPotion(12, 28, 100);
|
||||
Item.DefaultToFood(12, 28, ModContent.BuffType<GrapeBeerBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 3);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<GrapeBeerBuff>(), CalamityUtils.SecondsToFrames(SecondDuration));
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(10).
|
||||
AddIngredient(ItemID.Bottle, 10).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Grapes).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<StarblightSoot>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class Manhattan : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(225, 84, 33),
|
||||
new Color(244, 176, 77),
|
||||
new Color(255, 218, 102)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ManhattanBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.FrostCore).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 647 B |
@@ -13,10 +13,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int BuffType = ModContent.BuffType<MargaritaBuff>();
|
||||
public static float DefenseLossPercent = 0.06f;
|
||||
public static int RegenLoss = 1;
|
||||
public static int MinuteDuration = 3;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DefenseLossPercent.ToPercent(), RegenLoss.ToRegenPerSecond(), MinuteDuration);
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public static int MinuteDuration = 3;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,31 +29,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToHealingPotion(28, 40, 200);
|
||||
Item.DefaultToFood(28, 40, ModContent.BuffType<MargaritaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
player.AddBuff(BuffType, CalamityUtils.MinutesToFrames(MinuteDuration));
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<LivingShard>().
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.DarkShard).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<LivingShard>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,8 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int DefenseBoost = 10;
|
||||
public static float DamageReductionBoost = 0.03f;
|
||||
public static int RegenLoss = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DefenseBoost, DamageReductionBoost.ToPercent(), RegenLoss.ToRegenPerSecond());
|
||||
public static float MaxLifePercentBoost = 0.33f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifePercentBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,7 +28,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(24, 28, ModContent.BuffType<MoonshineBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(24, 28, ModContent.BuffType<MoonshineBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
@@ -38,19 +36,12 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<LivingShard>().
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.LifeFruit).
|
||||
AddIngredient<AncientBoneDust>(5).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<LivingShard>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,26 +32,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(32, 32, ModContent.BuffType<MoscowMuleBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(32, 32, ModContent.BuffType<MoscowMuleBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<ScoriaOre>(3).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient<TitanHeart>().
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<ScoriaOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,19 +35,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient(ItemID.Ectoplasm).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Grapefruit).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient(ItemID.Ectoplasm).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,9 +13,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DamageBoost = 0.08f;
|
||||
public static float DefenseLossPercent = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), DefenseLossPercent.ToPercent());
|
||||
public static float DamageBoost = 0.25f;
|
||||
public static float StealthDamageLoss = 0.25f;
|
||||
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(),StealthDamageLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -29,7 +30,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<PurpleHazeBuff>(), CalamityUtils.MinutesToFrames(15), true);
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<PurpleHazeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -37,21 +38,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient(ItemID.PixieDust, 10).
|
||||
AddIngredient(ItemID.CrystalShard, 5).
|
||||
AddIngredient(ItemID.UnicornHorn).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Plum).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<BloodOrb>(15).
|
||||
AddIngredient(ItemID.CrystalShard).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,10 +13,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int HealValue = 200;
|
||||
public static int RegenLoss = 1;
|
||||
public static int SecondDuration = 30;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenLoss.ToRegenPerSecond(), SecondDuration);
|
||||
public static float VerticalSpeedBoost = 0.1f;
|
||||
public static float FlightTimeLoss = 0.25f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(VerticalSpeedBoost.ToPercent(), FlightTimeLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,37 +29,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToHealingPotion(14, 48, HealValue);
|
||||
Item.DefaultToFood(14, 48, ModContent.BuffType<RedWineBuff>(), CalamityUtils.MinutesToFrames(6));
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
|
||||
public override void GetHealLife(Player player, bool quickHeal, ref int healValue)
|
||||
{
|
||||
healValue = player.Calamity().baguette ? Baguette.RedWineBuffedHealValue : HealValue;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<RedWineBuff>(), CalamityUtils.SecondsToFrames(SecondDuration));
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(10).
|
||||
AddIngredient(ItemID.Bottle, 10).
|
||||
AddIngredient(ItemID.Grapes).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
CreateRecipe(12).
|
||||
AddIngredient(ItemID.Bottle, 12).
|
||||
AddIngredient(ItemID.FireFeather).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<StarblightSoot>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int RegenBoost = 2;
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public static float DefenseLossPercent = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenBoost.ToRegenPerSecond(), MoveSpeedBoost.ToPercent(), DefenseLossPercent.ToPercent());
|
||||
public static float NonMinionBoost = 1.15f;
|
||||
public static float MinionBoost = 0.85f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((NonMinionBoost-1).ToPercent(), (1- MinionBoost).ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -29,26 +28,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(24, 26, ModContent.BuffType<RumBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(24, 26, ModContent.BuffType<RumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.SpiderFang,3).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<StarblightSoot>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,9 +13,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float PiercingDamageBuff = 0.05f;
|
||||
public static int RegenLoss = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f + PiercingDamageBuff).ToString(), RegenLoss.ToRegenPerSecond());
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -29,26 +29,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<HallowedOre>(3).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Diamond).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<HallowedOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,12 +12,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static int MaxManaBoost = 50;
|
||||
public static float MagicDamageBoost = 0.08f;
|
||||
public static float ManaCostReduction = 0.1f;
|
||||
public static float DefenseLossPercent = 0.06f;
|
||||
public static int RegenLoss = 2;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, MagicDamageBoost.ToPercent(), ManaCostReduction.ToPercent(), DefenseLossPercent.ToPercent(), RegenLoss.ToRegenPerSecond());
|
||||
public static float MaxManaBoost = 0.5f;
|
||||
public static float ManaRegenBoost = 2f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaRegenBoost.ToPercent(),(1-MaxManaBoost).ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -32,27 +29,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(20, 34, ModContent.BuffType<StarBeamRyeBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(20, 34, ModContent.BuffType<StarBeamRyeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.Starfruit).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,11 +12,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float KnockbackBoost = 0.1f;
|
||||
public static int CritBoost = 4;
|
||||
public static int DefenseBoost = 5;
|
||||
public static int RegenLoss = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(KnockbackBoost.ToPercent(), CritBoost, DefenseBoost, RegenLoss.ToRegenPerSecond());
|
||||
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,7 +29,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(16, 34, ModContent.BuffType<TequilaBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(16, 34, ModContent.BuffType<TequilaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -38,19 +37,12 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient<StormlionMandible>(3).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<StarblightSoot>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,8 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float KnockbackBoost = 0.2f;
|
||||
public static int CritBoost = 8;
|
||||
public static int DefenseBoost = 10;
|
||||
public static int RegenLoss = 2;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(KnockbackBoost.ToPercent(), CritBoost, DefenseBoost, RegenLoss.ToRegenPerSecond());
|
||||
public static float DoTMultiplier = 1.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DoTMultiplier-1).ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -31,7 +28,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(22, 28, ModContent.BuffType<TequilaSunriseBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(22, 28, ModContent.BuffType<TequilaSunriseBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
@@ -39,19 +36,12 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<ScoriaOre>(3).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.LightShard).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<ScoriaOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DamageBoost = 0.06f;
|
||||
public static int CritBoost = 2;
|
||||
public static int RegenLoss = 1;
|
||||
public static float DefenseLossPercent = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), CritBoost, RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent());
|
||||
public static float DebuffBoost = 0.25f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -31,26 +29,19 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 36, ModContent.BuffType<VodkaBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(14, 36, ModContent.BuffType<VodkaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<HallowedOre>(3).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.BottledWater, 6).
|
||||
AddIngredient<PurifiedGel>(10).
|
||||
AddIngredient<StarblightSoot>(10).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<HallowedOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,11 +12,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DamageBoost = 0.04f;
|
||||
public static float KnockbackBoost = 0.2f;
|
||||
public static int CritBoost = 2;
|
||||
public static float DefenseLossPercent = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), KnockbackBoost.ToPercent(), CritBoost, DefenseLossPercent.ToPercent());
|
||||
public static float MaxDamageBoost = 0.15f;
|
||||
public static float MinDamageBoost = -0.15f;
|
||||
public static float TimeToDischarge = 600;
|
||||
public static float TimeToRecharge = 300;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxDamageBoost.ToPercent(), MinDamageBoost.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##"));
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -30,26 +30,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<WhiskeyBuff>(), CalamityUtils.MinutesToFrames(8), true);
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<WhiskeyBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<StarblightSoot>(5).
|
||||
CreateRecipe(6).
|
||||
AddIngredient(ItemID.Bottle, 6).
|
||||
AddIngredient(ItemID.SpicyPepper).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<StarblightSoot>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,10 +14,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float MagicDamageBoost = 0.08f;
|
||||
public static float DefenseLossPercent = 0.06f;
|
||||
public static int RegenLoss = 2;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), DefenseLossPercent.ToPercent(), RegenLoss.ToRegenPerSecond());
|
||||
public static float FlightTimeRecoveryAmount = 0.66f;
|
||||
public static float FlightTimeLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -32,45 +31,22 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 44, ModContent.BuffType<WhiteWineBuff>(), CalamityUtils.MinutesToFrames(5), true);
|
||||
Item.healMana = 300;
|
||||
|
||||
Item.DefaultToFood(14, 44, ModContent.BuffType<WhiteWineBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
if (PlayerInput.Triggers.JustPressed.QuickBuff)
|
||||
{
|
||||
player.statMana += Item.healMana;
|
||||
if (player.statMana > player.statManaMax2)
|
||||
{
|
||||
player.statMana = player.statManaMax2;
|
||||
}
|
||||
player.AddBuff(BuffID.ManaSickness, Player.manaSickTime, true);
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
player.ManaEffect(Item.healMana);
|
||||
}
|
||||
}
|
||||
player.AddBuff(Item.buffType, Item.buffTime);
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<HallowedOre>(3).
|
||||
CreateRecipe(12).
|
||||
AddIngredient(ItemID.Bottle, 12).
|
||||
AddIngredient(ItemID.GiantHarpyFeather).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<HallowedOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,22 +6,21 @@ AlcoholPoisoning: {
|
||||
|
||||
BloodyMaryBuff: {
|
||||
DisplayName: Bloody Mary
|
||||
Description: Damage and movement speed increased during a Blood Moon, life regen and defense reduced
|
||||
}
|
||||
Description: Increased enemy spawn rates, reduced piercing weapon effectiveness
|
||||
|
||||
CaribbeanRumBuff: {
|
||||
DisplayName: Caribbean Rum
|
||||
Description: Life regen and movement speed increased, you are floaty and defense is reduced
|
||||
Description: Increased movement speed, reduced gravity
|
||||
}
|
||||
|
||||
CinnamonRollBuff: {
|
||||
DisplayName: Cinnamon Roll
|
||||
Description: Mana regen rate and fire debuff damage increased, defense reduced
|
||||
Description: Greatly increased dash speed, greatly reduced dash distance
|
||||
}
|
||||
|
||||
PurpleHazeBuff: {
|
||||
DisplayName: Purple Haze
|
||||
Description: Damage and invulnerability frames increased, defense reduced
|
||||
Description: Increased damage after a stealth strike, reduced stealth strike damage
|
||||
}
|
||||
|
||||
EverclearBuff: {
|
||||
@@ -31,32 +30,30 @@ EverclearBuff: {
|
||||
|
||||
EvergreenGinBuff: {
|
||||
DisplayName: Evergreen Gin
|
||||
Description: Sickness and water debuff damage increased, life regen reduced
|
||||
}
|
||||
Description: Sickness and water debuff damage increased, electric and heat debuff damage reduced
|
||||
|
||||
FireballBuff: {
|
||||
DisplayName: Fireball
|
||||
Description: Fire debuff damage increased, life regen reduced
|
||||
Description: Heat debuff damage increased, sickness debuff damage reduced
|
||||
}
|
||||
|
||||
GrapeBeerBuff: {
|
||||
DisplayName: Grape Beer
|
||||
Description: Defense reduced
|
||||
Description: Ranged projectiles gain homing, reduced critical strike damage
|
||||
}
|
||||
|
||||
MargaritaBuff: {
|
||||
DisplayName: Margarita
|
||||
Description: Reduced duration to most debuffs, defense and life regen reduced
|
||||
}
|
||||
Description: Reduced duration to most harmful debuffs, reduced damage dealt to enemies from debuffs
|
||||
|
||||
MoonshineBuff: {
|
||||
DisplayName: Moonshine
|
||||
Description: Defense and damage reduction increased, life regen reduced
|
||||
Description: Increased maximum health, increased defense damage taken
|
||||
}
|
||||
|
||||
MoscowMuleBuff: {
|
||||
DisplayName: Moscow Mule
|
||||
Description: Damage, critical strike chance, and knockback increased, life regen reduced
|
||||
Description: Increased knockback, reduced piercing weapon effectiveness
|
||||
}
|
||||
|
||||
OldFashionedBuff: {
|
||||
@@ -66,32 +63,31 @@ OldFashionedBuff: {
|
||||
|
||||
RedWineBuff: {
|
||||
DisplayName: Red Wine
|
||||
Description: Life regen reduced
|
||||
}
|
||||
Description: Increased vertical speed, reduced flight time
|
||||
|
||||
RumBuff: {
|
||||
DisplayName: Rum
|
||||
Description: Movement speed and life regen increased, defense reduced
|
||||
Description: Increased non-minion summon damage, decreased minion damage
|
||||
}
|
||||
|
||||
ScrewdriverBuff: {
|
||||
DisplayName: Screwdriver
|
||||
Description: Piercing projectile damage increased, life regen reduced
|
||||
Description: Improved building ability, reduced damage
|
||||
}
|
||||
|
||||
StarBeamRyeBuff: {
|
||||
DisplayName: Star Beam Rye
|
||||
Description: Max mana and magic damage increased. Defense, mana usage, and life regen reduced
|
||||
Description: Increased magic damage, reduced mana regeneration
|
||||
}
|
||||
|
||||
TequilaBuff: {
|
||||
DisplayName: Tequila
|
||||
Description: Critical strike chance, defense, and knockback increased during daytime, life regen reduced
|
||||
Description: Increased electric debuff damage, reduced cold debuff damage
|
||||
}
|
||||
|
||||
TequilaSunriseBuff: {
|
||||
DisplayName: Tequila Sunrise
|
||||
Description: Critical strike chance, defense, and knockback increased during daytime, life regen reduced
|
||||
Description: Increased regeneration, increased damage taken from debuffs
|
||||
}
|
||||
|
||||
Trippy: {
|
||||
@@ -101,17 +97,17 @@ Trippy: {
|
||||
|
||||
VodkaBuff: {
|
||||
DisplayName: Vodka
|
||||
Description: Damage and critical strike chance increased, defense and life regen reduced
|
||||
Description: Increased typeless debuff damage, reduced other debuff damage
|
||||
}
|
||||
|
||||
WhiskeyBuff: {
|
||||
DisplayName: Whiskey
|
||||
Description: Damage, critical strike chance, and knockback increased, defense reduced
|
||||
Description: Increased damage when swapping weapons
|
||||
}
|
||||
|
||||
WhiteWineBuff: {
|
||||
DisplayName: White Wine
|
||||
Description: Magic damage increased, life regen and defense reduced
|
||||
Description: Regenerate flight time when near enemies, reduced flight time
|
||||
}
|
||||
|
||||
// Cooldowns
|
||||
@@ -1653,6 +1649,11 @@ PopoNoselessBuff: {
|
||||
Description: Your nose has been stolen!
|
||||
}
|
||||
|
||||
ManhattanBuff: {
|
||||
DisplayName: Manhattan
|
||||
Description: Cold debuff damage increased, water debuff damage reduced
|
||||
}
|
||||
|
||||
Daybroken: {
|
||||
DisplayName: Daybroken
|
||||
ItemTooltip: Heat - 100 DPS
|
||||
|
||||
@@ -172,8 +172,8 @@ BloodyMary: {
|
||||
DisplayName: Bloody Mary
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased damage and movement speed during a Blood Moon
|
||||
Reduces life regen by {1} HP/s and defense by {2}%
|
||||
Increased enemy spawn rates by 7x
|
||||
Greatly reduced piercing weapon effectiveness
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -182,8 +182,8 @@ CaribbeanRum: {
|
||||
DisplayName: Caribbean Rum
|
||||
Tooltip:
|
||||
'''
|
||||
Increases life regen by {0} HP/s, movement speed by {1}%
|
||||
Makes you floaty and reduces defense by {2}%
|
||||
Increases move speed by {0}%
|
||||
Reduces your gravity by {1}%
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -192,8 +192,8 @@ CinnamonRoll: {
|
||||
DisplayName: Cinnamon Roll
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies all fire-based debuff damage by {0}x and increases mana regeneration
|
||||
Reduces defense by {1}%
|
||||
Greatly increased dash speed
|
||||
Greatly reduced dash distance
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -202,8 +202,7 @@ PurpleHaze: {
|
||||
DisplayName: Purple Haze
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased damage, but lowers defense by {1}%
|
||||
Increases immune time after being struck
|
||||
For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}%
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -223,9 +222,8 @@ EvergreenGin: {
|
||||
DisplayName: Evergreen Gin
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies all sickness and water-related debuff damage by {0}x
|
||||
Reduces life regen by {1} HP/s
|
||||
{$Common.AlcoholWarning}
|
||||
{0}% increased Water and Sickness debuff damage
|
||||
{1}% decreased Electric and Heat debuff damage
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -233,8 +231,8 @@ Fireball: {
|
||||
DisplayName: Fireball
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies all fire-based debuff damage by {0}x
|
||||
Reduces life regen by {1} HP/s
|
||||
{0}% increased Heat debuff damage
|
||||
{1}% decreased Sickness debuff damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -243,7 +241,19 @@ GrapeBeer: {
|
||||
DisplayName: Grape Beer
|
||||
Tooltip:
|
||||
'''
|
||||
Reduces defense by {0}% for {1} seconds
|
||||
Bullets, Arrows, Darts, and Rockets gain homing
|
||||
If many are fired at the same time, this only applies to five of them
|
||||
{0}% reduced critical strike damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
|
||||
Manhattan: {
|
||||
DisplayName: Manhattan
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased Cold debuff damage
|
||||
{1}% decreased Water debuff damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -252,10 +262,9 @@ Margarita: {
|
||||
DisplayName: Margarita
|
||||
Tooltip:
|
||||
'''
|
||||
Halves the duration of most harmful debuffs
|
||||
Reduces defense by {0}% and life regen by {1} HP/s
|
||||
Halves duration of harmful debuffs you recieve
|
||||
Reduces damage of debuffs you inflict by {0}%
|
||||
{$Common.AlcoholWarning}
|
||||
{$CommonItemTooltip.MinuteDuration@2}
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -263,8 +272,9 @@ Moonshine: {
|
||||
DisplayName: Moonshine
|
||||
Tooltip:
|
||||
'''
|
||||
Increases defense by {0} and damage reduction by {1}%
|
||||
Reduces life regen by {2} HP/s
|
||||
Increases maximum health by {0}%
|
||||
Attacks always take at least half your defense worth of defense damage
|
||||
Defense damage takes twice as long to recover
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -273,8 +283,8 @@ MoscowMule: {
|
||||
DisplayName: Moscow Mule
|
||||
Tooltip:
|
||||
'''
|
||||
Increases damage by {0}%, knockback by {1}% and critical strike chance by {2}%
|
||||
Reduces life regen by {3} HP/s
|
||||
{0}% increased knockback, all attacks infict heavy knockback
|
||||
Reduces the effectiveness of piercing weapons
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -293,8 +303,8 @@ OldFashioned: {
|
||||
DisplayName: Old Fashioned
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies most non-weapon, non-debuff damage by {0}x
|
||||
Multiplies all weapon damage by {1}x
|
||||
{0}% increase to most non-weapon, non-debuff damage
|
||||
{1}% decreased weapon damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -303,7 +313,8 @@ RedWine: {
|
||||
DisplayName: Red Wine
|
||||
Tooltip:
|
||||
'''
|
||||
Reduces life regen by {0} HP/s for {1} seconds
|
||||
{0}% increased vertical speed
|
||||
{1}% reduced flight time
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -312,8 +323,8 @@ Rum: {
|
||||
DisplayName: Rum
|
||||
Tooltip:
|
||||
'''
|
||||
Increases life regen by {0} HP/s and movement speed by {1}%
|
||||
Reduces defense by {2}%
|
||||
{0}% increased non-minion Summon damage
|
||||
{1}% decreased minion damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -322,8 +333,8 @@ Screwdriver: {
|
||||
DisplayName: Screwdriver
|
||||
Tooltip:
|
||||
'''
|
||||
Multiplies piercing projectile damage by {0}x
|
||||
Reduces life regen by {1} HP/s
|
||||
Greatly increased tile and wall placement range and speed
|
||||
Greatly reduceed damage dealt
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -332,9 +343,10 @@ StarBeamRye: {
|
||||
DisplayName: Star Beam Rye
|
||||
Tooltip:
|
||||
'''
|
||||
Increases max mana by {0}, magic damage by {1}%,
|
||||
and reduces mana usage by {2}%
|
||||
Reduces defense by {3}% and life regen by {4} HP/s
|
||||
Disabled natural mana regeneration
|
||||
Mana regenerates at a fixed rate, even while using an item
|
||||
Magic weapons deal increased damage based on how quickly they consume mana
|
||||
This does not work while inflicted with Mana Sickness
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -343,8 +355,8 @@ Tequila: {
|
||||
DisplayName: Tequila
|
||||
Tooltip:
|
||||
'''
|
||||
Increases knockback by {0}%, crit chance by {1}% and defense by {2} during daytime
|
||||
Reduces life regen by {3} HP/s
|
||||
{0}% increased Electric debuff damage
|
||||
{1}% decreased Cold debuff damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -353,8 +365,8 @@ TequilaSunrise: {
|
||||
DisplayName: Tequila Sunrise
|
||||
Tooltip:
|
||||
'''
|
||||
Increases knockback by {0}%, crit chance by {1}% and defense by {2} during daytime
|
||||
Reduces life regen by {3} HP/s
|
||||
Greatly increases natural regeneration after suffering a damaging debuff
|
||||
{0}% increased damage taken from debuffs
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -363,8 +375,8 @@ Vodka: {
|
||||
DisplayName: Vodka
|
||||
Tooltip:
|
||||
'''
|
||||
Increases damage by {0}% and critical strike chance by {1}%
|
||||
Reduces life regen by {2} HP/s and defense by {3}%
|
||||
{0}% increased Typeless debuff damage
|
||||
{1}% decreased other debuff damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -373,8 +385,12 @@ Whiskey: {
|
||||
DisplayName: Whiskey
|
||||
Tooltip:
|
||||
'''
|
||||
Increases damage by {0}%, knockback by {1}% and critical strike chance by {2}%
|
||||
Reduces defense by {3}%
|
||||
Provides between {0}% and {1}% damage to the held weapon's class
|
||||
Each class tracks this boost individually
|
||||
This boost lowers the longer you hold weapons of the same class
|
||||
It takes {2} seconds for the damage to fully decay
|
||||
This boost recharges when holding weapons of a different class
|
||||
It takes {3} seconds for the damage to fully recharge
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -383,8 +399,8 @@ WhiteWine: {
|
||||
DisplayName: White Wine
|
||||
Tooltip:
|
||||
'''
|
||||
Increases magic damage by {0}%
|
||||
Reduces defense by {1}% and life regen by {2} HP/s
|
||||
You regain flight time the closer you are to an enemy
|
||||
{0}% reduced flight time
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ EditedTooltip: {
|
||||
ArcheryPotion: 5% increased arrow damage and 20% increased arrow speed
|
||||
AleSake:
|
||||
'''
|
||||
Increases melee damage by 10% and reduces defense by 5%
|
||||
Increases melee weapon scale by 15%, but decreases melee speed by 10%
|
||||
Counts as an alcohol for Alcohol Poisoning
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
|
||||
@@ -4446,6 +4446,11 @@ namespace CalamityMod.NPCs
|
||||
spawnRate = (int)(spawnRate * 0.25); // 4x spawn rate
|
||||
maxSpawns = (int)(maxSpawns * 4f);
|
||||
}
|
||||
if (player.Calamity().bloodyMary)
|
||||
{
|
||||
spawnRate = (int)(spawnRate * 0.142); // ~7x spawn rate
|
||||
maxSpawns = (int)(maxSpawns * 5f); // Only 5x the cap, however
|
||||
}
|
||||
|
||||
// Reductions
|
||||
if (player.Calamity().tranquilityCandle)
|
||||
|
||||
@@ -13,10 +13,10 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
public sealed class PierceResistNPC : GlobalNPC
|
||||
{
|
||||
private static HashSet<int> exemptProjectiles;
|
||||
private static HashSet<int> pierceResistNPC;
|
||||
private static HashSet<int> singleHitboxNPC;
|
||||
private static Dictionary<int, bool> singleHitboxExemptProjectiles;
|
||||
internal static HashSet<int> exemptProjectiles;
|
||||
internal static HashSet<int> pierceResistNPC;
|
||||
internal static HashSet<int> singleHitboxNPC;
|
||||
internal static Dictionary<int, bool> singleHitboxExemptProjectiles;
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
|
||||
@@ -190,6 +190,17 @@ namespace CalamityMod.Projectiles
|
||||
/// </summary>
|
||||
public float conditionalHomingRange = 0f;
|
||||
|
||||
/// <summary>
|
||||
/// Causes a projectile to use both Static and Local iframes when set
|
||||
/// </summary>
|
||||
public bool hybridIframes = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this proj was spawned with grape beer on
|
||||
/// this does NOT mean it has grape beer homing!
|
||||
/// </summary>
|
||||
public bool grapeBeer = false;
|
||||
|
||||
/// <summary>
|
||||
/// Variable used for storing the actual amount of extra updates a projectile has.<br/>
|
||||
/// This is NOT set automatically, and must be set whenever it is needed.
|
||||
@@ -308,16 +319,50 @@ namespace CalamityMod.Projectiles
|
||||
projectile.Calamity().supercritHits = -1;
|
||||
}
|
||||
|
||||
void ApplyGrapeBeer()
|
||||
{
|
||||
|
||||
conditionalHomingRange = 600;
|
||||
if (projectile.timeLeft > 300 * projectile.MaxUpdates)
|
||||
projectile.timeLeft = 300 * projectile.MaxUpdates;
|
||||
hybridIframes = true;
|
||||
projectile.localNPCHitCooldown = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
Main.player[projectile.owner].Calamity().grapeBeerTimer++;
|
||||
}
|
||||
if (source is EntitySource_ItemUse_WithAmmo {Item: Item item})
|
||||
{
|
||||
if (source is EntitySource_Parent { Entity: Player player })
|
||||
{
|
||||
if (player.Calamity().grapeBeer && (item.useAmmo == AmmoID.Bullet || item.useAmmo == AmmoID.Arrow || item.useAmmo == AmmoID.Dart || item.useAmmo == AmmoID.Rocket))
|
||||
{
|
||||
if (player.heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && player.Calamity().grapeBeerTimer < 5)
|
||||
ApplyGrapeBeer();
|
||||
else
|
||||
grapeBeer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (source is EntitySource_Parent { Entity: NPC npc })
|
||||
{
|
||||
if (!npc.friendly)
|
||||
ParentNPCIndex = npc.whoAmI;
|
||||
}
|
||||
//
|
||||
// SPECIFIC PROJECTILE BALANCE CHANGES
|
||||
// SPECIFIC PROJECTILE BALANCE CHANGES (and Grape Beer homing)
|
||||
//
|
||||
else if (source is EntitySource_Parent { Entity: Projectile parent })
|
||||
{
|
||||
//Grape Beer homing
|
||||
if (parent.Calamity().grapeBeer)
|
||||
{
|
||||
if (Main.player[projectile.owner].heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && Main.player[projectile.owner].Calamity().grapeBeerTimer < 5)
|
||||
ApplyGrapeBeer();
|
||||
else
|
||||
grapeBeer = true;
|
||||
}
|
||||
|
||||
// Nerf Crystal bullet shard damage by 45%
|
||||
// Vanilla crystal shards deal 50% of the bullet's damage which is absurd, this nerfs them to 27.5%
|
||||
if (parent.type == ProjectileID.CrystalBullet && projectile.type == ProjectileID.CrystalShard)
|
||||
@@ -376,17 +421,24 @@ namespace CalamityMod.Projectiles
|
||||
#region Pre AI
|
||||
public override bool PreAI(Projectile projectile)
|
||||
{
|
||||
///Apply Hybrid iframes
|
||||
if (hybridIframes)
|
||||
{
|
||||
projectile.usesIDStaticNPCImmunity = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
}
|
||||
|
||||
if (projectile.bobber && projectile.type != ModContent.ProjectileType<VictideBobber>() && RunFishingMinigames(projectile))
|
||||
return false;
|
||||
//Reset the Homing Target immediately before AI can re-set it on applicable projectiles
|
||||
HomingTarget = -1;
|
||||
#region Vanilla Summons AI Changes
|
||||
|
||||
//
|
||||
// MINION AI CHANGES:
|
||||
//
|
||||
//
|
||||
// MINION AI CHANGES:
|
||||
//
|
||||
|
||||
// Hornet Staff's minion changes.
|
||||
// Hornet Staff's minion changes.
|
||||
if (projectile.type == ProjectileID.Hornet)
|
||||
return HornetMinionAI.DoHornetMinionAI(projectile);
|
||||
|
||||
@@ -4446,6 +4498,22 @@ namespace CalamityMod.Projectiles
|
||||
if (modPlayer.ivDrip && buffedByOldFashioned.HasValue)
|
||||
modifiers.SourceDamage *= buffedByOldFashioned.Value ? IVDripOnTheRocks.DamageBoostMultiplier : IVDripOnTheRocks.DamageReductionMultiplier;
|
||||
|
||||
if (modPlayer.rum && projectile.DamageType.CountsAsClass(DamageClass.Summon))
|
||||
{
|
||||
if (projectile.minion || ProjectileID.Sets.MinionShot[projectile.type])
|
||||
{
|
||||
modifiers.SourceDamage *= Rum.MinionBoost;
|
||||
}
|
||||
else
|
||||
modifiers.SourceDamage *= Rum.NonMinionBoost;
|
||||
}
|
||||
if (modPlayer.moscowMule || modPlayer.bloodyMary)
|
||||
{
|
||||
if (projectile.DamageType == DamageClass.Summon || (PierceResistNPC.exemptProjectiles.Contains(projectile.type) || (PierceResistNPC.singleHitboxExemptProjectiles.ContainsKey(projectile.type) && PierceResistNPC.singleHitboxExemptProjectiles[projectile.type])))
|
||||
{
|
||||
modifiers.SourceDamage *= ((modPlayer.moscowMule ? 0.7f : 1f) * (modPlayer.bloodyMary ? 0.33f : 1f));
|
||||
}
|
||||
}
|
||||
if (projectile.type == ProjectileID.JoustingLance || projectile.type == ProjectileID.HallowJoustingLance || projectile.type == ProjectileID.ShadowJoustingLance)
|
||||
{
|
||||
// The vanilla damage Jousting Lance multiplier is as follows. Calamity overrides this with a new formula
|
||||
@@ -4567,6 +4635,12 @@ namespace CalamityMod.Projectiles
|
||||
#region On Hit NPC
|
||||
public override void OnHitNPC(Projectile projectile, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
//Manage Hybrid iframes
|
||||
if (hybridIframes && (projectile.penetrate != 1 || projectile.appliesImmunityTimeOnSingleHits))
|
||||
{
|
||||
projectile.localNPCImmunity[target.whoAmI] = projectile.localNPCHitCooldown;
|
||||
Projectile.perIDStaticNPCImmunity[projectile.type][target.whoAmI] = Main.GameUpdateCount + (uint)projectile.idStaticNPCHitCooldown;
|
||||
}
|
||||
if (BloodstoneOrbValue > 0)
|
||||
Projectile.NewProjectile(projectile.GetSource_OnHit(target), projectile.Center, projectile.velocity.SafeNormalize(Vector2.Zero) * Math.Min(((projectile.velocity.Length() * projectile.MaxUpdates) / 4f), 4f) * Main.rand.NextFloat(0.75f, 1.25f), ModContent.ProjectileType<BloodstoneHealOrb>(), BloodstoneOrbValue, 0f, Main.player[projectile.owner].whoAmI);
|
||||
//Mana Burn
|
||||
@@ -4697,6 +4771,9 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
public override bool? CanHitNPC(Projectile projectile, NPC target)
|
||||
{
|
||||
|
||||
if (hybridIframes && (projectile.localNPCImmunity[target.whoAmI] != 0 || Projectile.perIDStaticNPCImmunity[projectile.type][target.whoAmI] > Main.GameUpdateCount))
|
||||
return false;
|
||||
if (target.Calamity().IsArmored() && HomingTarget > -1 && HomingTarget != target.whoAmI)
|
||||
return false;
|
||||
return null;
|
||||
|
||||
@@ -47,6 +47,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
//This is so Grape Beer works properly with them
|
||||
if (targeted != null && Projectile.localNPCImmunity[targeted.whoAmI] == -1)
|
||||
Projectile.localNPCImmunity[targeted.whoAmI] = 15 * Projectile.extraUpdates;
|
||||
float rate = Main.GlobalTimeWrappedHourly * 5;
|
||||
List<Color> eColors = new List<Color>()
|
||||
{
|
||||
|
||||
@@ -469,15 +469,6 @@ namespace CalamityMod
|
||||
// This stacks with the above Deific Amulet effect
|
||||
if (modPlayer.rampartOfDeities && hurtInfo.Damage > 200)
|
||||
extraIFrames += 30;
|
||||
|
||||
if (modPlayer.purpleHaze)
|
||||
{
|
||||
if (hurtInfo.Damage == 1)
|
||||
extraIFrames += 5;
|
||||
else
|
||||
extraIFrames += 10;
|
||||
}
|
||||
|
||||
return extraIFrames;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user