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 void IOnLoseCondition( Item instance, float amount )
{
    Puts( "IOnLoseCondition works!" );
}

Location ​

  • Item::LoseCondition(float amount)
csharp
//---
	}
	if (Debugging.disablecondition)
	{
		return;
	}
	if (Interface.CallHook("IOnLoseCondition", this, amount) != null)
	{
		return;
	}
	float condition = this.condition;
	this.condition -= amount;
//---

Released under the MIT License.