Example #1
0
        public static void getBugFromNet(GameLocation location, StardewValley.Farmer who)
        {
            Log.info($"Now the bug comes from the net");
            CritterLocations critterLocations = new CritterLocations(location);

            critterLocations.removeThisCritter(CaughtCritter);
            who.addItemByMenuIfNecessary((Item)BugInNet.getOne());

            who.AddCustomSkillExperience(BugCatchingMod.skill, BugInNet.bugModel.Price);
            Log.info("player experience: " + Game1.player.GetCustomSkillExperience(BugCatchingMod.skill).ToString());
            CaughtCritter = (CustomCritter)null;
        }