Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Changed Fishing folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsukino-uwu committed Jun 11, 2020
1 parent 5637d33 commit 9ce1d5e
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
Binary file modified .vs/NekoTweakMod/v16/.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions Fishing/AddModdedCrateToForest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public override void CatchFish(Item fishingRod, Item bait, int power, int liquid
// Main.rand.Next(1) == 0) is the catch % chance to catch the Crate
// n/100 chance or 1 = 100%
{
caughtType = ItemType<ForestCrate>();
caughtType = ItemType<Fishing.Items.ForestCrate>();
}
{
if (liquidType == 2 && Main.rand.Next(1) == 0) // if prehardmode
{
caughtType = ItemType<ForestCrate>();
caughtType = ItemType<Fishing.Items.ForestCrate>();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Terraria;
using Terraria.ModLoader;
namespace NekoTweakMod.Fishing
namespace NekoTweakMod.Fishing.Items
{
public class AddItemToCrate : GlobalItem
{
Expand Down
2 changes: 1 addition & 1 deletion Fishing/FishingRods.cs → Fishing/Items/FishingRods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Terraria;
using Terraria.ModLoader;

namespace NekoTweakMod.Fishing
namespace NekoTweakMod.Fishing.Items
{
public class FishingRods : GlobalItem // class name & vanilla hook
{
Expand Down
4 changes: 2 additions & 2 deletions Fishing/ForestCrate.cs → Fishing/Items/ForestCrate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using static Terraria.ModLoader.ModContent;
using Terraria;

namespace NekoTweakMod.Fishing // where this file is located in the mods folders
namespace NekoTweakMod.Fishing.Items // where this file is located in the mods folders
{
public class ForestCrate : ModItem // Here we are setting up the crate as an item while in the players inventory, and making it so it creates a tile when placed
{
Expand All @@ -25,7 +25,7 @@ public override void SetDefaults()
item.consumable = true; // if doing something with the item consumes/removes it
item.value = Item.sellPrice(0, 1, 0, 0); ; // sets the sale/purchase value of the item ( plat,gold,silver,copper)
item.rare = ItemRarityID.Green; // sets the rarity of the item
item.createTile = TileType<Fishing.ForestCratePlaced>(); // where the class is located in the namespace, where file is located in the mod folders~
item.createTile = TileType<Fishing.Tiles.ForestCratePlaced>(); // where the class is located in the namespace, where file is located in the mod folders~
// for NekoTweakMod this is located in the Tiles folder
}
public override bool CanRightClick()
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using static Terraria.ModLoader.ModContent;


namespace NekoTweakMod.Fishing // // where this file is located in the mods folders
namespace NekoTweakMod.Fishing.Tiles // // where this file is located in the mods folders
{
public class ForestCratePlaced : ModTile // Here we are setting up everything for the tile while the item is placed
{
Expand All @@ -29,7 +29,7 @@ public override void SetDefaults()
}
public override void KillMultiTile(int i, int j, int frameX, int frameY) // makes it possible to set/change what happens when a tile break
{
Item.NewItem(i * 16, j * 16, 32, 16, ItemType<Fishing.ForestCrate>()); // where the class is located in the namespace, where file is located in the mod folders~
Item.NewItem(i * 16, j * 16, 32, 16, ItemType<Fishing.Items.ForestCrate>()); // where the class is located in the namespace, where file is located in the mod folders~
}
}
}
File renamed without changes
Binary file modified obj/Debug/net45/NekoTweakMod.csprojAssemblyReference.cache
Binary file not shown.

0 comments on commit 9ce1d5e

Please sign in to comment.