Skip to content

OnAdventGiftAward

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnAdventGiftAward( AdventCalendar instance, BasePlayer player )
{
    Puts( "OnAdventGiftAward works!" );
}

Location

  • AdventCalendar::AwardGift(BasePlayer player)
csharp
public void AwardGift(BasePlayer player)
{
	if (Interface.CallHook("OnAdventGiftAward", this, player) != null)
	{
		return;
	}
	DateTime now = DateTime.Now;
	int num = ((AdventCalendar.overrideAdventCalendarDay > 0) ? AdventCalendar.overrideAdventCalendarDay : now.Day) - this.startDay;
//---

Released under the MIT License.