Renamed Cadance buff and changed tooltips appropriately
This commit is contained in:
1 parent
b87af113a3
commit
41f72ddeb9
7 files changed
+10
-9
No files matched your search
@@ -1,13 +1,13 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Potions
|
||||
{
|
||||
public class Cadence : ModBuff
|
||||
public class CadancesGrace : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cadance");
|
||||
DisplayName.SetDefault("Cadance's Grace");
|
||||
Description.SetDefault("Your heart is pure");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 560 B After Width: | Height: | Size: 560 B |
@@ -3489,7 +3489,7 @@ namespace CalamityMod.CalPlayer
|
||||
(hasBuff >= BuffID.Mining && hasBuff <= BuffID.Wrath) || (hasBuff >= BuffID.Lovestruck && hasBuff <= BuffID.Warmth) || hasBuff == BuffID.SugarRush ||
|
||||
hasBuff == ModContent.BuffType<AbyssalWeapon>() || hasBuff == ModContent.BuffType<AnechoicCoatingBuff>() || hasBuff == ModContent.BuffType<ArmorCrumbling>() ||
|
||||
hasBuff == ModContent.BuffType<ArmorShattering>() || hasBuff == ModContent.BuffType<AstralInjectionBuff>() || hasBuff == ModContent.BuffType<BaguetteBuff>() ||
|
||||
hasBuff == ModContent.BuffType<BloodfinBoost>() || hasBuff == ModContent.BuffType<BoundingBuff>() || hasBuff == ModContent.BuffType<Cadence>() ||
|
||||
hasBuff == ModContent.BuffType<BloodfinBoost>() || hasBuff == ModContent.BuffType<BoundingBuff>() || hasBuff == ModContent.BuffType<CadancesGrace>() ||
|
||||
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>() ||
|
||||
|
||||
@@ -849,7 +849,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(ModContent.BuffType<Cadence>()) > -1)
|
||||
if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(ModContent.BuffType<CadancesGrace>()) > -1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -6,13 +6,14 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Potions
|
||||
{
|
||||
public class CadencePotion : ModItem
|
||||
[LegacyName("CadencePotion")
|
||||
public class CadancePotion : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 20;
|
||||
DisplayName.SetDefault("Cadance Potion");
|
||||
Tooltip.SetDefault("Gives the cadance buff which increases life regeneration and heart pickup range\n" +
|
||||
Tooltip.SetDefault("Grants Cadance's Grace, which increases life regeneration and heart pickup range\n" +
|
||||
"Increases max life by 25%\n" +
|
||||
"While this potion's buff is active, Regeneration Potion and Lifeforce Potion buffs are disabled");
|
||||
}
|
||||
@@ -30,7 +31,7 @@ namespace CalamityMod.Items.Potions
|
||||
Item.UseSound = SoundID.Item3;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.consumable = true;
|
||||
Item.buffType = ModContent.BuffType<Cadence>();
|
||||
Item.buffType = ModContent.BuffType<CadancesGrace>();
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
|
||||
Item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 746 B |
@@ -292,7 +292,7 @@ namespace CalamityMod.World.Planets
|
||||
ItemID.ManaRegenerationPotion,
|
||||
ItemID.HeartreachPotion,
|
||||
ModContent.ItemType<PhotosynthesisPotion>(),
|
||||
ModContent.ItemType<CadencePotion>()
|
||||
ModContent.ItemType<CadancePotion>()
|
||||
};
|
||||
|
||||
private int[] BarLootHoney = new int[]
|
||||
|
||||
Reference in new issue
Block a user