New bobber accessories
This commit is contained in:
1 parent
1148f65998
commit
aac159cf47
22 files changed
+465
-280
No files matched your search
@@ -177,15 +177,15 @@ namespace CalamityMod.CalPlayer
|
||||
public enum FishingMinigames
|
||||
{
|
||||
None,
|
||||
WulfrumRod,
|
||||
NavyFishingRod,
|
||||
HeronRod,
|
||||
SlurperPole,
|
||||
VerstaltiteFishingRod,
|
||||
FeralDoubleRod,
|
||||
RiftReeler,
|
||||
EarlyBloomRod,
|
||||
TheDevourerOfCods
|
||||
ScrapBobber,
|
||||
NavystoneBobber,
|
||||
SkylineBobber,
|
||||
CragsBobber,
|
||||
CryonicBobber,
|
||||
PerennialBobber,
|
||||
ScoriaBobber,
|
||||
UelibloomBobber,
|
||||
CosmiliteBobber
|
||||
}
|
||||
public FishingMinigames SelectedFishingMinigame = FishingMinigames.None;
|
||||
public bool countsAsAnyWet => (Player.armor[0].type == ItemID.FishBowl || Player.wetCount > 0 || Player.wet || Player.honeyWet || Player.lavaWet);
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class CosmiliteBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/DevourerofCodsBobber";
|
||||
public static List<int> FishToEat = new List<int>()
|
||||
{
|
||||
ItemID.Bass,
|
||||
ItemID.AtlanticCod,
|
||||
ItemID.Flounder,
|
||||
ItemID.NeonTetra,
|
||||
ItemID.RedSnapper,
|
||||
ItemID.RockLobster,
|
||||
ItemID.Salmon,
|
||||
ItemID.Shrimp,
|
||||
ItemID.Trout,
|
||||
ItemID.Tuna,
|
||||
ModContent.ItemType<CharredLasher>(),
|
||||
ModContent.ItemType<CragBullhead>(),
|
||||
ModContent.ItemType<ProcyonidPrawn>(),
|
||||
ModContent.ItemType<TwinklingPollox>(),
|
||||
ModContent.ItemType<PlantyMush>()
|
||||
};
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
|
||||
Item.rare = ModContent.RarityType<CosmicPurple>();
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
player.accLavaFishing = true;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScoriaBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<CosmiliteBar>(2).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Placeables.Crags;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
internal class CragsBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/SlurperBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<BrimstoneSlag>(3).
|
||||
AddIngredient<ScorchedBone>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
internal class CryonicBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/VerstaltiteBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<CryonicBar>(2).
|
||||
AddIngredient(ItemID.CrystalShard).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class NavystoneBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/NavyBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.NavystoneBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<PearlShard>().
|
||||
AddIngredient<Navystone>(2).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class PerennialBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/FeralDoubleBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10 + (int)((1f + (player.statLifeMax2 - player.statLife) * 0.25f));
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.PerennialBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<PerennialBar>(2).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class ScoriaBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/RiftReelerBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
player.accLavaFishing = true;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScoriaBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<ScoriaBar>(2).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class ScrapBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/WulfrumBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 5;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScrapBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<WulfrumMetalScrap>(2).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
internal class SkylineBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/HeronBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SkylineBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<AerialiteBar>(2).
|
||||
AddIngredient(ItemID.Feather).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
internal class UelibloomBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/EarlyBloomBobber";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 9;
|
||||
Item.height = 9;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.fishingSkill += 10;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FishingBobber).
|
||||
AddIngredient<UelibloomBar>(2).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,30 +26,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<EarlyBloomBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
player.accFishingLine = true;
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.EarlyBloomRod;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.EarlyBloomRod;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -25,31 +25,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<FeralDoubleBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.FeralDoubleRod;
|
||||
Item.fishingPole = 40 +(int)((1f + (player.statLifeMax2 - player.statLife) * 0.25f));
|
||||
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.FeralDoubleRod;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -29,29 +29,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<HeronBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.HeronRod;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.HeronRod;
|
||||
}
|
||||
|
||||
public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor)
|
||||
|
||||
@@ -25,29 +25,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<NavyBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.NavyFishingRod;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.NavyFishingRod;
|
||||
}
|
||||
|
||||
public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor)
|
||||
|
||||
@@ -31,28 +31,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<RiftReelerBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.accessory = true;
|
||||
}
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.RiftReeler;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.RiftReeler;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -28,31 +28,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<SlurperBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SlurperPole;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SlurperPole;
|
||||
}
|
||||
|
||||
public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor)
|
||||
{
|
||||
lineOriginOffset = new Vector2(45f, -43f);
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
@@ -17,24 +13,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
{
|
||||
public class TheDevourerofCods : ModItem, ILocalizedModType
|
||||
{
|
||||
public static List<int> FishToEat = new List<int>()
|
||||
{
|
||||
ItemID.Bass,
|
||||
ItemID.AtlanticCod,
|
||||
ItemID.Flounder,
|
||||
ItemID.NeonTetra,
|
||||
ItemID.RedSnapper,
|
||||
ItemID.RockLobster,
|
||||
ItemID.Salmon,
|
||||
ItemID.Shrimp,
|
||||
ItemID.Trout,
|
||||
ItemID.Tuna,
|
||||
ModContent.ItemType<CharredLasher>(),
|
||||
ModContent.ItemType<CragBullhead>(),
|
||||
ModContent.ItemType<ProcyonidPrawn>(),
|
||||
ModContent.ItemType<TwinklingPollox>(),
|
||||
ModContent.ItemType<PlantyMush>()
|
||||
};
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -54,32 +32,13 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<DevourerofCodsBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
|
||||
Item.rare = ModContent.RarityType<CosmicPurple>();
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.TheDevourerOfCods;
|
||||
player.accFishingLine = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.TheDevourerOfCods;
|
||||
}
|
||||
|
||||
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 < 10; i++)
|
||||
|
||||
@@ -29,32 +29,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shoot = ModContent.ProjectileType<VerstaltiteBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
player.accFishingLine = true;
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.VerstaltiteFishingRod;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.VerstaltiteFishingRod;
|
||||
}
|
||||
|
||||
public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor)
|
||||
{
|
||||
lineOriginOffset = new Vector2(43f, -36f);
|
||||
|
||||
@@ -24,29 +24,6 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.shootSpeed = 10f;
|
||||
Item.shoot = ModContent.ProjectileType<WulfrumBobber>();
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override bool AllowPrefix(int pre)
|
||||
{
|
||||
if (pre == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanReforge()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SelectedFishingMinigame == CalamityPlayer.FishingMinigames.None)
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.WulfrumRod;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.WulfrumRod;
|
||||
}
|
||||
|
||||
public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor)
|
||||
|
||||
@@ -307,7 +307,6 @@ EarlyBloomRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires six lines at once. Line never snaps
|
||||
Equip this as an accessory to disable fishing minigames
|
||||
'The early bird catches the fish'
|
||||
'''
|
||||
}
|
||||
@@ -317,12 +316,7 @@ FeralDoubleRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires two lines at once
|
||||
Gains fishing power the more life you have lost
|
||||
Provides a fishing minigame
|
||||
Press <right> to drain life
|
||||
Draining life speeds up catches
|
||||
Bobbers can hook onto enemies, dealing damage when life is drained
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
Just as you have tamed the jungle monster, you can now tame the fish in the sea
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -331,12 +325,8 @@ HeronRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by {0}x when in space
|
||||
Provides a fishing minigame
|
||||
Moving while fishing instead moves your bobbers
|
||||
Rings appear over time above the water's surface
|
||||
Touching a ring hooks an item onto the bobber
|
||||
Bobbers will automatically reel in hooked items upon landing back in the water
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
'A silent head and beak lanced down and plucked it out by the head,
|
||||
and the beak swallowed the little fish while its tail waved frantically.'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -345,10 +335,8 @@ NavyFishingRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires bobbers that inflict Static Discharge on nearby enemies
|
||||
Provides a fishing minigame
|
||||
The bobber will float at your height underwater, allowing underwater fishing
|
||||
Move in the indicated direction while fishing to catch items
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
'The sea is a city. Just below are highways, boulevards,
|
||||
streets, and roundabouts bustling with submarine traffic.'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -358,11 +346,8 @@ RiftReeler: {
|
||||
'''
|
||||
Fires four lines at once
|
||||
Can fish in lava
|
||||
Provides a fishing minigame
|
||||
Moving while fishing instead moves your bobbers
|
||||
Rifts appear over time in liquids, containing an item
|
||||
When bobbers touch a rift, they automatically reel in the item within
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
'The battlefield is a scene of constant chaos.
|
||||
The winner will be the one who controls that chaos, both the pole and the fish.'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -371,7 +356,6 @@ SlurperPole: {
|
||||
Tooltip:
|
||||
'''
|
||||
Can fish in lava
|
||||
Equip this as an accessory to disable fishing minigames
|
||||
'It is the burning lava of the soul that has a furnace within--a very volcano of grief and sorrow.'
|
||||
'''
|
||||
}
|
||||
@@ -381,11 +365,6 @@ TheDevourerofCods: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires ten lines at once. Line never snaps and can fish from lava
|
||||
Provides a fishing minigame
|
||||
Hooked items stay hooked forever
|
||||
Common fish are automatically consumed while fishing
|
||||
Consuming fish allows a bobber to hook a new item and feeds the user
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
'The devourer was once just an Eater of Shoals'
|
||||
'''
|
||||
}
|
||||
@@ -395,7 +374,6 @@ VerstaltiteFishingRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by {0}x when in the tundra
|
||||
Equip this as an accessory to disable fishing minigames
|
||||
The ancient alloy's prismatic qualities are perfect for attracting fish
|
||||
'''
|
||||
}
|
||||
@@ -405,10 +383,6 @@ WulfrumRod: {
|
||||
Tooltip:
|
||||
'''
|
||||
Can fish up Wulfrum Metal Scrap and Wulfrum Energy Cores
|
||||
Provides a fishing minigame
|
||||
Move in the indicated direction while fishing to catch items
|
||||
The rod empowers the longer you go without a mistake, speeding it up
|
||||
Equip this as an accessory to use this minigame for other rods
|
||||
'This barely works, but it's better than nothing...'
|
||||
'''
|
||||
}
|
||||
@@ -418,3 +392,94 @@ GrandMarquisBait: {
|
||||
DisplayName: Grand Marquis Bait
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
// Bobbers
|
||||
ScrapBobber: {
|
||||
DisplayName: Wulfrum Scrap Bobber
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 5
|
||||
Provides a fishing minigame
|
||||
Move in the indicated direction while fishing to catch items
|
||||
The rod empowers the longer you go without a mistake, speeding it up
|
||||
'There's supposed to be a fish finder installed, but it only beeps when you point it at yourself...'
|
||||
'''
|
||||
}
|
||||
|
||||
NavystoneBobber: {
|
||||
DisplayName: Navystone Bobber
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 10
|
||||
Provides a fishing minigame
|
||||
The bobber will float at your height underwater, allowing underwater fishing
|
||||
Move in the indicated direction while fishing to catch items
|
||||
'''
|
||||
}
|
||||
|
||||
CragsBobber: {
|
||||
DisplayName: Charred Bobber
|
||||
Tooltip: "Increases fishing power by 10"
|
||||
}
|
||||
|
||||
SkylineBobber: {
|
||||
DisplayName: Skyline Bobber
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 10
|
||||
Provides a fishing minigame
|
||||
Moving while fishing instead moves your bobbers
|
||||
Rings appear over time above the water's surface
|
||||
Touching a ring hooks an item onto the bobber
|
||||
Bobbers will automatically reel in hooked items upon landing back in the water
|
||||
'''
|
||||
}
|
||||
|
||||
CryonicBobber: {
|
||||
DisplayName: Crystalline Bobber
|
||||
Tooltip: "Increases fishing power by 10"
|
||||
}
|
||||
|
||||
PerennialBobber: {
|
||||
DisplayName: Bobber of the Wild
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 10
|
||||
Gains fishing power the more life you have lost
|
||||
Provides a fishing minigame
|
||||
Press <right> to drain life
|
||||
Draining life speeds up catches
|
||||
Bobbers can hook onto enemies, dealing damage when life is drained
|
||||
'''
|
||||
}
|
||||
|
||||
ScoriaBobber: {
|
||||
DisplayName: Thermal Bobber
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 10
|
||||
Allows fishing in lava
|
||||
Provides a fishing minigame
|
||||
Moving while fishing instead moves your bobbers
|
||||
Rifts appear over time in liquids, containing an item
|
||||
When bobbers touch a rift, they automatically reel in the item within
|
||||
'''
|
||||
}
|
||||
|
||||
UelibloomBobber: {
|
||||
DisplayName: Blooming Bobber
|
||||
Tooltip: "Increases fishing power by 10"
|
||||
}
|
||||
|
||||
CosmiliteBobber: {
|
||||
DisplayName: Hyperdeath Fish Catcher
|
||||
Tooltip:
|
||||
'''
|
||||
Increases fishing power by 10
|
||||
Provides a fishing minigame
|
||||
Hooked items stay hooked forever
|
||||
Common fish are automatically consumed while fishing
|
||||
Consuming fish allows a bobber to hook a new item and feeds the user
|
||||
[c/E7A7FF:'A FISH DOES NOT FEAR DEATH!']
|
||||
'''
|
||||
}
|
||||
@@ -181,6 +181,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
AddScavengerItem(black, ItemID.GoldenCrate, 1, () => !Main.hardMode, 0.02f);
|
||||
AddScavengerItem(black, ItemID.GoldenCrateHard, 1, () => Main.hardMode, 0.02f);
|
||||
AddScavengerItem(black, ItemID.WaterWalkingBoots, 1, 0.05f);
|
||||
AddScavengerItem(black, ItemID.FishingBobber, 1, 0.05f);
|
||||
AddScavengerItem(black, ItemID.JellyfishNecklace, 1, 0.05f);
|
||||
AddScavengerItem(white, ModContent.ItemType<SerpentsBite>(), 1, 0.05f);
|
||||
//AddScavengerItem(black, ItemID.Nachos, 1, 0.05f); insert food item
|
||||
|
||||
@@ -3045,7 +3045,7 @@ namespace CalamityMod.Projectiles
|
||||
//If hooking an NPC, this is set to the NPC ID but negative. Still need to find how this gets treated upon reeling in.
|
||||
switch (owner.Calamity().SelectedFishingMinigame)
|
||||
{
|
||||
case CalamityPlayer.FishingMinigames.WulfrumRod:
|
||||
case CalamityPlayer.FishingMinigames.ScrapBobber:
|
||||
{
|
||||
if (CatchTime < 0 || (isReelingIn == 1 && CaughtItemID > 0))
|
||||
{
|
||||
@@ -3156,7 +3156,7 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
|
||||
case CalamityPlayer.FishingMinigames.RiftReeler:
|
||||
case CalamityPlayer.FishingMinigames.ScoriaBobber:
|
||||
{
|
||||
if (PersistentFishingData == -1)
|
||||
{
|
||||
@@ -3263,7 +3263,7 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
|
||||
case CalamityPlayer.FishingMinigames.FeralDoubleRod:
|
||||
case CalamityPlayer.FishingMinigames.PerennialBobber:
|
||||
if (projectile.ai[0] == 0)
|
||||
{
|
||||
if (projectile.wet) //Fishing in water
|
||||
@@ -3324,7 +3324,7 @@ namespace CalamityMod.Projectiles
|
||||
break;
|
||||
|
||||
|
||||
case CalamityPlayer.FishingMinigames.NavyFishingRod:
|
||||
case CalamityPlayer.FishingMinigames.NavystoneBobber:
|
||||
{
|
||||
if (CatchTime < 0 || (isReelingIn == 1 && CaughtItemID > 0))
|
||||
{
|
||||
@@ -3443,8 +3443,8 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
|
||||
case CalamityPlayer.FishingMinigames.TheDevourerOfCods:
|
||||
var fishToEat = TheDevourerofCods.FishToEat;
|
||||
case CalamityPlayer.FishingMinigames.CosmiliteBobber:
|
||||
var fishToEat = CosmiliteBobber.FishToEat;
|
||||
if (projectile.ai[1] < -1)
|
||||
{
|
||||
//Coonsuming a fish provides/increases the player's food buffs.
|
||||
@@ -3489,7 +3489,7 @@ namespace CalamityMod.Projectiles
|
||||
return false;
|
||||
|
||||
|
||||
case CalamityPlayer.FishingMinigames.HeronRod:
|
||||
case CalamityPlayer.FishingMinigames.SkylineBobber:
|
||||
{
|
||||
if (CatchTime < 0 || (isReelingIn == 1 && CaughtItemID > 0))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user