CanBeAwardedAdventGift
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object CanBeAwardedAdventGift( AdventCalendar instance, BasePlayer player )
{
Puts( "CanBeAwardedAdventGift works!" );
return null;
}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))
//---