help wait for keys + string correction

This commit is contained in:
mikx 2020-06-17 01:56:38 -04:00
parent f960859a08
commit d39c72f45c
1 changed files with 5 additions and 2 deletions

View File

@ -9,20 +9,23 @@ namespace MxARK_LevelGen
{
class Program
{
public static string version = "1.0.0";
public static string version = "1.1.0";
static void Main(string[] args)
{
msg.Splash();
if (args.Count() < 3)
{
msg.CMW("Bad usage. Exemple:",true,3);
msg.CMW("Error! Arguments missing. Exemple:",true,3);
msg.CMW("MxARK_LevelGen.exe <maxlevel> <startexp> <increment%> <engramperlevel>", true, 3);
msg.CMW("MxARK_LevelGen.exe 500 5000 5 20", true, 3);
msg.CMW("Max level is 500.", true, 3);
msg.CMW("Experience start at 5000.", true, 3);
msg.CMW("Experience needed increase by 5% every level.", true, 3);
msg.CMW("You get 20 engram points per level.", true, 3);
msg.CMW("", false, 3);
msg.CMW("Press any key to exit...", true, 3);
Console.ReadKey();
} else if (args[0] != null && args[1] != null && args[2] != null && args[3] != null)
{
int maxlevel = Convert.ToInt32(args[0]);