mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
abc
This commit is contained in:
parent
6c70fe597c
commit
54cee694ff
1 changed files with 3 additions and 3 deletions
|
@ -462,7 +462,7 @@ namespace HISP.Game.Chat
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
id = int.Parse(args[0]);
|
id = int.Parse(args[0])-1;
|
||||||
amount = int.Parse(args[2]);
|
amount = int.Parse(args[2]);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
@ -470,12 +470,12 @@ namespace HISP.Game.Chat
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id < 0 && id > instances.Length)
|
if (id < 0 || id > instances.Length-1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
switch (args[1].ToUpper())
|
switch (args[1].ToUpper())
|
||||||
{
|
{
|
||||||
case "INTELIGENCE":
|
case "INTELLIGENCE":
|
||||||
instances[id].AdvancedStats.Inteligence = amount;
|
instances[id].AdvancedStats.Inteligence = amount;
|
||||||
break;
|
break;
|
||||||
case "PERSONALITY":
|
case "PERSONALITY":
|
||||||
|
|
Loading…
Add table
Reference in a new issue