The name you always thought it had
Renamed Regenator to Regenerator
This commit is contained in:
1 parent
570c9cf277
commit
463f045120
7 files changed
+19
-18
No files matched your search
@@ -719,8 +719,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool gladiatorSword = false;
|
||||
public int gladiatorTimer = 0;
|
||||
public bool unstableGraniteCore = false;
|
||||
public bool regenator = false;
|
||||
public float regenatorDamage = 0;
|
||||
public bool regenerator = false;
|
||||
public float regeneratorDamage = 0;
|
||||
public bool theBee = false;
|
||||
public bool arcFlashRing = false;
|
||||
public bool arcFlashRingVisual = false;
|
||||
@@ -2172,7 +2172,7 @@ namespace CalamityMod.CalPlayer
|
||||
trinketOfChi = false;
|
||||
gladiatorSword = false;
|
||||
unstableGraniteCore = false;
|
||||
regenator = false;
|
||||
regenerator = false;
|
||||
deepDiver = false;
|
||||
theBee = false;
|
||||
arcFlashRing = false;
|
||||
|
||||
@@ -2304,8 +2304,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (RageEnabled)
|
||||
rageCombatFrames = BalancingConstants.RageCombatDelayTime;
|
||||
|
||||
// Regenator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
|
||||
if (regenator && false)
|
||||
// Regenerator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
|
||||
if (regenerator && false)
|
||||
{
|
||||
// Projectile damage and count is based on source damage of the hit
|
||||
float hitPower = (hurtInfo.SourceDamage / (Player.statLifeMax2 * 0.5f));
|
||||
|
||||
@@ -766,7 +766,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
if (regenator) // Gives special regen of it's own, but disables all regular life regen
|
||||
if (regenerator) // Gives special regen of it's own, but disables all regular life regen
|
||||
{
|
||||
if (Player.miscCounter % 7 == 0 && Player.statLife < (int)(Player.statLifeMax2 * 0.5f))
|
||||
Player.HealPlayer(1, HealTextType.None);
|
||||
@@ -777,7 +777,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeRegenTime += 10;
|
||||
}
|
||||
else
|
||||
regenatorDamage = 0;
|
||||
regeneratorDamage = 0;
|
||||
|
||||
if (toxicHeart) // Since it needs to know your life regen, it must be placed here
|
||||
{
|
||||
@@ -832,8 +832,8 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Regenator trades all positive regen for damage, and caps your health gain at 50%
|
||||
if (regenator)
|
||||
// Regenerator trades all positive regen for damage, and caps your health gain at 50%
|
||||
if (regenerator)
|
||||
{
|
||||
int finalRegen = Player.lifeRegen + (int)Math.Round(regen * (Player.statLifeMax2 / 400f * 0.85f + 0.15f));
|
||||
finalRegen = (int)Math.Max(finalRegen, 0);
|
||||
@@ -843,8 +843,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.palladiumRegen)
|
||||
finalRegen += 4;
|
||||
|
||||
regenatorDamage = (finalRegen * 1.75f) * 0.01f;
|
||||
Player.GetDamage<GenericDamageClass>() += regenatorDamage;
|
||||
regeneratorDamage = (finalRegen * 1.75f) * 0.01f;
|
||||
Player.GetDamage<GenericDamageClass>() += regeneratorDamage;
|
||||
|
||||
if (Player.lifeRegen > 0)
|
||||
Player.lifeRegen = 0;
|
||||
|
||||
@@ -9,7 +9,8 @@ using System;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Regenator : ModItem, ILocalizedModType
|
||||
[LegacyName("Regenator")]
|
||||
public class Regenerator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
@@ -24,14 +25,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.regenator = true;
|
||||
modPlayer.regenerator = true;
|
||||
player.longInvince = true; // Gives better iframes because god help you if you end up getting hit twice
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regenatorDamage).ToPercent());
|
||||
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regeneratorDamage).ToPercent());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
// Equipment
|
||||
itemLoot.Add(ModContent.ItemType<ChaosStone>(), DropHelper.BagWeaponDropRateFraction);
|
||||
itemLoot.Add(ModContent.ItemType<VoidofCalamity>());
|
||||
itemLoot.Add(ModContent.ItemType<Regenator>(), 10);
|
||||
itemLoot.Add(ModContent.ItemType<Regenerator>(), 10);
|
||||
itemLoot.AddRevBagAccessories();
|
||||
|
||||
// Vanity
|
||||
|
||||
@@ -1466,8 +1466,8 @@ ReaperToothNecklace: {
|
||||
'''
|
||||
}
|
||||
|
||||
Regenator: {
|
||||
DisplayName: Regenator
|
||||
Regenerator: {
|
||||
DisplayName: Regenerator
|
||||
Tooltip:
|
||||
'''
|
||||
Your health cannot exceed 50% of its maximum
|
||||
|
||||
@@ -927,7 +927,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
// Equipment
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<VoidofCalamity>()));
|
||||
normalOnly.Add(ModContent.ItemType<ChaosStone>(), DropHelper.NormalWeaponDropRateFraction);
|
||||
normalOnly.Add(ModContent.ItemType<Regenator>(), 10);
|
||||
normalOnly.Add(ModContent.ItemType<Regenerator>(), 10);
|
||||
|
||||
// Materials
|
||||
normalOnly.Add(ModContent.ItemType<EssenceofHavoc>(), 1, 8, 10);
|
||||
|
||||
Reference in new issue
Block a user