Removed Revivify Potions

This commit is contained in:
Dominic committed 2022-06-11 21:05:43 -05:00
1 parent 9e48062ba5
commit e53c8da192
7 files changed
+2 -108

No files matched your search

-22
View File
@@ -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;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

-10
View File
@@ -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<DemonPortal>(), 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);
-10
View File
@@ -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)
+2 -11
View File
@@ -2557,11 +2557,6 @@ namespace CalamityMod.CalPlayer
if (Player.ActiveItem().type != ModContent.ItemType<PridefulHuntersPlanarRipper>())
planarSpeedBoost = 0;
}
if (brimlashBusterBoost)
{
if (Player.ActiveItem().type != ModContent.ItemType<BrimlashBuster>())
brimlashBusterBoost = false;
}
if (evilSmasherBoost > 0)
{
if (Player.ActiveItem().type != ModContent.ItemType<EvilSmasher>())
@@ -2579,11 +2574,6 @@ namespace CalamityMod.CalPlayer
else
searedPanCounter = 0;
}
if (animusBoost > 1f)
{
if (Player.ActiveItem().type != ModContent.ItemType<Animus>())
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<CalciumBuff>() || hasBuff == ModContent.BuffType<CeaselessHunger>() || hasBuff == ModContent.BuffType<DraconicSurgeBuff>() ||
hasBuff == ModContent.BuffType<GravityNormalizerBuff>() || hasBuff == ModContent.BuffType<HolyWrathBuff>() || hasBuff == ModContent.BuffType<Omniscience>() ||
hasBuff == ModContent.BuffType<PenumbraBuff>() || hasBuff == ModContent.BuffType<PhotosynthesisBuff>() || hasBuff == ModContent.BuffType<ProfanedRageBuff>() ||
hasBuff == ModContent.BuffType<Revivify>() || hasBuff == ModContent.BuffType<ShadowBuff>() || hasBuff == ModContent.BuffType<Soaring>() ||
hasBuff == ModContent.BuffType<ShadowBuff>() || hasBuff == ModContent.BuffType<Soaring>() ||
hasBuff == ModContent.BuffType<SulphurskinBuff>() || hasBuff == ModContent.BuffType<TeslaBuff>() || hasBuff == ModContent.BuffType<TitanScale>() ||
hasBuff == ModContent.BuffType<TriumphBuff>() || hasBuff == ModContent.BuffType<YharimPower>() || hasBuff == ModContent.BuffType<Zen>() ||
hasBuff == ModContent.BuffType<Zerg>() || hasBuff == ModContent.BuffType<BloodyMaryBuff>() || hasBuff == ModContent.BuffType<CaribbeanRumBuff>() ||
-55
View File
@@ -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<Revivify>();
Item.buffTime = CalamityUtils.SecondsToFrames(180f);
}
public override void AddRecipes()
{
CreateRecipe(5).
AddIngredient(ItemID.HolyWater, 5).
AddIngredient<Stardust>(20).
AddIngredient(ItemID.CrystalShard, 5).
AddIngredient<EssenceofSunlight>(3).
AddIngredient<ScarredAngelfish>().
AddTile(TileID.AlchemyTable).
Register();
CreateRecipe(5).
AddIngredient(ItemID.HolyWater, 5).
AddIngredient<BloodOrb>(100).
AddTile(TileID.AlchemyTable).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B