TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ FishingCheck_ProbeForQuestFish()

void Terraria.Projectile.FishingCheck_ProbeForQuestFish ( ref FishingAttempt fisher)
inlineprivate

Definition at line 20331 of file Projectile.cs.

20332 {
20333 fisher.questFish = Main.anglerQuestItemNetIDs[Main.anglerQuest];
20334 if (Main.player[owner].HasItem(fisher.questFish))
20335 {
20336 fisher.questFish = -1;
20337 }
20338 if (!NPC.AnyNPCs(369))
20339 {
20340 fisher.questFish = -1;
20341 }
20342 if (Main.anglerQuestFinished)
20343 {
20344 fisher.questFish = -1;
20345 }
20346 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...

References Terraria.Main.anglerQuest, Terraria.Main.anglerQuestFinished, Terraria.Main.anglerQuestItemNetIDs, Terraria.NPC.AnyNPCs(), Terraria.Projectile.owner, and Terraria.Main.player.

Referenced by Terraria.Projectile.FishingCheck().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: