tModLoader v2024.02
A mod to make and play Terraria mods
FishingAttempt Struct Reference

Public Attributes

float atmo
 How high in the sky this attempt takes place, in the range [0.25f, 1f]. Any value below 1f takes place approximately in the top 10% of the world.
The lower this value, the smaller waterNeededToFish will be, which is automatically applied.
 
int bobberType
 The projectile type (Projectile.type) of this bobber.
 
bool CanFishInLava
 If true, then this attempt can succeed if it is inLava.
 
int chumsInWater
 The number of chums applied to this attempt. Fishing power from chum is automatically added to fishingLevel.
 
bool common
 If true, this fishing attempt can catch common items.
 
bool crate
 If true, this fishing attempt can catch crates.
 
int fishingLevel
 The fishing power of this attempt after all modifications. The higher this number, the better the attempt will go.
 
int heightLevel
 A representation of the current height.
0 is space-level (50% of Main.worldSurface or higher).
1 is the surface (Player.ZoneOverworldHeight).
2 is underground (Player.ZoneDirtLayerHeight).
3 is the caverns (Player.ZoneRockLayerHeight).
4 is the underworld (Player.ZoneUnderworldHeight).
 
bool inHoney
 If true, this fishing attempt is in honey.
 
bool inLava
 If true, this fishing attempt is in lava.
 
bool legendary
 If true, this fishing attempt can catch legendary items.
 
PlayerFishingConditions playerFishingConditions
 
int questFish
 The item type (Item.type) of the quest fish the Angler wants, or -1 if this player can't catch that fish today.
 
bool rare
 If true, this fishing attempt can catch rare items.
 
int rolledEnemySpawn
 The item type (Item.type) of the caught NPC.
 
int rolledItemDrop
 The item type (Item.type) of the caught item.
 
bool uncommon
 If true, this fishing attempt can catch uncommon items.
 
bool veryrare
 If true, this fishing attempt can catch very rare items.
 
int waterNeededToFish
 The number of liquid tiles needed for proper fishing. If waterTilesCount is less than this, then the player will receive a waterQuality percent debuff to their fishing power.
This debuff is automatically applied to fishingLevel.
 
float waterQuality
 If positive, the percent decrease in fishing power this attempt has from missing liquid tiles.
This is not how full the body of liquid is.
 
int waterTilesCount
 The number of liquid tiles counted for this fishing attempt.
 
int X
 The x-coordinate of tile this bobber is on, in tile coordinates.
 
int Y
 The y-coordinate of tile this bobber is on, in tile coordinates.