OnItemRefill
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnItemRefill( Item item, BasePlayer player )
{
Puts( "OnItemRefill works!" );
}
Location
- ItemModRepair::ServerCommand(Item item, string command, BasePlayer player)
csharp
//---
}
if (item.conditionNormalized >= 1f)
{
return;
}
if (Interface.CallHook("OnItemRefill", item, player) != null)
{
return;
}
float conditionNormalized = item.conditionNormalized;
float maxConditionNormalized = item.maxConditionNormalized;
//---