Skip to content

CanCatchFish

Usage

  • No return behavior

Example Autogenerated

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

Location

  • BaseFishingRod::CatchProcessBudgeted()
csharp
//---
	{
		this.CurrentState = BaseFishingRod.CatchState.Caught;
		if (this.currentFishTarget != null)
		{
			Item item = ItemManager.Create(this.currentFishTarget, 1, 0uL, true);
			object OxideGen_14 = Interface.CallHook("CanCatchFish", ownerPlayer, this, item);
			if (OxideGen_14 is bool && !(bool)OxideGen_14)
			{
				return;
			}
			ownerPlayer.GiveItem(item, BaseEntity.GiveItemReason.Crafted);
//---

Released under the MIT License.