added sunken sea fish, gemfish, stuffed fish, and spadefish

This commit is contained in:
termigator1359 committed 2019-11-06 21:26:40 -05:00
1 parent a359c1e370
commit 69a676ff60
18 files changed
+658 -7

No files matched your search

+133
View File
@@ -13,6 +13,7 @@ using CalamityMod.Items.Accessories.Vanity;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.AstralCatches;
using CalamityMod.Items.Fishing.SunkenSeaCatches;
using CalamityMod.Items.Fishing.FishingRods;
using CalamityMod.Items.Mounts;
using CalamityMod.Items.Pets;
@@ -7384,6 +7385,22 @@ namespace CalamityMod.CalPlayer
break;
}
}
/*if (ZoneSunkenSea)
{
switch (Main.rand.Next(2))
{
case 0:
rareItemList.Add(ModContent.ItemType<SparklingEmpress>());
break;
case 1:
rareItemList.Add(ModContent.ItemType<RustedJingleBell>());
break;
}
if (Main.hardMode)
{
rareItemList.Add(ModContent.ItemType<SerpentsBite>());
}
}*/
if (player.ZoneSnow && player.ZoneRockLayerHeight && (player.ZoneCorrupt || player.ZoneCrimson || player.ZoneHoly))
{
rareItemList.Add(ItemID.ScalyTruffle);
@@ -7400,6 +7417,10 @@ namespace CalamityMod.CalPlayer
{
rareItemList.Add(ItemID.CrystalSerpent);
}
if (player.ZoneDirtLayerHeight)
{
rareItemList.Add(ModContent.ItemType<Spadefish>());
}
if (rareItemList.Any())
{
@@ -7420,6 +7441,10 @@ namespace CalamityMod.CalPlayer
{
biomeCrateList.Add(ModContent.ItemType<AstralCrate>());
}
if (ZoneSunkenSea)
{
biomeCrateList.Add(ModContent.ItemType<SunkenCrate>());
}
if (player.ZoneCorrupt)
{
biomeCrateList.Add(ItemID.CorruptFishingCrate);
@@ -7444,6 +7469,7 @@ namespace CalamityMod.CalPlayer
{
biomeCrateList.Add(ItemID.FloatingIslandFishingCrate);
}
if (biomeCrateList.Any())
{
@@ -7528,6 +7554,75 @@ namespace CalamityMod.CalPlayer
}
}
if (ZoneSunkenSea) //Sunken Sea, fishing in water
{
int sunkenFish = Main.rand.Next(100);
if (caughtType == ItemID.WoodenCrate)
{
caughtType = ItemID.WoodenCrate;
}
else if (caughtType == ItemID.IronCrate)
{
caughtType = ItemID.IronCrate;
}
else if (caughtType == ItemID.GoldenCrate)
{
caughtType = ItemID.GoldenCrate;
}
else if (caughtType == ItemID.FrogLeg)
{
caughtType = ItemID.FrogLeg;
}
else if (caughtType == ItemID.BalloonPufferfish)
{
caughtType = ItemID.BalloonPufferfish;
}
else if (caughtType == ItemID.ZephyrFish)
{
caughtType = ItemID.ZephyrFish;
}
else if (sunkenFish >= 85 && Main.hardMode) //15%
{
caughtType = ModContent.ItemType<PrismaticGuppy>();
}
else if (sunkenFish <= 84 && sunkenFish >= 70) //15%
{
caughtType = ModContent.ItemType<SunkenSailfish>();
}
else if (sunkenFish <= 69 && sunkenFish >= 55) //15%
{
caughtType = ModContent.ItemType<CoralskinFoolfish>();
}
else if (player.cratePotion && sunkenFish <= 9 && sunkenFish >= 28) //20%
{
caughtType = ModContent.ItemType<SunkenCrate>();
}
else if (!player.cratePotion && sunkenFish <= 9 && sunkenFish >= 18) //10%
{
caughtType = ModContent.ItemType<SunkenCrate>();
}
else if (sunkenFish <= 29 && sunkenFish >= 31) //3%
{
caughtType = ModContent.ItemType<GreenwaveLoach>();
}
/*else if (sunkenFish <= 6 && sunkenFish >= 8 && Main.hardMode) //3%
{
caughtType = ModContent.ItemType<SerpentsBite>();
}
else if (sunkenFish <= 3 && sunkenFish >= 5) //3%
{
caughtType = ModContent.ItemType<RustedJingleBell>();
}
else if (sunkenFish <= 2 && sunkenFish >= 0) //3%
{
caughtType = ModContent.ItemType<SparklingEmpress>();
}*/
else //33% w/o crate pot, 23% w/ crate pot + 28% if prehardmode
{
caughtType = ModContent.ItemType<ScarredAngelfish>();
}
}
if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight)
{
if (Main.rand.NextBool(15))
@@ -7559,6 +7654,30 @@ namespace CalamityMod.CalPlayer
caughtType = ModContent.ItemType<EnchantedStarfish>();
}
}
if (player.ZoneOverworldHeight && Main.dayTime)
{
if (Main.rand.NextBool(15))
{
caughtType = ModContent.ItemType<StuffedFish>();
}
}
if (player.ZoneRockLayerHeight)
{
if (Main.rand.NextBool(15))
{
caughtType = ModContent.ItemType<GlimmeringGemfish>();
}
}
if (player.ZoneDirtLayerHeight)
{
if (Main.rand.NextBool(40))
{
caughtType = ModContent.ItemType<Spadefish>();
}
}
if (junk)
{
@@ -7639,6 +7758,20 @@ namespace CalamityMod.CalPlayer
}
}
}
//Quest Fish
if (ZoneSunkenSea && questFish == ModContent.ItemType<EutrophicSandfish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<EutrophicSandfish>();
}
if (ZoneSunkenSea && questFish == ModContent.ItemType<SurfClam>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<SurfClam>();
}
if (ZoneSunkenSea && questFish == ModContent.ItemType<Serpentuna>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Serpentuna>();
}
}
public override void GetFishingLevel(Item fishingRod, Item bait, ref int fishingLevel)
+47
View File
@@ -0,0 +1,47 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class GlimmeringGemfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Glimmering Gemfish");
Tooltip.SetDefault("Right click to extract herbs and seeds");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 34;
item.height = 30;
item.rare = 2;
item.value = Item.sellPrice(silver: 50);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
int gemMin = 1;
int gemMax = 3;
DropHelper.DropItemChance(player, ItemID.Amethyst, 0.5f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Topaz, 0.4f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Sapphire, 0.3f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Emerald, 0.2f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Ruby, 0.15f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Diamond, 0.1f, gemMin, gemMax);
DropHelper.DropItemChance(player, ItemID.Amber, 0.25f, gemMin, gemMax);
/*Mod thorium = ModLoader.GetMod("ThoriumMod");
DropHelper.DropItemChance(player, thorium.ItemType("Pearl"), 0.25f, gemMin, gemMax);
DropHelper.DropItemChance(player, thorium.ItemType("Opal"), 0.25f, gemMin, gemMax);
DropHelper.DropItemChance(player, thorium.ItemType("Onyx"), 0.25f, gemMin, gemMax);*/
}
}
}
+35
View File
@@ -0,0 +1,35 @@
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class Spadefish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Spadefish");
Tooltip.SetDefault("How can a fish be used to dig through the ground?\n" +
"Some questions are best left unanswered.");
}
public override void SetDefaults()
{
item.damage = 15;
item.melee = true;
item.width = 46;
item.height = 44;
item.useTime = 8;
item.useAnimation = 16;
item.useTurn = true;
item.pick = 30;
item.useStyle = 1;
item.knockBack = 2f;
item.value = Item.buyPrice(0, 2, 0, 0);
item.rare = 2;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
}
}
}
+62
View File
@@ -0,0 +1,62 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class StuffedFish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stuffed Fish");
Tooltip.SetDefault("Right click to extract herbs and seeds");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 34;
item.height = 30;
item.rare = 2;
item.value = Item.sellPrice(silver: 50);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
int herbMin = 1;
int herbMax = 3;
int seedMin = 2;
int seedMax = 5;
DropHelper.DropItemChance(player, ItemID.Daybloom, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Moonglow, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Waterleaf, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Deathweed, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Shiverthorn, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Fireblossom, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.Blinkroot, 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, ItemID.DaybloomSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.MoonglowSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.WaterleafSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.DeathweedSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.ShiverthornSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.FireblossomSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.BlinkrootSeeds, 0.20f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.GrassSeeds, 0.1f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.JungleGrassSeeds, 0.1f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.MushroomGrassSeeds, 0.1f, seedMin, seedMax);
DropHelper.DropItemChance(player, ItemID.PumpkinSeed, 0.05f, seedMin, seedMax);
DropHelper.DropItemCondition(player, ItemID.CorruptSeeds, !WorldGen.crimson, 0.05f, seedMin, seedMax);
DropHelper.DropItemCondition(player, ItemID.CrimsonSeeds, WorldGen.crimson, 0.05f, seedMin, seedMax);
DropHelper.DropItemCondition(player, ItemID.HallowedSeeds, Main.hardMode, 0.05f, seedMin, seedMax);
/*Mod thorium = ModLoader.GetMod("ThoriumMod");
DropHelper.DropItemChance(player, thorium.ItemType("MarineKelp"), 0.25f, herbMin, herbMax);
DropHelper.DropItemChance(player, thorium.ItemType("MarineKelpSeeds"), 0.1f, seedMin, seedMax);*/
}
}
}
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class CoralskinFoolfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Coralskin Foolfish"); //Potion material
Tooltip.SetDefault("Camouflage is one of nature's best defenses");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 28;
item.maxStack = 999;
item.value = Item.sellPrice(silver: 7);
item.rare = 2;
}
}
}
@@ -0,0 +1,41 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.World;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class EutrophicSandfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Eutrophic Sandfish");
}
public override void SetDefaults()
{
item.questItem = true;
item.maxStack = 1;
item.width = 40;
item.height = 28;
item.uniqueStack = true;
item.rare = ItemRarityID.Quest;
}
public override bool IsQuestFish()
{
return true;
}
public override bool IsAnglerQuestAvailable()
{
return CalamityWorld.downedDesertScourge;
}
public override void AnglerQuestChat(ref string description, ref string catchLocation)
{
description = "You ever get to see what would happen if a lizard that lived in the desert scurried too deep underground? I did, and they sure are cool! But it’s way too slippery for me to get my hands on it now. You go and get it so I can keep it as a pet!";
catchLocation = "Caught in the Sunken Sea.";
}
}
}
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class GreenwaveLoach : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Greenwave Loach");
Tooltip.SetDefault("An endangered fish that is highly prized in the market");
}
public override void SetDefaults()
{
item.width = 40;
item.height = 38;
item.maxStack = 999;
item.value = Item.sellPrice(gold: 10);
item.rare = 3;
}
}
}
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class PrismaticGuppy : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Prismatic Guppy");
Tooltip.SetDefault("Throwing these in an aquarium would be insanity");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 28;
item.maxStack = 999;
item.value = Item.sellPrice(silver: 7);
item.rare = 2;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class ScarredAngelfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Scarred Angelfish"); //Bass substitute
Tooltip.SetDefault("The mark of a fallen angel");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 26;
item.maxStack = 999;
item.value = Item.sellPrice(silver: 5);
item.rare = 1;
}
}
}
@@ -0,0 +1,40 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class Serpentuna : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Serpentuna");
}
public override void SetDefaults()
{
item.questItem = true;
item.maxStack = 1;
item.width = 36;
item.height = 40;
item.uniqueStack = true;
item.rare = ItemRarityID.Quest;
}
public override bool IsQuestFish()
{
return true;
}
public override bool IsAnglerQuestAvailable()
{
return Main.hardMode;
}
public override void AnglerQuestChat(ref string description, ref string catchLocation)
{
description = "Sea serpents are pretty but not as pretty as the look on someone's face when they find one in their chair. I need you to fetch me the props for my next big scare, and the deadline is tomorrow.";
catchLocation = "Caught in the Sunken Sea.";
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

@@ -0,0 +1,97 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.Tiles.SunkenSea;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class SunkenCrate : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sunken Crate");
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 32;
item.height = 32;
item.rare = 2;
item.value = Item.sellPrice(gold: 1);
item.createTile = ModContent.TileType<SunkenCrateTile>();
item.useTurn = true;
item.autoReuse = true;
item.useAnimation = 15;
item.useTime = 10;
item.useStyle = 1;
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
//Modded materials
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.Navystone>(), 10, 30);
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.EutrophicSand>(), 10, 30);
if (CalamityWorld.downedDesertScourge)
{
DropHelper.DropItem(player, ModContent.ItemType<PrismShard>(), 10, 20);
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.SeaPrism>(), 5, 10);
}
if (Main.hardMode)
{
DropHelper.DropItemChance(player, ModContent.ItemType<MolluskHusk>(), 0.5f, 5, 15);
}
// Weapons
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode, 0.2f,
ModContent.ItemType<ShellfishStaff>(),
ModContent.ItemType<ClamCrusher>(),
ModContent.ItemType<Poseidon>(),
ModContent.ItemType<ClamorRifle>());
//Bait
DropHelper.DropItemChance(player, ItemID.MasterBait, 10, 1, 2);
DropHelper.DropItemChance(player, ItemID.JourneymanBait, 5, 1, 3);
DropHelper.DropItemChance(player, ItemID.ApprenticeBait, 3, 2, 3);
//Potions
DropHelper.DropItemChance(player, ItemID.ObsidianSkinPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.SwiftnessPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.IronskinPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.NightOwlPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.ShinePotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.MiningPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.HeartreachPotion, 10, 1, 3);
DropHelper.DropItemChance(player, ItemID.TrapsightPotion, 10, 1, 3); //Dangersense Potion
if (Main.hardMode)
{
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.GreaterHealingPotion: ItemID.GreaterManaPotion, 5, 10);
}
else
{
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.HealingPotion : ItemID.ManaPotion, 5, 10);
}
//Money
DropHelper.DropItem(player, ItemID.SilverCoin, 10, 90);
DropHelper.DropItemChance(player, ItemID.GoldCoin, 0.5f, 1, 5);
}
}
}
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class SunkenSailfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sunken Sailfish"); //Potion material
Tooltip.SetDefault("Zooming at 60 miles per hour");
}
public override void SetDefaults()
{
item.width = 58;
item.height = 52;
item.maxStack = 999;
item.value = Item.sellPrice(silver: 7);
item.rare = 2;
}
}
}
@@ -0,0 +1,41 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.World;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class SurfClam : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Surf Clam");
}
public override void SetDefaults()
{
item.questItem = true;
item.maxStack = 1;
item.width = 20;
item.height = 20;
item.uniqueStack = true;
item.rare = ItemRarityID.Quest;
}
public override bool IsQuestFish()
{
return true;
}
public override bool IsAnglerQuestAvailable()
{
return CalamityWorld.downedDesertScourge;
}
public override void AnglerQuestChat(ref string description, ref string catchLocation)
{
description = "Did you know that clams are a delicacy? Rumor has it that a big colony lives beneath the Desert. Just talking about them makes me hungry. I need you to fetch one for me, so I can practice my culinary skills and curb my hunger.";
catchLocation = "Caught in the Sunken Sea.";
}
}
}
+7 -7
View File
@@ -583,18 +583,18 @@ namespace CalamityMod.NPCs.AquaticScourge
if (!Main.expertMode)
{
// Materials
DropHelper.DropItemCondition(npc, ItemID.SoulofSight, Main.hardMode, 20, 40);
DropHelper.DropItem(npc, ItemID.SoulofSight, 20, 40);
DropHelper.DropItem(npc, ModContent.ItemType<VictoryShard>(), 11, 20);
DropHelper.DropItem(npc, ItemID.Coral, 5, 9);
DropHelper.DropItem(npc, ItemID.Seashell, 5, 9);
DropHelper.DropItem(npc, ItemID.Starfish, 5, 9);
// Weapons (Hardmode only)
DropHelper.DropItemCondition(npc, ModContent.ItemType<SubmarineShocker>(), Main.hardMode, 4, 1, 1);
DropHelper.DropItemCondition(npc, ModContent.ItemType<Barinautical>(), Main.hardMode, 4, 1, 1);
DropHelper.DropItemCondition(npc, ModContent.ItemType<Downpour>(), Main.hardMode, 4, 1, 1);
DropHelper.DropItemCondition(npc, ModContent.ItemType<DeepseaStaff>(), Main.hardMode, 4, 1, 1);
DropHelper.DropItemCondition(npc, ModContent.ItemType<ScourgeoftheSeas>(), Main.hardMode, 4, 1, 1);
// Weapons
DropHelper.DropItemChance(npc, ModContent.ItemType<SubmarineShocker>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<Barinautical>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<Downpour>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<DeepseaStaff>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<ScourgeoftheSeas>(), 4);
// Equipment
DropHelper.DropItemChance(npc, ModContent.ItemType<AeroStone>(), 9);
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+40
View File
@@ -0,0 +1,40 @@
using CalamityMod.Dusts;
using CalamityMod.Items.Fishing.SunkenSeaCatches;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace CalamityMod.Tiles.SunkenSea
{
public class SunkenCrateTile : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = true;
Main.tileLighted[Type] = true;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
Main.tileWaterDeath[Type] = false;
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Sunken Crate");
AddMapEntry(new Color(106, 218, 230), name);
dustType = 253;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<SunkenCrate>());
}
}
}