Skip to content

IOnLoseCondition

WARNING

This is an internal hook and will not be called in plugins. See Internal Hooks for more information.

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object IOnLoseCondition( Item instance, float amount )
{
    Puts( "IOnLoseCondition works!" );
    return null;
}

Location

  • Item::LoseCondition(float amount)
csharp
public void LoseCondition(float amount)
{
	if (hasCondition && !Debugging.disablecondition && Interface.CallHook("IOnLoseCondition", this, amount) == null)
	{
		float num = condition;
		condition -= amount;
		if (Global.developer > 0)
		{
//---

Released under the MIT License.