static ItemRequests()
        {
            var harmony = new Harmony("com.github.toywalrus.itemrequests");

            harmony.PatchAll(Assembly.GetExecutingAssembly());
            RestrictedItems.Init();
        }
Exemplo n.º 2
0
 private bool isBuyableItem(ThingEntry entry)
 {
     if (entry.animal)
     {
         return(!RestrictedItems.Contains(entry.pawnDef));
     }
     return(!RestrictedItems.Contains(entry.def));
 }