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);
item.SetItemOwnership(ownerPlayer, ItemOwnershipPhrases.Fishing);
object OxideGen_15 = Interface.CallHook("CanCatchFish", ownerPlayer, this, item);
if (OxideGen_15 is bool && !(bool)OxideGen_15)
{
return;
}
ownerPlayer.GiveItem(item, BaseEntity.GiveItemReason.Crafted);
//---