Skip to content

CanCatchFish

Usage

  • No return behavior

Example Autogenerated

csharp
private void CanCatchFish(  )
{
    Puts( "CanCatchFish works!" );
}

Location

  • BaseFishingRod::CatchProcessBudgeted()
csharp
//---
		CurrentState = CatchState.Caught;
		if (currentFishTarget != null)
		{
			Item item = ItemManager.Create(currentFishTarget, 1, 0uL);
			item.SetItemOwnership(ownerPlayer, ItemOwnershipPhrases.Fishing);
			object obj = Interface.CallHook("CanCatchFish", ownerPlayer, this, item);
			if (obj is bool && !(bool)obj)
			{
				return;
			}
			object obj2 = Interface.CallHook("OnFishCatch", item, this, ownerPlayer);
//---

Released under the MIT License.