Removed Eutrophic Scimitar and Coral Cannon

This commit is contained in:
CongratsIsTrash committed 2024-08-20 11:20:11 -04:00
1 parent ffe24ed27c
commit 14e6aa1d6a
14 files changed
-261

No files matched your search

-52
View File
@@ -1,52 +0,0 @@
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class EutrophicScimitar : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 64;
Item.height = 78;
Item.damage = 110;
Item.DamageType = DamageClass.Melee;
Item.useTime = 40;
Item.useAnimation = 40;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2;
Item.shoot = ModContent.ProjectileType<EutrophicScimitarProj>();
Item.shootSpeed = 17;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.useTurn = true;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
for (int i = 0; i <= 21; i++)
{
Dust dust;
dust = Main.dust[Dust.NewDust(new Vector2(position.X - 58 / 2, position.Y - 58 / 2), 58, 58, DustID.Electric, 0f, 0f, 0, new Color(255, 255, 255), 0.4605263f)];
dust.noGravity = true;
dust.fadeIn = 0.9473684f;
}
for (int projectiles = 0; projectiles < 2; projectiles++)
{
float SpeedX = velocity.X + Main.rand.Next(-15, 16) * 0.05f;
float SpeedY = velocity.Y + Main.rand.Next(-15, 16) * 0.05f;
Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.7), knockback, player.whoAmI);
}
return false;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

-53
View File
@@ -1,53 +0,0 @@
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
public class CoralCannon : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetStaticDefaults()
{
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 52;
Item.height = 40;
Item.damage = 24;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 7.5f;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item61;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<SmallCoral>();
Item.shootSpeed = 10f;
Item.Calamity().canFirePointBlankShots = true;
}
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 10;
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (Main.rand.NextBool(5))
{
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<BigCoral>(), (int)(damage * 1.5f), knockback * 1.5f, player.whoAmI);
return false;
}
return true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 920 B

@@ -463,11 +463,6 @@ EssenceFlayer: {
Tooltip: Shoots an essence scythe that generates healing spirits on enemy kills
}
EutrophicScimitar: {
DisplayName: Eutrophic Scimitar
Tooltip: Fires two beams that stun enemies
}
EvilSmasher: {
DisplayName: Evil Smasher
Tooltip:
@@ -328,15 +328,6 @@ ContinentalGreatbow: {
'''
}
CoralCannon: {
DisplayName: Coral Cannon
Tooltip:
'''
Has a 20% chance to shoot a big coral that stuns enemies
Does not consume ammo
'''
}
CorinthPrime: {
DisplayName: Corinth Prime
Tooltip:
@@ -106,7 +106,6 @@ EntropicFlechette.DisplayName: Entropic Flechette
EonBolt.DisplayName: Eon Bolt
EssenceFlame2.DisplayName: Essence Flame
EssenceScythe.DisplayName: Essence Scythe
EutrophicScimitarProj.DisplayName: Scimitar Zap
ExcelsusBlue.DisplayName: Excelsus
ExcelsusMain.DisplayName: Excelsus
ExcelsusPink.DisplayName: Excelsus
@@ -19,7 +19,6 @@ AuricBullet.DisplayName: Auric Bullet
AuroraFire.DisplayName: Aurora Blaze
BallistaGreatArrow.DisplayName: Ballista Great Arrow
BarinadeArrow.DisplayName: Fin Arrow
BigCoral.DisplayName: Big Coral
BlightFlames.DisplayName: Blight Flames
BlissfulBombardierDustProjectile.DisplayName: Holy Flare Dust
BloodBoilerFire.DisplayName: Blood Fire
-1
View File
@@ -126,7 +126,6 @@ namespace CalamityMod.NPCs.SunkenSea
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
npcLoot.Add(ModContent.ItemType<EutrophicScimitar>(), 4);
npcLoot.Add(ModContent.ItemType<PrismShard>(), 1, 5, 9);
}
-1
View File
@@ -205,7 +205,6 @@ namespace CalamityMod.NPCs.TownNPCs
.Add(ModContent.ItemType<SnapClam>())
.Add(ModContent.ItemType<SandDollar>())
.Add(ModContent.ItemType<Waywasher>())
.Add(ModContent.ItemType<CoralCannon>())
.Add(ModContent.ItemType<AmidiasTrident>())
.Add(ModContent.ItemType<EnchantedConch>())
.Add(ModContent.ItemType<PolypLauncher>())
@@ -1,78 +0,0 @@
using System;
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee
{
public class EutrophicScimitarProj : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Melee";
public override void SetStaticDefaults()
{
Main.projFrames[Projectile.type] = 3;
}
public override void SetDefaults()
{
Projectile.width = 18;
Projectile.height = 18;
Projectile.friendly = true;
Projectile.penetrate = 1;
Projectile.tileCollide = true;
Projectile.DamageType = DamageClass.Melee;
}
public override Color? GetAlpha(Color lightColor)
{
return new Color(127, 255, 253);
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<Eutrophication>(), 60);
}
public override void AI()
{
Lighting.AddLight(Projectile.Center, (255 - Projectile.alpha) * 0f / 255f, (255 - Projectile.alpha) * 0.35f / 255f, (255 - Projectile.alpha) * 0.35f / 255f);
Projectile.frameCounter++;
if (Projectile.frameCounter > 2)
{
Projectile.frame++;
Projectile.frameCounter = 0;
}
if (Projectile.frame > 2)
{
Projectile.frame = 0;
}
if (Projectile.velocity.X < 0f)
{
Projectile.rotation = Projectile.velocity.ToRotation();
}
else
{
Projectile.rotation = Projectile.velocity.ToRotation();
}
if (Main.rand.NextBool())
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.Electric, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f, 0, new Color(255, 255, 255), 0.5f);
}
Projectile.rotation = Projectile.velocity.ToRotation();
}
public override void OnKill(int timeLeft)
{
for (int i = 0; i <= 10; i++)
{
Dust dust;
Vector2 position = new Vector2(Projectile.position.X - 4, Projectile.position.Y - 4);
dust = Main.dust[Terraria.Dust.NewDust(position, 58, 58, DustID.Electric, 0f, 0f, 0, new Color(255, 255, 255), 0.4605263f)];
dust.noGravity = true;
dust.fadeIn = 0.9473684f;
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

-60
View File
@@ -1,60 +0,0 @@
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Ranged
{
public class BigCoral : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override void SetDefaults()
{
Projectile.width = 18;
Projectile.height = 34;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Ranged;
Projectile.penetrate = 1;
Projectile.aiStyle = ProjAIStyleID.Arrow;
Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration;
}
public override void AI()
{
Projectile.velocity.X *= 0.999f;
Projectile.velocity.Y = Projectile.velocity.Y + 0.025f;
Projectile.rotation = Projectile.velocity.ToRotation();
if (Projectile.direction == -1)
Projectile.rotation += MathHelper.Pi;
}
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2);
Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2);
Projectile.width = 32;
Projectile.height = 32;
Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2);
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
for (int i = 0; i < 10; i++)
{
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.SnowBlock, Projectile.oldVelocity.X / 4, Projectile.oldVelocity.Y / 4, 0, new Color(234, 183, 100), 1.5f);
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity *= 3f;
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<Eutrophication>(), 30);
}
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
target.AddBuff(ModContent.BuffType<Eutrophication>(), 30);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 B