Beispiel #1
0
 private bool CanAfford(Pawn pawn, ThingDef def)
 {
     if (Restaurant.guestPricePercentage <= 0)
     {
         return(true);
     }
     if (!pawn.IsGuest())
     {
         return(true);
     }
     return(pawn.GetSilver() >= def.GetPrice(Restaurant));
 }