Skip to content

OnFishCatch ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private object OnFishCatch( Item item, BaseFishingRod instance, BasePlayer ownerPlayer )
{
    Puts( "OnFishCatch works!" );
    return null;
}

Location ​

  • BaseFishingRod::CatchProcessBudgeted()
csharp
//---
			object obj = Interface.CallHook("CanCatchFish", ownerPlayer, this, item);
			if (obj is bool && !(bool)obj)
			{
				return;
			}
			object obj2 = Interface.CallHook("OnFishCatch", item, this, ownerPlayer);
			if (obj2 is Item && obj2 as Item != item)
			{
				item.Remove();
				item = (Item)obj2;
			}
//---

Released under the MIT License.