public override void DoFunction(GameLocation location, int x, int y, int power, StardewValley.Farmer who) { who.Stamina -= (float)(2 * power) - (float)who.GetCustomSkillLevel(BugCatchingMod.skill) * 0.1f; Log.info($"Doing a functions"); if (caughtBug & CaughtCritter != null) { Log.info("yes the critter is gud"); BugInNet = BugApi.getBugFromCritterType(CaughtCritter); getBugFromNet(location, who); } }