Removed the Sea Shell accessory

This commit is contained in:
Dominic committed 2022-06-11 20:46:51 -05:00
1 parent b3a0241bdd
commit 538b602700
9 files changed
-197

No files matched your search

-2
View File
@@ -465,7 +465,6 @@ namespace CalamityMod.CalPlayer
public bool dAmulet = false;
public bool fCarapace = false;
public bool gShell = false;
public bool seaShell = false;
public bool absorber = false;
public bool aAmpoule = false;
public bool sponge = false;
@@ -1640,7 +1639,6 @@ namespace CalamityMod.CalPlayer
dAmulet = false;
fCarapace = false;
gShell = false;
seaShell = false;
absorber = false;
aAmpoule = false;
sponge = false;
-12
View File
@@ -1405,18 +1405,6 @@ namespace CalamityMod.CalPlayer
Player.manaRegenBonus += 4;
}
// Sea Shell bonus
if (seaShell)
{
if (Player.IsUnderwater())
{
Player.statDefense += 3;
Player.endurance += 0.05f;
Player.moveSpeed += 0.1f;
Player.ignoreWater = true;
}
}
// Affliction bonus
if (affliction || afflicted)
{
-34
View File
@@ -1,34 +0,0 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
public class SeaShell : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Sea Shell");
Tooltip.SetDefault("Increased defense and damage reduction when submerged in liquid\n" +
"Increased movement speed when submerged in liquid");
}
public override void SetDefaults()
{
Item.defense = 3;
Item.width = 20;
Item.height = 24;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.seaShell = true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 B

-4
View File
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("5% increased movement and jump speed\n" +
"+20 max life and mana\n" +
"Standing still boosts life and mana regen\n" +
"Increased defense, movement speed and damage reduction while submerged in liquid\n" +
"Enemies take damage when they touch you\n" +
"You emit a cloud of mushroom spores when you are hit\n" +
"7% increased damage reduction\n" +
@@ -41,7 +40,6 @@ namespace CalamityMod.Items.Accessories
// Removed Giant Shell speed boost from The Absorber
// modPlayer.gShell = true;
modPlayer.fCarapace = true;
modPlayer.seaShell = true;
modPlayer.absorber = true;
player.statManaMax2 += 20;
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true;
@@ -51,7 +49,6 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<GrandGelatin>().
AddIngredient<SeaShell>().
AddIngredient<CrawCarapace>().
AddIngredient<FungalCarapace>().
AddIngredient<GiantTortoiseShell>().
@@ -65,7 +62,6 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<GrandGelatin>().
AddIngredient<SeaShell>().
AddIngredient<FungalCarapace>().
AddIngredient<GiantShell>().
AddIngredient<GiantTortoiseShell>().
-2
View File
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories
"+30 max life and mana\n" +
"5% increased movement and jump speed\n" +
"Standing still boosts life and mana regen\n" +
"Increased defense, movement speed and damage reduction while submerged in liquid\n" +
"Enemies take damage when they touch you\n" +
"You emit a cloud of mushroom spores when you are hit\n" +
"6.25% of the damage from enemy attacks is absorbed and converted into healing\n" +
@@ -48,7 +47,6 @@ namespace CalamityMod.Items.Accessories
// Removed Giant Shell speed boost from Sponge
// modPlayer.gShell = true;
modPlayer.fCarapace = true;
modPlayer.seaShell = true;
modPlayer.absorber = true;
modPlayer.sponge = true;
player.statManaMax2 += 30;
-60
View File
@@ -1,60 +0,0 @@
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Typeless
{
public class MarkedMagnum : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Marked Magnum");
Tooltip.SetDefault("Shots reduce enemy protection\n" +
"This weapon scales with all your damage stats at once");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.DamageType = AverageDamageClass.Instance;
Item.damage = 4;
Item.width = 54;
Item.height = 20;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
Item.value = Item.buyPrice(0, 2, 0, 0);
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item33;
Item.autoReuse = false;
Item.shootSpeed = 12f;
Item.shoot = ModContent.ProjectileType<MarkRound>();
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-5, 0);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 0f);
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.HellstoneBar, 7).
AddIngredient(ItemID.Obsidian, 15).
AddIngredient(ItemID.GlowingMushroom, 15).
AddTile(TileID.Anvils).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

-83
View File
@@ -1,83 +0,0 @@
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class MarkRound : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/LaserProj";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Laser");
}
public override void SetDefaults()
{
Projectile.width = 5;
Projectile.height = 5;
Projectile.friendly = true;
Projectile.alpha = 255;
Projectile.penetrate = 1;
Projectile.extraUpdates = 2;
Projectile.timeLeft = 300;
}
public override void AI()
{
if (Projectile.alpha > 0)
{
Projectile.alpha -= 25;
}
if (Projectile.alpha < 0)
{
Projectile.alpha = 0;
}
Lighting.AddLight((int)Projectile.Center.X / 16, (int)Projectile.Center.Y / 16, 0.5f, 0f, 0.7f);
float num55 = 30f;
float num56 = 2f;
if (Projectile.ai[1] == 0f)
{
Projectile.localAI[0] += num56;
if (Projectile.localAI[0] > num55)
{
Projectile.localAI[0] = num55;
}
}
else
{
Projectile.localAI[0] -= num56;
if (Projectile.localAI[0] <= 0f)
{
Projectile.Kill();
}
}
}
public override Color? GetAlpha(Color lightColor) => new Color(200, 0, 250, 0);
public override bool PreDraw(ref Color lightColor) => Projectile.DrawBeam(30f, 2f, lightColor);
public override void Kill(int timeLeft)
{
int dustAmt = Main.rand.Next(3, 7);
for (int d = 0; d < dustAmt; d++)
{
int purple = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, 173, 0f, 0f, 100, default, 2.1f);
Main.dust[purple].velocity *= 2f;
Main.dust[purple].noGravity = true;
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 480);
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 480);
}
}
}