-
Notifications
You must be signed in to change notification settings - Fork 1
/
FishingDrops.txt
34 lines (33 loc) · 1.02 KB
/
FishingDrops.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using ExampleMod.NPCs.PuritySpirit;
using Terraria.ModLoader.IO;
using Terraria.GameInput;
namespace BettertakeaPowerTool
{
public class FishingDrops : ModPlayer
{
public override void CatchFish(Item fishingRod, Item bait, int power, int liquidType, int poolSize, int worldLayer, int questFish, ref int caughtType, ref bool junk)
{
if (junk)
{
return;
}
if (Main.rand.Next(3) == 0)
{
caughtType = mod.ItemType("SparklingSphere");
}
if (player.gravDir == -1f && questFish == mod.ItemType("ExampleQuestFish") && Main.rand.Next(2) == 0)
{
caughtType = mod.ItemType("ExampleQuestFish");
}
}
}
}