diff --git a/Buffs/Alcohol/ManhattanBuff.cs b/Buffs/Alcohol/ManhattanBuff.cs new file mode 100644 index 0000000000..2a8c160cd8 --- /dev/null +++ b/Buffs/Alcohol/ManhattanBuff.cs @@ -0,0 +1,24 @@ +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) + { + player.Calamity().ColdDebuffMultiplier += Manhattan.DebuffBoost; + player.Calamity().WaterDebuffMultiplier -= Manhattan.DebuffLoss; + } + } +} diff --git a/Buffs/Alcohol/ManhattanBuff.png b/Buffs/Alcohol/ManhattanBuff.png new file mode 100644 index 0000000000..8d3c026da5 Binary files /dev/null and b/Buffs/Alcohol/ManhattanBuff.png differ diff --git a/Buffs/Alcohol/ScrewdriverBuff.cs b/Buffs/Alcohol/ScrewdriverBuff.cs index e0e58f9ecf..663626f5b2 100644 --- a/Buffs/Alcohol/ScrewdriverBuff.cs +++ b/Buffs/Alcohol/ScrewdriverBuff.cs @@ -18,8 +18,10 @@ namespace CalamityMod.Buffs.Alcohol public override void Update(Player player, ref int buffIndex) { player.Calamity().screwdriver = true; - player.Calamity().ColdDebuffMultiplier += Screwdriver.DebuffBoost; - player.Calamity().WaterDebuffMultiplier -= Screwdriver.DebuffLoss; + player.blockRange += 5; + player.tileSpeed += 1; + player.wallSpeed += 1; + player.GetDamage(DamageClass.Generic) *= 0.75f; } } } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 8a993c03a3..5b9a5ea3a8 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -475,6 +475,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 @@ -3553,12 +3562,6 @@ namespace CalamityMod.CalPlayer Player.moveSpeed += CaribbeanRum.MoveSpeedBoost; } - if (cinnamonRoll) - { - Player.manaRegenDelayBonus += CinnamonRoll.ManaRegenDelayBonus; - Player.manaRegenBonus += CinnamonRoll.ManaRegenBonus; - } - if (starBeamRye) { Player.manaRegenBonus += (int)((Player.statManaMax2/3f + 1) *2f ); diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index 1fa9e4c36f..a296329637 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -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; diff --git a/Items/Potions/Alcohol/Manhattan.cs b/Items/Potions/Alcohol/Manhattan.cs new file mode 100644 index 0000000000..d274d53d16 --- /dev/null +++ b/Items/Potions/Alcohol/Manhattan.cs @@ -0,0 +1,54 @@ +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(), CalamityUtils.MinutesToFrames(5), true); + + Item.value = Item.sellPrice(silver: 40); + Item.rare = ItemRarityID.LightPurple; + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.Ale). + AddIngredient(3). + AddTile(TileID.Kegs). + Register(); + + CreateRecipe(). + AddIngredient(ItemID.BottledWater). + AddIngredient(5). + AddIngredient(). + AddTile(TileID.AlchemyTable). + Register() + .DisableDecraft(); + } + } +} diff --git a/Items/Potions/Alcohol/Manhattan.png b/Items/Potions/Alcohol/Manhattan.png new file mode 100644 index 0000000000..c6226e8ff7 Binary files /dev/null and b/Items/Potions/Alcohol/Manhattan.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 971ac6e917..6cd933228e 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1595,3 +1595,8 @@ PopoNoselessBuff: { DisplayName: Noseless Popo Description: Your nose has been stolen! } + +ManhattanBuff: { + DisplayName: Manhattan Buff + Description: Mods.CalamityMod.Buffs.ManhattanBuff.Description +} diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 3bf6d2d467..6b0258f564 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -183,8 +183,8 @@ CinnamonRoll: { DisplayName: Cinnamon Roll Tooltip: ''' - {0}% increased maximum Mana - {1}% increased mana consumption + Greatly increased dash speed + Greatly reduced dash distance {$Common.AlcoholWarning} ''' } @@ -239,6 +239,16 @@ GrapeBeer: { ''' } +Manhattan: { + DisplayName: Manhattan + Tooltip: + ''' + {0}% increased Cold debuff damage + {1}% decreased Water debuff damage + {$Common.AlcoholWarning} + ''' +} + Margarita: { DisplayName: Margarita Tooltip: @@ -314,8 +324,8 @@ Screwdriver: { DisplayName: Screwdriver Tooltip: ''' - {0}% increased Cold debuff damage - {1}% decreased Water debuff damage + Greatly increased tile and wall placement range and speed + Greatly reduceed damage dealt {$Common.AlcoholWarning} ''' }