From e53c8da192da899893ff73b71dcef316428c699f Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 11 Jun 2022 21:05:43 -0500 Subject: [PATCH] Removed Revivify Potions --- Buffs/Potions/Revivify.cs | 22 ---------- Buffs/Potions/Revivify.png | Bin 449 -> 0 bytes CalPlayer/CalamityPlayer.cs | 10 ----- CalPlayer/CalamityPlayerDrawEffects.cs | 10 ----- CalPlayer/CalamityPlayerMiscEffects.cs | 13 +----- Items/Potions/RevivifyPotion.cs | 55 ------------------------- Items/Potions/RevivifyPotion.png | Bin 725 -> 0 bytes 7 files changed, 2 insertions(+), 108 deletions(-) delete mode 100644 Buffs/Potions/Revivify.cs delete mode 100644 Buffs/Potions/Revivify.png delete mode 100644 Items/Potions/RevivifyPotion.cs delete mode 100644 Items/Potions/RevivifyPotion.png diff --git a/Buffs/Potions/Revivify.cs b/Buffs/Potions/Revivify.cs deleted file mode 100644 index ac0f5d1b32..0000000000 --- a/Buffs/Potions/Revivify.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Buffs.Potions -{ - public class Revivify : ModBuff - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Revivify"); - Description.SetDefault("You are healed by a fraction of the damage you take"); - Main.debuff[Type] = false; - Main.pvpBuff[Type] = true; - Main.buffNoSave[Type] = false; - } - - public override void Update(Player player, ref int buffIndex) - { - player.Calamity().revivify = true; - } - } -} diff --git a/Buffs/Potions/Revivify.png b/Buffs/Potions/Revivify.png deleted file mode 100644 index 81f011fe865074605d370c781fddb05eb5c2b09a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 449 zcmV;y0Y3hTP)!A-+Z5QJfi6FsCC zPAP$wxP%U9gCn%SjZ-8VK%#^Yu%i#z6Pp(fiI$cA!`rtzJ6g+jH;Vm*If}WWbMg~I z;^pIW;9+~<>VEqx>i$}9j=6OVjKzA^PrC_uzq)&!koT?rdIqdYLp~B1_`KT>h$SO* z=$cd403i^7JOgOeqpkr31aICBjGKGpGtx-b=Y3rR85%{NGg|lm$AHyc-)<)4N`-T) zUcR0I7g?CEmHd)$tKPY;0i+PzuOHtBQh2VX$35y9@QGadnWPW{kk9(mTl^H4G2pkU zAq5Sx`cn;@{5vjVAO#HY!Sebo8PP|lz5xx;K+qtAg)`LYqm%me4CKnK3Isg@SbaW% r?5Ar^DFb4hyaY!vS9DIkqwBr^=MF5_#pF}(00000NkvXXu0mjf6V13a diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index bca5b4e501..4f50ed89bf 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -830,7 +830,6 @@ namespace CalamityMod.CalPlayer public bool shine = false; public bool anechoicCoating = false; public bool enraged = false; - public bool revivify = false; public bool permafrostsConcoction = false; public bool armorCrumbling = false; public bool armorShattering = false; @@ -1884,7 +1883,6 @@ namespace CalamityMod.CalPlayer wither = false; ManaBurn = false; - revivify = false; trinketOfChiBuff = false; corrEffigy = false; crimEffigy = false; @@ -2388,7 +2386,6 @@ namespace CalamityMod.CalPlayer polarisBoostThree = false; bloodfinBoost = false; bloodfinTimer = 0; - revivify = false; healCounter = 300; danceOfLightCharge = 0; bloodPactBoost = false; @@ -6106,13 +6103,6 @@ namespace CalamityMod.CalPlayer CalamityNetcode.NewNPC_ClientSide(spawnPosition, ModContent.NPCType(), Player); } - if (revivify) - { - int healAmt = (int)(damage / 15D); - Player.statLife += healAmt; - Player.HealEffect(healAmt); - } - if (daedalusAbsorb && Main.rand.NextBool(10)) { int healAmt = (int)(damage / 2D); diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index ed25ebc93a..8e8f971ee4 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -131,16 +131,6 @@ namespace CalamityMod.CalPlayer _ => heartOriginal, }; TextureAssets.Heart = heartOriginal2; - if (calamityPlayer.revivify) - { - if (Main.rand.NextBool(2) && drawInfo.shadow == 0f) - { - int dust = Dust.NewDust(drawInfo.Position - new Vector2(2f), Player.width + 4, Player.height + 4, 91, Player.velocity.X * 0.2f, Player.velocity.Y * 0.2f, 100, default, 1f); - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity.Y -= 0.5f; - drawInfo.DustCache.Add(dust); - } - } if (calamityPlayer.tRegen) { if (Main.rand.NextBool(10) && drawInfo.shadow == 0f) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 4f5eeca19c..4933c1a9b6 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2557,11 +2557,6 @@ namespace CalamityMod.CalPlayer if (Player.ActiveItem().type != ModContent.ItemType()) planarSpeedBoost = 0; } - if (brimlashBusterBoost) - { - if (Player.ActiveItem().type != ModContent.ItemType()) - brimlashBusterBoost = false; - } if (evilSmasherBoost > 0) { if (Player.ActiveItem().type != ModContent.ItemType()) @@ -2579,11 +2574,6 @@ namespace CalamityMod.CalPlayer else searedPanCounter = 0; } - if (animusBoost > 1f) - { - if (Player.ActiveItem().type != ModContent.ItemType()) - animusBoost = 1f; - } // Flight time boosts double flightTimeMult = 1D + @@ -3498,6 +3488,7 @@ namespace CalamityMod.CalPlayer { for (int l = 0; l < Player.MaxBuffs; l++) { + // TODO -- What the FUCK is this conditional chain? int hasBuff = Player.buffType[l]; if ((hasBuff >= BuffID.ObsidianSkin && hasBuff <= BuffID.Gravitation) || hasBuff == BuffID.Tipsy || hasBuff == BuffID.WellFed || hasBuff == BuffID.Honey || hasBuff == BuffID.WeaponImbueVenom || (hasBuff >= BuffID.WeaponImbueCursedFlames && hasBuff <= BuffID.WeaponImbuePoison) || @@ -3508,7 +3499,7 @@ namespace CalamityMod.CalPlayer hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || - hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || + hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs deleted file mode 100644 index 5e2cff69ac..0000000000 --- a/Items/Potions/RevivifyPotion.cs +++ /dev/null @@ -1,55 +0,0 @@ -using CalamityMod.Buffs.Potions; -using CalamityMod.Items.Materials; -using CalamityMod.Items.Fishing.SunkenSeaCatches; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Potions -{ - public class RevivifyPotion : ModItem - { - public override void SetStaticDefaults() - { - SacrificeTotal = 20; - DisplayName.SetDefault("Revivify Potion"); - Tooltip.SetDefault("Causes enemy attacks to heal you for a fraction of their damage"); - } - - public override void SetDefaults() - { - Item.width = 28; - Item.height = 36; - Item.useTurn = true; - Item.maxStack = 30; - Item.rare = ItemRarityID.Orange; - Item.useAnimation = 17; - Item.useTime = 17; - Item.useStyle = ItemUseStyleID.EatFood; - Item.UseSound = SoundID.Item3; - Item.value = Item.buyPrice(0, 2, 0, 0); - Item.rare = ItemRarityID.LightRed; - Item.consumable = true; - Item.buffType = ModContent.BuffType(); - Item.buffTime = CalamityUtils.SecondsToFrames(180f); - } - - public override void AddRecipes() - { - CreateRecipe(5). - AddIngredient(ItemID.HolyWater, 5). - AddIngredient(20). - AddIngredient(ItemID.CrystalShard, 5). - AddIngredient(3). - AddIngredient(). - AddTile(TileID.AlchemyTable). - Register(); - - CreateRecipe(5). - AddIngredient(ItemID.HolyWater, 5). - AddIngredient(100). - AddTile(TileID.AlchemyTable). - Register(); - } - } -} diff --git a/Items/Potions/RevivifyPotion.png b/Items/Potions/RevivifyPotion.png deleted file mode 100644 index a5dd4a9a35836a847c1cd57486146dd73243b607..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 725 zcmV;`0xJE9P)`unm6Cgo%`VUE9xwF(@bK|7V|{-1^MT@2pTfqb z4h8Uf?1}br_&xyNlS#nwGSt|r0E!#gedASJp}I2oZC}Dh>OBB^+W`yU#OO@`aue$S ztR=>5=9U5oHC+Z^XM5F%BXeIpH0o_Pu&My+kLx-O)SLw1T2~VQZ&^12HHP~%FBH}f zvN~R|Fe?-Vekcqy1OfQHSpuN>&QSnXMrI7fZKD^Bjp3e7dwc=F;`F!$uvJV0aQ4Ps z01`2+FnHt~;8T`b;Jop`t%GfRw@?5aPrcS9oAXOEfS*}fiWclQ)AN;)Nx;dnuIEny znCjPxKEAQXxaKcTj~o2nLG5k0NAsj!{qLostfqBG0Z`EO6pY(m_3J^thNZK5pH9RZ*?mvX(A3Xb&-1F)7DvjCbqqK0SHr%)iu ziKYGMo~Ry$(o!qw}I*q47ftOM_CA^dgd{_7fI5qm-m^P|W00000NkvXX Hu0mjfZ9P$|