Core.cs 619 B

1234567891011121314151617181920212223242526
  1. using GadgetCore;
  2. using GadgetCore.API;
  3. using System;
  4. using System.Linq;
  5. namespace VanitySlots
  6. {
  7. internal static class Core
  8. {
  9. public static GadgetLogger logger;
  10. public static ItemInfo itemHelmet;
  11. public static ItemInfo itemArmor;
  12. public static ItemStore itemStore = new ItemStore(3);
  13. public static bool IsSoftcore()
  14. {
  15. if (Environment.GetCommandLineArgs().Any((string x) => x == "-batchmode"))
  16. return true;
  17. foreach (var gadget in Gadgets.ListAllEnabledGadgets())
  18. if (gadget.Info?.ModName == "Softcore")
  19. return true;
  20. return false;
  21. }
  22. }
  23. }