Player Level Bugfixes

- changed INT to LONG when parsing the the INI file values.
- created new slider for LONG types.
This commit is contained in:
Brett Hewitson 2022-06-13 18:43:10 +10:00
parent c223abf541
commit f3ff807cd0
7 changed files with 487 additions and 8 deletions

View file

@ -128,17 +128,17 @@ namespace ServerManagerTool.Lib
break;
}
int xpRequired;
if (!int.TryParse(xpResult.Groups["xp"].Value, out xpRequired))
long xpRequired;
if (!long.TryParse(xpResult.Groups["xp"].Value, out xpRequired))
{
Debug.WriteLine(String.Format("Invalid xm required value: '{0}'", xpResult.Groups["xp"].Value));
break;
}
int engramPoints = 0;
long engramPoints = 0;
if (engramResult != null)
{
if (!int.TryParse(engramResult.Groups["points"].Value, out engramPoints))
if (!long.TryParse(engramResult.Groups["points"].Value, out engramPoints))
{
Debug.WriteLine(String.Format("Invalid engram points value: '{0}'", engramResult.Groups["points"].Value));
break;