Core.cs 484 B

12345678910111213141516171819202122
  1. using GadgetCore;
  2. using GadgetCore.API;
  3. namespace VanitySlots
  4. {
  5. internal static class Core
  6. {
  7. public static GadgetLogger logger;
  8. public static ItemInfo itemHelmet;
  9. public static ItemInfo itemArmor;
  10. public static ItemStore itemStore = new ItemStore(3);
  11. public static bool IsSoftcore()
  12. {
  13. foreach (var gadget in Gadgets.ListAllEnabledGadgets())
  14. if (gadget.Info?.ModName == "Softcore")
  15. return true;
  16. return false;
  17. }
  18. }
  19. }