SSV is no longer a support weapon
This commit is contained in:
4 files changed
+14
-21
No files matched your search
@@ -11,26 +11,23 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class SubsumingVortex : ModItem
|
||||
{
|
||||
public const int MaxVortexCount = 4;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Subsuming Vortex");
|
||||
Tooltip.SetDefault("Fires a giant slow-moving vortex\n" +
|
||||
"When an enemy is nearby, the vortex releases tentacles that redirect towards the enemy.\n" +
|
||||
"After some time, the vortex slows down, charges, and eventually explodes.\n" +
|
||||
$"Only {MaxVortexCount} vortexes can exist at once.");
|
||||
"After some time, the vortex slows down, charges, and eventually explodes.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 480;
|
||||
item.damage = 1000;
|
||||
item.magic = true;
|
||||
item.mana = 20;
|
||||
item.mana = 30;
|
||||
item.width = 38;
|
||||
item.height = 48;
|
||||
item.UseSound = SoundID.Item84;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = item.useAnimation = 60;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5f;
|
||||
@@ -48,8 +45,6 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < MaxVortexCount;
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
get => projectile.localAI[0];
|
||||
set => projectile.localAI[0] = value;
|
||||
}
|
||||
public const int TentacleSpawnRate = 30;
|
||||
public const int TentacleSpawnRate = 20;
|
||||
public const int PulseInterval = 18;
|
||||
public const float PulseHitboxExpandRatio = 2.5f;
|
||||
public const float RadialOffsetVarianceFactor = 0.1f;
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.tileCollide = false;
|
||||
projectile.magic = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 17;
|
||||
projectile.localNPCHitCooldown = 15;
|
||||
}
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
|
||||
// Target enemy if possible and idly spawn tentacles.
|
||||
if (Time < 300)
|
||||
if (Time < 150)
|
||||
{
|
||||
TargetingMovement();
|
||||
if (Time % TentacleSpawnRate == TentacleSpawnRate - 1 && Main.myPlayer == projectile.owner)
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
}
|
||||
// Slow down and pulse frequently.
|
||||
else if (Time < 480)
|
||||
else if (Time < 220)
|
||||
{
|
||||
projectile.velocity *= 0.96f;
|
||||
if (Time % PulseInterval == 0f)
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
PulseEffect();
|
||||
}
|
||||
}
|
||||
else if (Time == 520f)
|
||||
else if (Time >= 240)
|
||||
{
|
||||
ExplodeEffect();
|
||||
projectile.Kill();
|
||||
@@ -100,8 +100,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Projectile subsumingHentai = Projectile.NewProjectileDirect(projectile.Center,
|
||||
Vector2.UnitY.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(9f, 13f),
|
||||
ModContent.ProjectileType<SubsumingTentacle>(),
|
||||
(int)(projectile.damage * 0.6),
|
||||
projectile.knockBack * 0.6f,
|
||||
(int)(projectile.damage * 0.5),
|
||||
projectile.knockBack * 0.5f,
|
||||
projectile.owner,
|
||||
xStartingAcceleration,
|
||||
yStartingAcceleration);
|
||||
|
||||
@@ -42,8 +42,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.MaxUpdates = 2;
|
||||
projectile.magic = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 16;
|
||||
projectile.usesIDStaticNPCImmunity = true;
|
||||
projectile.idStaticNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
ArcingMovement();
|
||||
}
|
||||
projectile.scale -= closestTarget == null ? 0.007f : 0.004f;
|
||||
projectile.scale -= closestTarget is null ? 0.007f : 0.004f;
|
||||
if (projectile.scale <= 0.05f)
|
||||
{
|
||||
projectile.Kill();
|
||||
|
||||
@@ -45,8 +45,6 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.extraUpdates = 4;
|
||||
projectile.timeLeft = 115 * projectile.extraUpdates;
|
||||
projectile.ignoreWater = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 5;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
Reference in new issue
Block a user