Exemplo n.º 1
0
        public override void Entry(IModHelper helper)
        {
            Module = helper.ModRegistry.ModID;
            EntryDebug();
            if (!Modworks.InstallModule(Module, Debug))
            {
                return;
            }

            LockCache = new HashSet <string>();

            Modworks.Items.AddItem(Module, new bwdyworks.BasicItemEntry(this, "lockpick", 30, -300, "Basic", StardewValley.Object.junkCategory, "Lockpick", "Used to bypass locked doors."));
            Modworks.Items.AddMonsterLoot(Module, new bwdyworks.MonsterLootEntry(Module, "Green Slime", "lockpick", 0.3));
            Modworks.Items.AddMonsterLoot(Module, new bwdyworks.MonsterLootEntry(Module, "Green Slime", "lockpick", 0.15));
            Modworks.Items.AddTrashLoot(Module, new bwdyworks.Structures.TrashLootEntry(Module, "lockpick"));
            Modworks.Events.TileCheckAction   += Events_TileCheckAction;
            Helper.Events.GameLoop.DayStarted += GameLoop_DayStarted;
        }
Exemplo n.º 2
0
        public override void Entry(IModHelper helper)
        {
            Module = helper.ModRegistry.ModID;
            EntryDebug();
            if (!Modworks.InstallModule(Module, Debug))
            {
                return;
            }

            Modworks.Events.NPCCheckAction  += Events_NPCCheckAction;
            Modworks.Events.TileCheckAction += Events_TileCheckAction;

            Relationships = new Relationships();
            helper.Events.GameLoop.DayStarted  += GameLoop_DayStarted;
            helper.Events.GameLoop.Saving      += GameLoop_Saving;
            helper.Events.GameLoop.SaveLoaded  += GameLoop_SaveLoaded;
            helper.Events.GameLoop.TimeChanged += GameLoop_TimeChanged;
            Relationships = new Relationships();
            helper.ConsoleCommands.Add("polygamy", "'polygamy help' for more info", PolygamyCommand);
        }
Exemplo n.º 3
0
        public override void Entry(IModHelper helper)
        {
            Module = helper.ModRegistry.ModID;
            EntryDebug();
            if (!Modworks.InstallModule(Module, Debug))
            {
                return;
            }

            SpawnPoints = new List <bwdyworks.Structures.GameSpot>();
            helper.Events.GameLoop.DayStarted += GameLoop_DayStarted;
            helper.Events.GameLoop.Saving     += GameLoop_Saving;
            helper.Events.Player.Warped       += Player_Warped;

            string filecontents = File.ReadAllText(Helper.DirectoryPath + Path.DirectorySeparatorChar + "spawns.json");

            Modworks.Events.NPCCheckAction += Events_NPCCheckAction;
            SpawnPoints          = JsonConvert.DeserializeObject <List <bwdyworks.Structures.GameSpot> >(filecontents);
            TextureMoongateLunar = Helper.Content.GetActualAssetKey("MoongateLunar.png", ContentSource.ModFolder);
            TextureMoongateTidal = Helper.Content.GetActualAssetKey("MoongateTidal.png", ContentSource.ModFolder);
        }
Exemplo n.º 4
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);
            }
        }