Elemental Saw -> Superradiant Slaughterer
No files matched your search
@@ -3073,16 +3073,16 @@ namespace CalamityMod.CalPlayer
|
||||
//Right click dash on Speed Blaster
|
||||
if (sBlasterDashActivated == true)
|
||||
{
|
||||
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && (Player.HasCooldown(SpeedBlasterBoost.ID) || Player.HasCooldown(ElementalSawBoost.ID)) && Player.dashDelay == 0)
|
||||
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && (Player.HasCooldown(SpeedBlasterBoost.ID) || Player.HasCooldown(SuperradiantSawBoost.ID)) && Player.dashDelay == 0)
|
||||
{
|
||||
SpeedBlasterDashStarted = true;
|
||||
}
|
||||
sBlasterDashActivated = false;
|
||||
}
|
||||
|
||||
if (Player.Calamity().SpeedBlasterDashStarted || (Player.dashDelay != 0 && (Player.Calamity().LastUsedDashID == ElementalSawDash.ID || Player.Calamity().LastUsedDashID == SpeedBlasterDash.ID)))
|
||||
if (Player.Calamity().SpeedBlasterDashStarted || (Player.dashDelay != 0 && (Player.Calamity().LastUsedDashID == SuperradiantSawDash.ID || Player.Calamity().LastUsedDashID == SpeedBlasterDash.ID)))
|
||||
{
|
||||
Player.Calamity().DeferredDashID = Player.ActiveItem().type == ModContent.ItemType<ElementalSaw>() ? ElementalSawDash.ID : SpeedBlasterDash.ID;
|
||||
Player.Calamity().DeferredDashID = Player.ActiveItem().type == ModContent.ItemType<SuperradiantSlaughterer>() ? SuperradiantSawDash.ID : SpeedBlasterDash.ID;
|
||||
Player.dash = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
public class ElementalSawDash : PlayerDashEffect
|
||||
public class SuperradiantSawDash : PlayerDashEffect
|
||||
{
|
||||
public static new string ID => "Elemental Saw";
|
||||
public static new string ID => "Superradiant Slaughterer";
|
||||
public override DashCollisionType CollisionType => DashCollisionType.NoCollision;
|
||||
|
||||
public override bool IsOmnidirectional => true;
|
||||
@@ -5,12 +5,12 @@ using Terraria.Localization;
|
||||
|
||||
namespace CalamityMod.Cooldowns
|
||||
{
|
||||
public class ElementalSawBoost : CooldownHandler
|
||||
public class SuperradiantSawBoost : CooldownHandler
|
||||
{
|
||||
public static new string ID => "ElementalSawBoost";
|
||||
public static new string ID => "SuperradiantSawBoost";
|
||||
public override bool ShouldDisplay => true;
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
|
||||
public override string Texture => "CalamityMod/Cooldowns/ElementalSawBoost";
|
||||
public override string Texture => "CalamityMod/Cooldowns/SuperradiantSawBoost";
|
||||
public override Color OutlineColor => new Color(207, 207, 207);
|
||||
public override Color CooldownStartColor => new Color(122, 240, 58);
|
||||
public override Color CooldownEndColor => new Color(32, 186, 171);
|
||||
|
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 443 B |
|
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
@@ -16,7 +16,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
[LegacyName("ElementalBlaster")]
|
||||
public class ElementalSaw : ModItem, ILocalizedModType
|
||||
public class SuperradiantSlaughterer : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<ElementalSawHoldout>();
|
||||
Item.shoot = ModContent.ProjectileType<SuperradiantSlaughtererHoldout>();
|
||||
Item.shootSpeed = ShootSpeed;
|
||||
Item.Calamity().canFirePointBlankShots = true;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2 && player.HasCooldown(ElementalSawBoost.ID))
|
||||
if (player.altFunctionUse == 2 && player.HasCooldown(SuperradiantSawBoost.ID))
|
||||
return false;
|
||||
else
|
||||
return player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
@@ -88,13 +88,13 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
// Right click dash
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
if (!player.HasCooldown(ElementalSawBoost.ID))
|
||||
if (!player.HasCooldown(SuperradiantSawBoost.ID))
|
||||
{
|
||||
// Throws a lingering saw at the cursor
|
||||
float mouseDist = Vector2.Distance(player.Center, Main.MouseWorld) / 20f;
|
||||
Projectile.NewProjectile(source, player.Center, velocity.SafeNormalize(Vector2.UnitY) * mouseDist, ModContent.ProjectileType<ElementalSawLingering>(), damage, knockback, Main.myPlayer);
|
||||
Projectile.NewProjectile(source, player.Center, velocity.SafeNormalize(Vector2.UnitY) * mouseDist, ModContent.ProjectileType<SuperradiantSawLingering>(), damage, knockback, Main.myPlayer);
|
||||
|
||||
player.AddCooldown(ElementalSawBoost.ID, DashCooldown);
|
||||
player.AddCooldown(SuperradiantSawBoost.ID, DashCooldown);
|
||||
player.Calamity().sBlasterDashActivated = true;
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/MeatySlash"), player.Center);
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
else
|
||||
{
|
||||
// The holdout deals 2x base damage.
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<ElementalSawHoldout>(), (int)(damage * 2), knockback, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(source, position, velocity, Item.shoot, damage * 2, knockback, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -435,30 +435,6 @@ Drataliornus: {
|
||||
'''
|
||||
}
|
||||
|
||||
ElementalSaw: {
|
||||
DisplayName: Elemental Saw
|
||||
Tooltip:
|
||||
'''
|
||||
[MAIN]
|
||||
[ALT]
|
||||
'''
|
||||
MainInfo:
|
||||
'''
|
||||
Hold <left> to rev up an elemental buzzsaw that deals close-range damage
|
||||
Release <left> to fire the buzzsaw to pierce through and lacerate foes
|
||||
Fired buzzsaws bounce off tiles and return to the player after winding down
|
||||
When returning, the saws release extra homing bolts depending on the number of enemy and tile hits
|
||||
Revving up the saws increase their damage and allow them to pierce more enemies
|
||||
'''
|
||||
AltInfo:
|
||||
'''
|
||||
Press <right> to eject a lingering buzzsaw towards the cursor that fires homing bolts
|
||||
Using this ability rapidly propels you in the direction you are moving
|
||||
This ability has a {0} second cooldown
|
||||
During this cooldown, buzzsaws home to the cursor and constantly release homing bolts while returning
|
||||
'''
|
||||
}
|
||||
|
||||
ElementalEruption: {
|
||||
DisplayName: Elemental Eruption
|
||||
Tooltip:
|
||||
@@ -1247,6 +1223,30 @@ SulphuricAcidCannon: {
|
||||
Tooltip: Fires an acidic shot that sticks to enemies and dissolves them
|
||||
}
|
||||
|
||||
SuperradiantSlaughterer: {
|
||||
DisplayName: Superradiant Slaughterer
|
||||
Tooltip:
|
||||
'''
|
||||
[MAIN]
|
||||
[ALT]
|
||||
'''
|
||||
MainInfo:
|
||||
'''
|
||||
Hold <left> to rev up an elemental buzzsaw that deals close-range damage
|
||||
Release <left> to fire the buzzsaw to pierce through and lacerate foes
|
||||
Fired buzzsaws bounce off tiles and return to the player after winding down
|
||||
When returning, the saws release extra homing bolts depending on the number of enemy and tile hits
|
||||
Revving up the saws increase their damage and allow them to pierce more enemies
|
||||
'''
|
||||
AltInfo:
|
||||
'''
|
||||
Press <right> to eject a lingering buzzsaw towards the cursor that fires homing bolts
|
||||
Using this ability rapidly propels you in the direction you are moving
|
||||
This ability has a {0} second cooldown
|
||||
During this cooldown, buzzsaws home to the cursor and constantly release homing bolts while returning
|
||||
'''
|
||||
}
|
||||
|
||||
SurgeDriver: {
|
||||
DisplayName: Surge Driver
|
||||
Tooltip:
|
||||
|
||||
@@ -72,10 +72,6 @@ DryadsTearSplit.DisplayName: Dryad's Tear
|
||||
DWArrow.DisplayName: Death's Arrow
|
||||
ElementalFire.DisplayName: Elemental Fire
|
||||
ElementalFlare.DisplayName: Elemental Flare
|
||||
ElementalSawBullet.DisplayName: Elemental Sawcon Bolt
|
||||
ElementalSawLingering.DisplayName: Elemental Sawcon Deluxe
|
||||
ElementalSawMini.DisplayName: Elemental Sawcon Lite
|
||||
ElementalSawProj.DisplayName: Elemental Sawcon
|
||||
ElysianArrowProj.DisplayName: Elysian Arrow
|
||||
ElysianArrowRain.DisplayName: Elysian Light
|
||||
EmesisGore.DisplayName: Rotten Gore
|
||||
@@ -224,6 +220,9 @@ StarmageddonStar2.DisplayName: Starmageddon Star
|
||||
StormSurgeTornado.DisplayName: Surge
|
||||
SulphuricBlast.DisplayName: Sulphuric Blast
|
||||
SuperballBulletProj.DisplayName: Superball Bullet
|
||||
SuperradiantBolt.DisplayName: Superradiant Bolt
|
||||
SuperradiantSawLingering.DisplayName: Ultraradiant Saw
|
||||
SuperradiantSaw.DisplayName: Superradiant Saw
|
||||
TelluricGlareArrow.DisplayName: Radiant Arrow
|
||||
TheMaelstromExplosion.DisplayName: Reaper Explosion
|
||||
TheMaelstromShark.DisplayName: Reaper Shark
|
||||
|
||||
@@ -90,7 +90,6 @@ Cooldowns: {
|
||||
DivingPlatesBreaking: Abyssal Diving Suit Plates Durability
|
||||
DivingPlatesBroken: Abyssal Diving Suit Broken Plates
|
||||
ParryCooldown: Parry Ability Cooldown
|
||||
ElementalSawBoost: Elemental Saw Boost
|
||||
EvasionScarf: Scarf Cooldown
|
||||
FleshTotem: Contact Damage Halving Cooldown
|
||||
GaelsRage: Gael's Greatsword Rage Cooldown
|
||||
@@ -120,6 +119,7 @@ Cooldowns: {
|
||||
SpeedBlasterBoost: Speed Blaster Boost
|
||||
SpongeDurability: Sponge Barrier Durability
|
||||
SpongeRecharge: Sponge Barrier Recharge
|
||||
SuperradiantSawBoost: Superradiant Saw Boost
|
||||
TarragonCloak: Tarragon Cloak Cooldown
|
||||
TarragonImmunity: Tarragon Immunity Cooldown
|
||||
UniverseSplitter: Universe Splitter Cooldown
|
||||
|
||||
@@ -235,7 +235,6 @@ namespace CalamityMod
|
||||
ItemRedirect(ItemType<Elderberry>(), "Elderberry (calamity)");
|
||||
ItemRedirect(ItemType<PineapplePet>(), "Pineapple (calamity)");
|
||||
ItemRedirect(ItemType<TrashmanTrashcan>(), "Trash Can (pet)");
|
||||
ItemRedirect(ItemType<Purity>(), "Purity (accessory)");
|
||||
ItemRedirect(ItemType<SandstormGun>(), "Sandstorm (weapon)");
|
||||
ItemRedirect(ItemType<Thunderstorm>(), "Thunderstorm (weapon)");
|
||||
// Lore items
|
||||
|
||||
@@ -12,7 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class ElementalSawBullet : ModProjectile, ILocalizedModType
|
||||
public class SuperradiantBolt : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
|
||||
|
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
@@ -14,7 +14,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class ElementalSawProj : ModProjectile, ILocalizedModType
|
||||
public class SuperradiantSaw : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public static readonly SoundStyle TileCollideGFB = new("CalamityMod/Sounds/Custom/MetalPipeFalling");
|
||||
@@ -68,13 +68,13 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
// Control the saw being empowered or not
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
Empowered = Owner.HasCooldown(ElementalSawBoost.ID);
|
||||
Empowered = Owner.HasCooldown(SuperradiantSawBoost.ID);
|
||||
|
||||
// While empowered, the saws while slightly home in on the cursor
|
||||
if (Empowered && !Returning && Time > 30)
|
||||
{
|
||||
float homingTurnSpeed = 0.18f;
|
||||
Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(Projectile.SafeDirectionTo(Main.MouseWorld).ToRotation(), homingTurnSpeed).ToRotationVector2() * ElementalSaw.ShootSpeed;
|
||||
Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(Projectile.SafeDirectionTo(Main.MouseWorld).ToRotation(), homingTurnSpeed).ToRotationVector2() * SuperradiantSlaughterer.ShootSpeed;
|
||||
}
|
||||
|
||||
// Saws automatically return 2 seconds after hitting an enemy
|
||||
@@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
Vector2 randBoltVelocity = Main.rand.NextVector2Unit() * 9f;
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randBoltVelocity, ModContent.ProjectileType<ElementalSawBullet>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randBoltVelocity, ModContent.ProjectileType<SuperradiantBolt>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
}
|
||||
|
||||
// Extra burst of sparks for cool points
|
||||
@@ -123,10 +123,10 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
Vector2 randVelocity = -Projectile.velocity.RotatedByRandom(MathHelper.Pi / 3f) * 0.5f;
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randVelocity, ModContent.ProjectileType<ElementalSawBullet>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randVelocity, ModContent.ProjectileType<SuperradiantBolt>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
}
|
||||
|
||||
float returnSpeed = (ElementalSaw.ShootSpeed * 0.6f) + (0.05f * (ReturnTimer - 120));
|
||||
float returnSpeed = (SuperradiantSlaughterer.ShootSpeed * 0.6f) + (0.05f * (ReturnTimer - 120));
|
||||
Vector2 ownerDist = Owner.Center - Projectile.Center;
|
||||
if (ownerDist.Length() > 3000f)
|
||||
Projectile.Kill();
|
||||
@@ -305,9 +305,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawLargeSlash");
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawLargeSlash");
|
||||
Texture2D largeSlashTexture = LargeSlash.Value;
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawSmallSlash");
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawSmallSlash");
|
||||
Texture2D smallSlashTexture = SmallSlash.Value;
|
||||
Color slashColor = new Color(200, 200, 200, 100);
|
||||
|
||||
@@ -344,7 +344,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
if (Empowered) // Rainbow outline while empowered
|
||||
{
|
||||
SawOutline ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawProjOutline");
|
||||
SawOutline ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawOutline");
|
||||
Texture2D outline = SawOutline.Value;
|
||||
Main.EntitySpriteDraw(outline, Projectile.Center - Main.screenPosition, null, Main.DiscoColor, Projectile.rotation, outline.Size() * 0.5f, 1f, SpriteEffects.None);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -12,10 +12,10 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class ElementalSawLingering : ModProjectile, ILocalizedModType
|
||||
public class SuperradiantSawLingering : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public override string Texture => "CalamityMod/Projectiles/Ranged/ElementalSawProj";
|
||||
public override string Texture => "CalamityMod/Projectiles/Ranged/SuperradiantSaw";
|
||||
|
||||
public ref float Time => ref Projectile.ai[1];
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
Vector2 randVelocity = Main.rand.NextVector2Unit() * Main.rand.NextFloat(7.5f, 9f);
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randVelocity, ModContent.ProjectileType<ElementalSawBullet>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, randVelocity, ModContent.ProjectileType<SuperradiantBolt>(), (int)(Projectile.damage * 0.5f), 0f, Main.myPlayer);
|
||||
}
|
||||
|
||||
// Fade out at the end of its lifetime
|
||||
@@ -146,9 +146,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawLargeSlash");
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawLargeSlash");
|
||||
Texture2D largeSlashTexture = LargeSlash.Value;
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawSmallSlash");
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawSmallSlash");
|
||||
Texture2D smallSlashTexture = SmallSlash.Value;
|
||||
Color slashColor = new Color(200, 200, 200, 100) * Projectile.Opacity;
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Texture2D buzzsawTexture = TextureAssets.Projectile[Projectile.type].Value;
|
||||
Main.EntitySpriteDraw(buzzsawTexture, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, buzzsawTexture.Size() * 0.5f, 1f, SpriteEffects.None);
|
||||
|
||||
SawOutline ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawProjOutline");
|
||||
SawOutline ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawOutline");
|
||||
Texture2D outline = SawOutline.Value;
|
||||
Main.EntitySpriteDraw(outline, Projectile.Center - Main.screenPosition, null, Main.DiscoColor, Projectile.rotation, outline.Size() * 0.5f, 1f, SpriteEffects.None);
|
||||
|
||||
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -16,9 +16,9 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class ElementalSawHoldout : BaseGunHoldoutProjectile
|
||||
public class SuperradiantSlaughtererHoldout : BaseGunHoldoutProjectile
|
||||
{
|
||||
public override int AssociatedItemID => ModContent.ItemType<ElementalSaw>();
|
||||
public override int AssociatedItemID => ModContent.ItemType<SuperradiantSlaughterer>();
|
||||
public override float RecoilResolveSpeed => 0.05f;
|
||||
public override float MaxOffsetLengthFromArm => 36f;
|
||||
public override float BaseOffsetY => -5f;
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int sawLevel = (SawPower >= 1f).ToInt() + (SawPower >= 0.25f).ToInt();
|
||||
|
||||
// ai[0] determines which slashes are drawn. ai[1] is the saw's timer variable. ai[2] stores the saw's pierce.
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * ElementalSaw.ShootSpeed, ModContent.ProjectileType<ElementalSawProj>(), (int)(Projectile.damage * sawDamageMult), Projectile.knockBack, Main.myPlayer, sawLevel, 0f, sawPierce);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * SuperradiantSlaughterer.ShootSpeed, ModContent.ProjectileType<SuperradiantSaw>(), (int)(Projectile.damage * sawDamageMult), Projectile.knockBack, Main.myPlayer, sawLevel, 0f, sawPierce);
|
||||
|
||||
NoSawOnHoldout = true;
|
||||
OffsetLengthFromArm -= 4f + 12f * SawPower;
|
||||
@@ -244,11 +244,11 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Holdout ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawHoldout");
|
||||
Holdout ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSlaughtererHoldout");
|
||||
Texture2D holdoutTexture = Holdout.Value;
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawLargeSlash");
|
||||
LargeSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawLargeSlash");
|
||||
Texture2D largeSlashTexture = LargeSlash.Value;
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawSmallSlash");
|
||||
SmallSlash ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSawSmallSlash");
|
||||
Texture2D smallSlashTexture = SmallSlash.Value;
|
||||
Color slashColor = new Color(200, 200, 200, 100);
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
|
||||
// Mini saw drawn under the gun
|
||||
MiniSaw ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawHoldoutMiniSaw");
|
||||
MiniSaw ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSlaughtererHoldoutMiniSaw");
|
||||
Texture2D mini = MiniSaw.Value;
|
||||
Vector2 verticalOffset = Vector2.UnitY.RotatedBy(Projectile.rotation);
|
||||
if (Math.Cos(Projectile.rotation) < 0f)
|
||||
@@ -276,7 +276,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Main.EntitySpriteDraw(holdoutTexture, drawPosition, frame, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale, flipSprite);
|
||||
|
||||
// Glowmask
|
||||
HoldoutGlow ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/ElementalSawHoldoutGlow");
|
||||
HoldoutGlow ??= ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/SuperradiantSlaughtererHoldoutGlow");
|
||||
Texture2D glow = HoldoutGlow.Value;
|
||||
Main.EntitySpriteDraw(glow, drawPosition, frame, Color.White, drawRotation, rotationPoint, Projectile.scale, flipSprite);
|
||||
|
||||
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B |