| 1234567891011121314151617181920212223242526 |
- using GadgetCore;
- using GadgetCore.API;
- using System;
- using System.Linq;
- namespace VanitySlots
- {
- internal static class Core
- {
- public static GadgetLogger logger;
- public static ItemInfo itemHelmet;
- public static ItemInfo itemArmor;
- public static ItemStore itemStore = new ItemStore(3);
- public static bool IsSoftcore()
- {
- if (Environment.GetCommandLineArgs().Any((string x) => x == "-batchmode"))
- return true;
- foreach (var gadget in Gadgets.ListAllEnabledGadgets())
- if (gadget.Info?.ModName == "Softcore")
- return true;
- return false;
- }
- }
- }
|