1 - Nerfed a lot of jump speed boosts if used with autojump that weren't nerfed before.
2 - Removed cross necklace effect from Yharim's Insignia and Ele Gauntlet. 3 - Reduced Tracer line wing flight time. 4 - Fixed various jump speed tooltips to display proper info. 5 - Nerfed Grand Gelatin jump speed bonus because it was fucking busted before. 6 - Fixed HotE tooltip to not be a fucking stupid bitch. 7 - Buffed Statis' Ninja Belt jump speed bonus from 8 to 12%. 8 - Yharon slows down a shitload more when entering a new phase to prevent funny charge memes.
This commit is contained in:
1 parent
a0503d4a10
commit
451f6ca9cc
19 files changed
+120
-62
No files matched your search
@@ -1227,7 +1227,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.absorber)
|
||||
{
|
||||
player.moveSpeed += 0.06f;
|
||||
player.jumpSpeedBoost += 1.2f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f;
|
||||
player.thorns += 0.5f;
|
||||
player.endurance += 0.05f;
|
||||
|
||||
@@ -2649,7 +2649,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.eGauntlet)
|
||||
{
|
||||
player.longInvince = true;
|
||||
player.kbGlove = true;
|
||||
player.magmaStone = true;
|
||||
player.meleeDamage += 0.15f;
|
||||
@@ -3269,7 +3268,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.yInsignia)
|
||||
{
|
||||
player.longInvince = true;
|
||||
player.meleeDamage += 0.1f;
|
||||
player.lavaMax += 240;
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories
|
||||
Tooltip.SetDefault("Melee attacks and projectiles inflict most debuffs\n" +
|
||||
"15% increased melee speed, damage, and 5% increased melee critical strike chance\n" +
|
||||
"20% increased true melee damage\n" +
|
||||
"Increased invincibility after taking damage\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Increased melee knockback");
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Grand Gelatin");
|
||||
Tooltip.SetDefault("10% increased movement speed\n" +
|
||||
"40% increased jump speed\n" +
|
||||
"24% increased jump speed\n" +
|
||||
"+20 max life and mana\n" +
|
||||
"Standing still boosts life and mana regen");
|
||||
}
|
||||
@@ -29,21 +29,19 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "10" : "40";
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
{
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.5f : 2f;
|
||||
player.statLifeMax2 += 20;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f;
|
||||
player.statLifeMax2 += 20;
|
||||
player.statManaMax2 += 20;
|
||||
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -17,9 +18,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Heart of the Elements");
|
||||
Tooltip.SetDefault("The heart of the world\n" +
|
||||
"Increases max life by 20, life regen by 1, and all damage by 5%\n" +
|
||||
"Increases movement speed by 5% and jump speed by 20%\n" +
|
||||
"Increases damage reduction by 5%\n" +
|
||||
"Increases max life by 20, life regen by 1 and all damage by 5%\n" +
|
||||
"Increases jump speed by 24%\n" +
|
||||
"Increases damage reduction and movement speed by 5%\n" +
|
||||
"Increases max mana by 50 and reduces mana usage by 5%\n" +
|
||||
"You grow flowers on the grass beneath you, chance to grow very random dye plants on grassless dirt\n" +
|
||||
"Summons all elementals to protect you\n" +
|
||||
@@ -39,7 +40,36 @@ namespace CalamityMod.Items.Accessories
|
||||
item.Calamity().customRarity = CalamityRarity.Rainbow;
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
bool hideVisual = false;
|
||||
for (int i = 3; i < 10; i++)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].armor[i].type == item.type)
|
||||
hideVisual = Main.player[Main.myPlayer].hideVisual[i];
|
||||
}
|
||||
string lifeAmt = hideVisual ? "25" : "20";
|
||||
string lifeRegenAmt = hideVisual ? "2" : "1";
|
||||
string damageAmt = hideVisual ? "7" : "5";
|
||||
string jumpAmt = hideVisual ? (autoJump ? "6" : "24") : (autoJump ? "5" : "20");
|
||||
string damageReductionAndMoveSpeedAmt = hideVisual ? "6" : "5";
|
||||
string manaAmt = hideVisual ? "60" : "50";
|
||||
string manaUsageAmt = hideVisual ? "7" : "5";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
line2.text = "Increases max life by " + lifeAmt + ", life regen by " + lifeRegenAmt + " and all damage by " + damageAmt + "%";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip3")
|
||||
line2.text = "Increases damage reduction and movement speed by " + damageReductionAndMoveSpeedAmt + "%";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip4")
|
||||
line2.text = "Increases max mana by " + manaAmt + " and reduces mana usage by " + manaUsageAmt + "%";
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.brimstoneWaifu || modPlayer.sandWaifu || modPlayer.sandBoobWaifu || modPlayer.cloudWaifu || modPlayer.sirenWaifu)
|
||||
@@ -52,9 +82,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if (player != null && !player.dead)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, Main.DiscoR / 255f, Main.DiscoG / 255f, Main.DiscoB / 255f);
|
||||
}
|
||||
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.allWaifus = !hideVisual;
|
||||
modPlayer.elementalHeart = true;
|
||||
@@ -62,7 +91,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.lifeRegen += hideVisual ? 2 : 1;
|
||||
player.statLifeMax2 += hideVisual ? 25 : 20;
|
||||
player.moveSpeed += hideVisual ? 0.06f : 0.05f;
|
||||
player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.1f) : (player.autoJump ? 0.25f : 1f);
|
||||
player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.2f) : (player.autoJump ? 0.25f : 1f);
|
||||
player.endurance += hideVisual ? 0.06f : 0.05f;
|
||||
player.statManaMax2 += hideVisual ? 60 : 50;
|
||||
player.manaCost *= hideVisual ? 0.93f : 0.95f;
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Sponge : ModItem
|
||||
{
|
||||
|
||||
public override string Texture => (DateTime.Now.Month == 4 && DateTime.Now.Day == 1) ? "CalamityMod/Items/Accessories/SpongeReal" : "CalamityMod/Items/Accessories/Sponge";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -48,6 +47,14 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
||||
line2.text = jumpAmt + "% increased jump speed and 12% increased movement speed";
|
||||
}
|
||||
|
||||
if (CalamityWorld.death)
|
||||
{
|
||||
foreach (TooltipLine line2 in list)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Statis' Ninja Belt");
|
||||
Tooltip.SetDefault("8% increased jump speed and allows constant jumping\n" +
|
||||
Tooltip.SetDefault("12% increased jump speed and allows constant jumping\n" +
|
||||
"Increased fall damage resistance by 35 blocks\n" +
|
||||
"Can climb walls, dash, and dodge attacks");
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.autoJump = true;
|
||||
player.jumpSpeedBoost += 0.4f;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
player.extraFall += 35;
|
||||
player.blackBelt = true;
|
||||
player.dash = 1;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -34,7 +35,18 @@ namespace CalamityMod.Items.Accessories
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aSpark = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 12\n" +
|
||||
"Acceleration multiplier: 3\n" +
|
||||
"Excellent vertical speed\n" +
|
||||
"Flight time: 280\n" +
|
||||
"Flight time: 250\n" +
|
||||
"50% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 280;
|
||||
player.wingTimeMax = 250;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 10.5\n" +
|
||||
"Acceleration multiplier: 2.75\n" +
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"Flight time: 140\n" +
|
||||
"36% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 160;
|
||||
player.wingTimeMax = 140;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 9\n" +
|
||||
"Acceleration multiplier: 2.5\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 120\n" +
|
||||
"Flight time: 100\n" +
|
||||
"24% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 120;
|
||||
player.wingTimeMax = 100;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.sTracers = true;
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories
|
||||
"10% increased melee speed\n" +
|
||||
"10% increased melee and true melee damage\n" +
|
||||
"Melee attacks and melee projectiles inflict holy fire\n" +
|
||||
"Increased invincibility after taking damage\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Increased melee knockback");
|
||||
}
|
||||
@@ -60,7 +59,6 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<NecklaceofVexation>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 5);
|
||||
recipe.AddIngredient(ItemID.CrossNecklace);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,7 +14,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Reaver Visage");
|
||||
Tooltip.SetDefault("25% increased movement speed and 20% increased jump speed");
|
||||
Tooltip.SetDefault("20% increased jump speed and 25% increased movement speed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,7 +26,18 @@ namespace CalamityMod.Items.Armor
|
||||
item.defense = 13; //46
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "5" : "20";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
line2.text = jumpAmt + "% increased jump speed and 25% increased movement speed";
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ReaverScaleMail>() && legs.type == ModContent.ItemType<ReaverCuisses>();
|
||||
}
|
||||
@@ -53,7 +65,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.jumpSpeedBoost += 1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.25f : 1f;
|
||||
player.moveSpeed += 0.25f;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,14 +33,15 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -33,15 +33,16 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -33,15 +33,16 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -34,18 +34,19 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "18% increased minion damage\n" +
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "18% increased minion damage\n" +
|
||||
"Summons a mini slime god to fight for you, the type depends on what world evil you have\n" +
|
||||
"When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.slimeGod = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.minionDamage += 0.18f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
player.minionDamage += 0.18f;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<StatigelSummonSetBuff>()) == -1)
|
||||
|
||||
@@ -33,9 +33,10 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed\n" +
|
||||
jumpSpeedBonus + "% increased jump speed\n" +
|
||||
"Rogue stealth builds while not attacking and slower while moving, up to a max of 100\n" +
|
||||
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
|
||||
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
|
||||
@@ -46,8 +47,8 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.rogueStealthMax += 1f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -29,12 +29,12 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string hasJumpBoost = "Favorite this item to gain 5% increased movement speed and 2% increased jump speed.";
|
||||
string noJumpBoost = "Favorite this item to gain 5% increased movement speed.";
|
||||
string lessJumpBoost = "Favorite this item to gain 5% increased movement speed and 0.5% increased jump speed.";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
||||
{
|
||||
line2.text = autoJump ? noJumpBoost : hasJumpBoost;
|
||||
line2.text = autoJump ? lessJumpBoost : hasJumpBoost;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -712,7 +712,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Enter new phase
|
||||
else if (npc.ai[0] == 4f)
|
||||
{
|
||||
npc.velocity *= 0.98f;
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f);
|
||||
|
||||
if (npc.ai[2] == newPhaseTimer - 60)
|
||||
@@ -1031,7 +1031,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Enter new phase
|
||||
else if (npc.ai[0] == 10f)
|
||||
{
|
||||
npc.velocity *= 0.98f;
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f);
|
||||
|
||||
if (npc.ai[2] == newPhaseTimer - 60)
|
||||
@@ -1399,7 +1399,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Enter new phase
|
||||
else if (npc.ai[0] == 17f)
|
||||
{
|
||||
npc.velocity *= 0.98f;
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f);
|
||||
|
||||
if (npc.ai[2] == newPhaseTimer - 60)
|
||||
@@ -2403,7 +2403,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Enter new phase
|
||||
else if (npc.ai[0] == 9f)
|
||||
{
|
||||
npc.velocity *= 0.95f;
|
||||
npc.velocity *= 0.9f;
|
||||
|
||||
Vector2 vector = npc.DirectionTo(targetData.Center);
|
||||
npc.spriteDirection = (vector.X > 0f) ? 1 : -1;
|
||||
|
||||
Reference in new issue
Block a user