Ambergris & Pauldron nerf, Saros charge bar
This commit is contained in:
1 parent
969b6da530
commit
f05daf409c
5 files changed
+31
-4
No files matched your search
@@ -430,7 +430,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (dashStart)
|
||||
{
|
||||
Player.velocity.X *= 2.2f; // +120% dash speed
|
||||
Player.velocity.X *= 1 + LeviathanAmbergris.DashSpeedIncrease;
|
||||
int damage = (int)Player.GetBestClassDamage().ApplyTo(LeviathanAmbergris.ambergrisDashDamage);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<LeviAmberDash>(), damage, 0f, Player.whoAmI);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public class LeviathanAmbergris : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public static int ambergrisDashDamage = 650;
|
||||
public static int ambergrisDashDamage => 350;
|
||||
public static float DashSpeedIncrease => 1f;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public class SlagsplitterPauldron : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public static int PauldronSlamDamage = 330;
|
||||
public static int PauldronSlamDamage => 250;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
|
||||
@@ -5,9 +5,11 @@ using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -73,5 +75,29 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
public override void PostDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
int currentCooldown = Main.LocalPlayer.Calamity().sarosEclipseBeamUsage;
|
||||
float fill = 1 - currentCooldown / 300f;
|
||||
|
||||
if (fill >= 1)
|
||||
return;
|
||||
|
||||
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
float barScale = 1/(32f/TextureAssets.Item[Type].Width()) * 0.9f;
|
||||
|
||||
Vector2 barOrigin = barBG.Size() * 0.5f;
|
||||
float yOffset = 0f;
|
||||
Vector2 drawPos = position + new Vector2(0, (float)TextureAssets.Item[Type].Height() * 0.5f) * scale;
|
||||
Rectangle frameCrop = new Rectangle(0, 0, (int)((fill) * barFG.Width), barFG.Height);
|
||||
Color colorBG = Color.Black;
|
||||
Color colorFG = Color.Lerp(Color.OrangeRed, new Color(238, 226, 153), fill);
|
||||
|
||||
spriteBatch.Draw(barBG, drawPos, null, colorBG, 0f, barOrigin, scale * barScale, 0f, 0f);
|
||||
spriteBatch.Draw(barFG, drawPos, frameCrop, colorFG, 0f, barOrigin, scale * barScale, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1067,7 +1067,7 @@ LeviathanAmbergris: {
|
||||
DisplayName: Leviathan Ambergris
|
||||
Tooltip:
|
||||
'''
|
||||
120% increased initial dash velocity, 33% faster dash cooldown, and greatly increased dash deceleration
|
||||
100% increased initial dash velocity, 33% faster dash cooldown, and greatly increased dash deceleration
|
||||
Your dashes are empowered by water, knocking back and damaging enemies with vicious currents that inflict [cbuff:CalamityMod/RiptideDebuff]
|
||||
Visual effects are reduced if visibility is disabled
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user