Removed Paraseas

This commit is contained in:
Dominic committed 2022-06-11 21:07:30 -05:00
1 parent e53c8da192
commit b762dab0db
11 files changed
-244

No files matched your search

@@ -1,33 +0,0 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class AquaticSeekerBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Aquatic Seeker");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 6;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

-32
View File
@@ -1,32 +0,0 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class ParaseaBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Parasea");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 11;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

@@ -1,32 +0,0 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Banners
{
public class PhantomDebrisBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Phantom Debris");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 86;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

-32
View File
@@ -1,32 +0,0 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Banners
{
public class SunBatBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Sun Bat");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 74;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

-109
View File
@@ -1,109 +0,0 @@
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.Utilities;
namespace CalamityMod.NPCs.NormalNPCs
{
public class Parasea : ModNPC
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Parasea");
Main.npcFrameCount[NPC.type] = 4;
}
public override void SetDefaults()
{
NPC.aiStyle = -1;
AIType = -1;
NPC.noGravity = true;
NPC.damage = 50;
NPC.width = NPC.height = 30;
NPC.defense = 8;
NPC.lifeMax = 400;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 0, 6, 0);
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
Banner = NPC.type;
BannerItem = ModContent.ItemType<ParaseaBanner>();
NPC.Calamity().VulnerableToHeat = false;
NPC.Calamity().VulnerableToSickness = true;
NPC.Calamity().VulnerableToElectricity = true;
NPC.Calamity().VulnerableToWater = false;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Ocean,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("idk...")
});
}
public override void AI()
{
bool death = CalamityWorld.death;
float speed = death ? 16f : 13f;
CalamityAI.DungeonSpiritAI(NPC, Mod, speed, MathHelper.Pi);
}
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
if (spawnInfo.PlayerSafe || spawnInfo.Player.Calamity().ZoneSulphur || (!NPC.downedPlantBoss && !DownedBossSystem.downedCalamitas))
{
return 0f;
}
return SpawnCondition.OceanMonster.Chance * 0.06f;
}
public override void FindFrame(int frameHeight)
{
NPC.frameCounter += 0.15f;
NPC.frameCounter %= Main.npcFrameCount[NPC.type];
int frame = (int)NPC.frameCounter;
NPC.frame.Y = frame * frameHeight;
}
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
{
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
int height = texture.Height / Main.npcFrameCount[NPC.type];
int width = texture.Width;
SpriteEffects spriteEffects = SpriteEffects.FlipHorizontally;
if (NPC.spriteDirection == -1)
spriteEffects = SpriteEffects.None;
Main.spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY), NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, new Vector2((float)width / 2f, (float)height / 2f), NPC.scale, spriteEffects, 0f);
return false;
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(BuffID.Bleeding, 60, true);
}
public override void HitEffect(int hitDirection, double damage)
{
for (int k = 0; k < 3; k++)
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
}
if (NPC.life <= 0)
{
for (int k = 0; k < 10; k++)
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
}
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

-6
View File
@@ -336,9 +336,6 @@ namespace CalamityMod
case 10:
item = ModContent.ItemType<AquaticAberrationBanner>();
break;
case 11:
item = ModContent.ItemType<ParaseaBanner>();
break;
case 12:
item = ModContent.ItemType<SeaUrchinBanner>();
break;
@@ -725,9 +722,6 @@ namespace CalamityMod
case 10:
npc = ModContent.NPCType<AquaticAberration>();
break;
case 11:
npc = ModContent.NPCType<Parasea>();
break;
case 12:
npc = ModContent.NPCType<SeaUrchin>();
break;