Beispiel #1
0
            public static void Postfix(CheatsScript __instance)
            {
                if (Input.inputString.Length <= 0 || !enabled)
                {
                    return;
                }

                var input = Traverse.Create(__instance).Field("lastInput").GetValue <string>();

                if (input.EndsWith("dumpwiki"))
                {
                    DumpShop.DumpStats();
                }
            }
Beispiel #2
0
            public static void Postfix(CheatsScript __instance)
            {
                if (Input.inputString.Length <= 0 || !enabled)
                {
                    return;
                }

                var input = Traverse.Create(__instance).Field("lastInput").GetValue <string>();

                if (input.EndsWith("goday"))
                {
                    StageScript.Instance.FarmData.Tick(3600 * 24);
                }
                else if (input.EndsWith("goseason"))
                {
                    StageScript.Instance.FarmData.Tick(15 * 60);
                }
            }