Skip to content

CanBeAwardedAdventGift ​

Usage ​

  • No return behavior

Example Autogenerated ​

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

Location ​

  • AdventCalendar::WasAwardedTodaysGift(BasePlayer player)
csharp
public bool WasAwardedTodaysGift(BasePlayer player)
{
	object obj = Interface.CallHook("CanBeAwardedAdventGift", this, player);
	if (obj is bool)
	{
		return !(bool)obj;
	}
	if (!playerRewardHistory.ContainsKey(player.userID))
//---

Released under the MIT License.