示例#1
0
        public static int ModifyGold(int baseGold)
        {
            var gameCompletions = Player.GetInstance().GameCompletions;
            var multiplier      = Math.Pow(1.1, gameCompletions);

            return((int)Math.Floor(baseGold * multiplier));
        }
示例#2
0
        static void Main(string[] args)
        {
            if (!File.Exists("RestSharp.dll") || !File.Exists("Newtonsoft.Json.dll"))
            {
                Console.WriteLine("RestSharp.dll and Newtonsoft.Json.dll are needed to play the game.");
                Console.WriteLine("Please extract them from the zip into the same folder as the exe.");
                Console.ReadKey();
                return;
            }
            var player = Player.GetInstance();

            Console.ForegroundColor = Helpers.GetTextColourByArea(player.Area);
            Console.WriteLine(player.Location.LocationText);
            bool lastCommandValid = true;

            while (true)
            {
                InputReader.GetAction(player, ref lastCommandValid);
            }
        }