function bool GetEquippedWeapon()
{
if (RHand.GetItem(0, EquippedWeapon))
return true;
else
return false;
}
// function int GetSpiritShotID(int weapGrade)
// {
// switch (GetGradeByIndex(weapGrade))
// {
// case 'NOGRADE':
// return 3947;
// break;
// case 'D':
// return 3948;
// break;
// case 'C':
// return 3949;
// break;
// case 'B':
// return 3950;
// break;
// case 'A':
// return 3951;
// break;
// case 'S':
// return 3952;
// break;
// }
// }
function GetSpiritShotID(int weapGrade, optional out int int1, optional out int int2, optional out string string1)
{
switch (GetGradeByIndex(weapGrade))
{
case 'NOGRADE':
int1 = 3947;
string1 = "Atss";
break;
case 'D':
int1 = 3948;
string1 = "Atss";
break;
case 'C':
int1 = 3949;
string1 = "Atss";
break;
case 'B':
int1 = 3950;
string1 = "Atss";
break;
case 'A':
int1 = 3951;
string1 = "Atss";
break;
case 'S':
int1 = 3952;
string1 = "Atss";
int2 = 22076;
break;
}
}
// function int GetSoulShotID(int weapGrade)
// {
// switch (GetGradeByIndex(weapGrade))
// {
// case 'NOGRADE':
// return 1835;
// break;
// case 'D':
// return 1463;
// break;
// case 'C':
// return 1464;
// break;
// case 'B':
// return 1465;
// break;
// case 'A':
// return 1466;
// break;
// case 'S':
// return 1467;
// break;
// }
// }
function GetSoulShotID(int weapGrade, optional out int int1, optional out int int2, optional out string string1)
{
switch (GetGradeByIndex(weapGrade))
{
case 'NOGRADE':
int1 = 1835;
string1 = "Atss";
break;
case 'D':
int1 = 1463;
string1 = "Atss";
break;
case 'C':
int1 = 1464;
string1 = "Atss";
break;
case 'B':
int1 = 1465;
string1 = "Atss";
break;
case 'A':
int1 = 1466;
string1 = "Atss";
break;
case 'S':
int1 = 1467;
string1 = "Atss";
int2 = 22086;
break;
}
}
function FindAllShotsByWeapGrade(int weapGrade)
{
local int int1, int2;
local string string1;
GetSoulShotID(weapGrade, int1, int2, string1);
GetSpiritShotID(weapGrade, int1, int2, string1);
soulIndex = InvItem.FindItem(int1, int2);
spiritIndex = InvItem.FindItem(int1, int2);
}
function name GetGradeByIndex(int weapIndex)
{
switch (weapIndex)
{
case 0:
return 'NOGRADE';
break;
case 1:
return 'D';
break;
case 2:
return 'C';
break;
case 3:
return 'B';
break;
case 4:
return 'A';
break;
case 5:
case 6:
case 7:
return 'S';
break;
}
}