static ItemRequests() { var harmony = new Harmony("com.github.toywalrus.itemrequests"); harmony.PatchAll(Assembly.GetExecutingAssembly()); RestrictedItems.Init(); }
private bool isBuyableItem(ThingEntry entry) { if (entry.animal) { return(!RestrictedItems.Contains(entry.pawnDef)); } return(!RestrictedItems.Contains(entry.def)); }