Ejemplo n.º 1
0
        internal static bool Prefix(ref global::StardewValley.Object __result, int waterDepth, global::StardewValley.Farmer who)
        {
            if (Global.Config.OverrideGetSummerFishKing &&
                Game1.currentSeason.Equals("summer") &&
                who.getTileX() >= 82 &&
                who.FishingLevel >= 5 &&
                waterDepth >= 3 &&
                Game1.random.NextDouble() < Global.Config.SummerFishKingThreshold)
            {
                __result = new global::StardewValley.Object(159, 1, false, -1, 0);
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
        internal static bool Prefix(ref global::StardewValley.Object __result, int waterDepth, global::StardewValley.Farmer who)
        {
            if (Global.Config.OverrideGetSewerFishKing &&
                (Game1.random.NextDouble() < Global.Config.SewerFishKingThreshold + ((who.getTileX() > 14 && who.getTileY() > 42) ? 0.08 : 0.0)))
            {
                __result = new global::StardewValley.Object(682, 1, false, -1, 0);
                return(false);
            }

            return(true);
        }