示例#1
0
        public override void Entry(IModHelper helper)
        {
            Modworks.Startup(this);

            Config = helper.ReadConfig <ModConfig>();
            SaveConfig();

            NPCConfig.Load(Helper.DirectoryPath + System.IO.Path.DirectorySeparatorChar);
            if (NPCConfig.Ready)
            {
                helper.Events.GameLoop.UpdateTicked += GameLoop_UpdateTicked;
                helper.Events.GameLoop.GameLaunched += OnLaunched;

                //AddTrashLoot("Sam", 0);
                //AddTrashLoot("Jodi", 0);
                //AddTrashLoot("Haley", 1);
                //AddTrashLoot("Emily", 1);
                //AddTrashLoot("Lewis", 2);
                //AddTrashLoot("Clint", 4);
                ////saloon is one catch-all
                //AddTrashLoot("Gus", 5);
                //AddTrashLoot("Pam", 5);
                //AddTrashLoot("Emily", 5);
                //AddTrashLoot("Abigail", 5);
                //AddTrashLoot("Sebastian", 5);
                //AddTrashLoot("Marnie", 5);
                ////archeology is the other
                //AddTrashLoot("Maru", 3);
                //AddTrashLoot("Elliott", 3);
                //AddTrashLoot("Harvey", 3);
                //AddTrashLoot("Caroline", 3);
                //AddTrashLoot("Pierre", 3);
                //AddTrashLoot("Shane", 3);
            }

            ConfigLocations.Load(Helper.DirectoryPath + System.IO.Path.DirectorySeparatorChar);
            if (ConfigLocations.Ready)
            {
                Spot.Setup(helper);
            }
        }
示例#2
0
        public override void Entry(IModHelper helper)
        {
            Module = helper.ModRegistry.ModID;
            EntryDebug();
            if (!Modworks.InstallModule(Module, Debug))
            {
                return;
            }

            Config.Load(Helper.DirectoryPath + System.IO.Path.DirectorySeparatorChar);
            if (Config.ready)
            {
                AddItems();
                Spot.Setup(helper);
                Modworks.Events.ItemEaten         += Events_ItemEaten;
                helper.Events.Input.ButtonPressed += Input_ButtonPressed;
                AddTrashLoot("Sam", 0);
                AddTrashLoot("Jodi", 0);
                AddTrashLoot("Haley", 1);
                AddTrashLoot("Emily", 1);
                AddTrashLoot("Lewis", 2);
                AddTrashLoot("Clint", 4);
                //saloon is one catch-all
                AddTrashLoot("Gus", 5);
                AddTrashLoot("Pam", 5);
                AddTrashLoot("Emily", 5);
                AddTrashLoot("Abigail", 5);
                AddTrashLoot("Sebastian", 5);
                AddTrashLoot("Marnie", 5);
                //archeology is the other
                AddTrashLoot("Maru", 3);
                AddTrashLoot("Elliott", 3);
                AddTrashLoot("Harvey", 3);
                AddTrashLoot("Caroline", 3);
                AddTrashLoot("Pierre", 3);
                AddTrashLoot("Shane", 3);
            }
        }