Exemplo n.º 1
0
        public static bool Prefix(ref StardewValley.FarmAnimal __instance, ref Building home)
        {
            var moddedAnimal = new Decorators.FarmAnimal(__instance);

            if (!moddedAnimal.HasName())
            {
                return(true);
            }
            moddedAnimal.SetHome(home);
            Mod.ReadSaveData <FarmAnimals>("farm-animals").OverwriteFarmAnimal(ref moddedAnimal, null);
            return(false);
        }