Change logic of some changes

- `%rnd` now returns a random integer between `32767` and `int.MaxValue`
- Fix syntax hyglighing problems when using comments
- Remove the `mod` statement
This commit is contained in:
Stone_Red
2022-03-27 20:25:44 +02:00
parent 20f7f16dd9
commit 6a4fe4f871
3 changed files with 87 additions and 120 deletions
@@ -39,7 +39,7 @@ namespace YesNt.Interpreter.Statements
while (args.Contains("%rnd "))
{
args = args.ReplaceFirstOccurrence("%rnd ", $"{random.Next() % 2} ");
args = args.ReplaceFirstOccurrence("%rnd ", $"{random.Next(32767, int.MaxValue)} ");
}
RuntimeInfo.CurrentLine = args.TrimEnd();