Various wing/flight item tweaks
- Fixed Stat Meter wing display toggling on with Aero Stone - Slight tooltip tweaks - Nerfed Soaring Potion - Nerfed Flame Wings, Elysian Wings - Buffed Soaring/Ascendant Insignia - Buffed Spectre Wings
This commit is contained in:
1 parent
e955acbb99
commit
2cd0a9fd52
9 files changed
+24
-21
No files matched your search
@@ -3752,10 +3752,9 @@ namespace CalamityMod.CalPlayer
|
||||
(reaverSpeed ? ReaverHeadMobility.SetBonusFlightBoost : 0D) +
|
||||
(angelTreads ? AngelTreads.FlightTimeBoost : 0D) +
|
||||
(blueCandle ? WeightlessCandle.WingTimeBoost : 0D) +
|
||||
(soaring ? SoaringPotion.FlightBoost : 0D) +
|
||||
(soaring ? SoaringPotion.FlightTimeBoost : 0D) +
|
||||
(prismaticGreaves ? PrismaticGreaves.FlightTimeBoost : 0D) +
|
||||
(plagueReaper ? PlagueReaperMask.SetBonusFlightTimeBoost : 0D) +
|
||||
(ascendantInsignia ? AscendantInsignia.FlightTimeBoost : Player.empressBrooch ? 0.33D : 0D) +
|
||||
externalFlightTimeMultBoost;
|
||||
|
||||
if (community)
|
||||
|
||||
@@ -15,13 +15,13 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
// These values override Soaring Insignia's
|
||||
public static double FlightTimeBoost = 0.5D;
|
||||
public static int FlightTimeBoostFlat = CalamityUtils.SecondsToFrames(4);
|
||||
public static float MoveSpeedBoost = 0.15f;
|
||||
public static float JumpSpeedBoost = 0.75f; // NOTE: Tooltip shares this number with move speed % as they're equal
|
||||
public static float JumpSpeedBoost = 1f;
|
||||
public static float AccelerationBoost = 0.5f;
|
||||
public static int AbilityDuration = CalamityUtils.SecondsToFrames(4);
|
||||
public static int AbilityCooldown = CalamityUtils.SecondsToFrames(40);
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeBoost.ToPercent(), MoveSpeedBoost.ToPercent(), (1f + AccelerationBoost).Round(), AbilityDuration.FramesToSeconds(), AbilityCooldown.FramesToSeconds());
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeBoostFlat.FramesToSeconds(), MoveSpeedBoost.ToPercent(), JumpSpeedBoost.ToJumpSpeedPercent(), (1f + AccelerationBoost).Round(), AbilityDuration.FramesToSeconds(), AbilityCooldown.FramesToSeconds());
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateDynamicHotkey(Item);
|
||||
public override void SetDefaults()
|
||||
@@ -41,6 +41,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.empressBrooch = true;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
player.jumpSpeedBoost += JumpSpeedBoost - 0.5f;
|
||||
player.wingTimeMax += FlightTimeBoostFlat;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -211,8 +211,8 @@ namespace CalamityMod.Items.Accessories
|
||||
OnePlace((float)player.lifeRegen / 2f), // Divided by 2 to show HP/s, because vanilla! Also normally we'd divide this by 2 in Expert without Well Fed, but we disable that shit
|
||||
Sign(moveSpeedBoost) + TwoPlaces(100f * moveSpeedBoost),
|
||||
TwoPlaces(20f * player.GetJumpBoost()));
|
||||
// Show wing stats only if over 0 flight time
|
||||
if (wingFlightTime > 0f)
|
||||
// Show wing stats only if over 0 flight time and wings are equipped
|
||||
if (wingFlightTime > 0f && player.equippedWings != null)
|
||||
stats3 += this.GetLocalization("FlightTime").Format(TwoPlaces(wingFlightTime / 60f));
|
||||
stats3 += "\n" + this.GetLocalization("MiscStats").Format(
|
||||
player.aggro,
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
public override float MaxAscentSpeed => 3f;
|
||||
public override float BaseAscent => 0.15f;
|
||||
|
||||
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 10f, 3f);
|
||||
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(210, 10f, 3f);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -204,8 +204,8 @@ namespace CalamityMod.Items
|
||||
stats[(int)VanillaWingID.LeafWings].FlyTime = 170;
|
||||
stats[(int)VanillaWingID.LeafWings].AccRunSpeedOverride = 9f;
|
||||
stats[(int)VanillaWingID.LeafWings].AccRunAccelerationMult = 2f;
|
||||
// (Spectre Wings) 1 -> 1.5 acceleration multiplier
|
||||
stats[(int)VanillaWingID.GhostWings].AccRunAccelerationMult = 1.5f;
|
||||
// (Spectre Wings) 1 -> 2 acceleration multiplier
|
||||
stats[(int)VanillaWingID.GhostWings].AccRunAccelerationMult = 2f;
|
||||
|
||||
// 170 -> 210 flight time
|
||||
stats[(int)VanillaWingID.BeetleWings].FlyTime = 210;
|
||||
@@ -1199,6 +1199,9 @@ namespace CalamityMod.Items
|
||||
player.maxFallSpeed *= 1.2f;
|
||||
}
|
||||
|
||||
if (item.type == ItemID.EmpressFlightBooster)
|
||||
player.wingTimeMax += 150;
|
||||
|
||||
if (item.type == ItemID.DemonWings && !player.mount.Active)
|
||||
player.maxFallSpeed *= 1.2f;
|
||||
|
||||
@@ -1268,7 +1271,6 @@ namespace CalamityMod.Items
|
||||
float moveSpeedBoost = modPlayer.moveSpeedBonus * 0.06f;
|
||||
|
||||
float flightSpeedMult = 1f +
|
||||
(modPlayer.soaring ? SoaringPotion.FlightBoost : 0f) +
|
||||
(modPlayer.reaverSpeed ? ReaverHeadMobility.SetBonusFlightBoost : 0f) +
|
||||
moveSpeedBoost;
|
||||
|
||||
@@ -1294,14 +1296,14 @@ namespace CalamityMod.Items
|
||||
break;
|
||||
case ItemID.FlameWings:
|
||||
maxAscentMultiplier *= 1.1067f;
|
||||
constantAscend *= 1.25f;
|
||||
constantAscend *= 1.2f;
|
||||
break;
|
||||
case ItemID.ButterflyWings:
|
||||
maxAscentMultiplier *= 0.6667f;
|
||||
constantAscend *= 5f;
|
||||
break;
|
||||
case ItemID.GhostWings:
|
||||
maxAscentMultiplier *= 0.6025f;
|
||||
maxAscentMultiplier *= 0.6625f;
|
||||
constantAscend *= 5f;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Items.Potions
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float FlightBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightBoost.ToPercent());
|
||||
public static float FlightTimeBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -52,7 +52,7 @@ AeroStone: {
|
||||
DisplayName: Aero Stone
|
||||
Tooltip:
|
||||
'''
|
||||
Provides an additional {0} seconds of flight time
|
||||
Grants {0} additional seconds of flight time
|
||||
You slowly recover flight time while in the air while not flying or gliding
|
||||
'One of the ancient relics'
|
||||
'''
|
||||
@@ -226,9 +226,10 @@ AscendantInsignia: {
|
||||
DisplayName: Ascendant Insignia
|
||||
Tooltip:
|
||||
'''
|
||||
Increases wing flight time by {0}%, movement and jump speed by {1}%, and acceleration by {2}x
|
||||
Pressing [KEY] grants you the power of ascension, providing infinite flight time for {3} seconds
|
||||
Ascension has a {4} second cooldown
|
||||
Grants {0} additional seconds of flight time
|
||||
Increases movement speed by {1}%, jump speed by {2}%, and acceleration by {3}x
|
||||
Pressing [KEY] fully restores flight time and prevents it from decreasing for {4} seconds
|
||||
This ability has a {5} second cooldown
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ ShadowPotion: {
|
||||
|
||||
SoaringPotion: {
|
||||
DisplayName: Soaring Potion
|
||||
Tooltip: "{0}% increased flight time and horizontal flight speed"
|
||||
Tooltip: "{0}% increased flight time"
|
||||
}
|
||||
|
||||
SulphurskinPotion: {
|
||||
|
||||
@@ -179,7 +179,7 @@ EditedTooltip: {
|
||||
'''
|
||||
FrogLeg: Increases jump speed by {0}% and allows auto-jump
|
||||
// Soaring Insignia
|
||||
EmpressFlightBooster1: Increases wing flight time by 33%
|
||||
EmpressFlightBooster1: Grants 2.5 additional seconds of flight time
|
||||
EmpressFlightBooster2: Increases movement speed by 7.5%, jump speed by 10%, and acceleration by 1.25x
|
||||
GravityGlobe:
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user