Skip to content

OnPlayerAddModifiers

Usage

  • No return behavior

Example Autogenerated

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

Location

  • ItemModConsume::DoAction(Item item, BasePlayer player)
csharp
//---
				player.metabolism.ApplyChange(current.type, current.amount * num3 * num4, current.time * num3 * num4);
			}
		}
	}
	player.ProcessMissionEvent(BaseMission.MissionEventType.CONSUME, item.info.itemid, 1f);
	if (player.modifiers != null && Interface.CallHook("OnPlayerAddModifiers", player, item, consumable) == null)
	{
		player.modifiers.Add(consumable.modifiers);
	}
	if (this.product != null)
	{
//---

Released under the MIT License.