HighTestFishingPoleList.
This commit is contained in:
1 parent
6665cd5465
commit
14792e20b8
5 files changed
+39
-13
No files matched your search
@@ -3081,7 +3081,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityLists.highTestFishList.Contains(Player.ActiveItem().type))
|
||||
if (HighTestFishingPoleList.IsHighTestFishingPole(Player.ActiveItem()))
|
||||
Player.accFishingLine = true;
|
||||
|
||||
if (planarSpeedBoost != 0)
|
||||
|
||||
@@ -77,8 +77,6 @@ namespace CalamityMod
|
||||
{
|
||||
public sealed class CalamityLists : ModSystem
|
||||
{
|
||||
public static List<int> scopedWeaponList;
|
||||
public static List<int> highTestFishList;
|
||||
public static List<int> forceItemList;
|
||||
public static List<int> livingFireBlockList;
|
||||
public static List<int> amalgamBuffList;
|
||||
@@ -143,14 +141,6 @@ namespace CalamityMod
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
// TODO -- override HoldItem => Player.accFishingLine = true; on these items, just like the scope fix...
|
||||
highTestFishList = new List<int>()
|
||||
{
|
||||
ItemID.GoldenFishingRod,
|
||||
ItemType<EarlyBloomRod>(),
|
||||
ItemType<TheDevourerofCods>()
|
||||
};
|
||||
|
||||
forceItemList = new List<int>()
|
||||
{
|
||||
ItemType<SubmarineShocker>(),
|
||||
@@ -1389,8 +1379,6 @@ namespace CalamityMod
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
scopedWeaponList = null;
|
||||
highTestFishList = null;
|
||||
forceItemList = null;
|
||||
livingFireBlockList = null;
|
||||
amalgamBuffList = null;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
player.accFishingLine = 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 < 6; i++)
|
||||
|
||||
@@ -33,6 +33,11 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
}
|
||||
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
player.accFishingLine = 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 < 10; i++)
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Fishing.FishingRods;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class HighTestFishingPoleList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ItemID.GoldenFishingRod,
|
||||
ItemType<EarlyBloomRod>(),
|
||||
ItemType<TheDevourerofCods>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool IsHighTestFishingPole(Item item) => List.Contains(item.type);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user