16 lines
445 B
Plaintext
16 lines
445 B
Plaintext
|
int CheckUniform( object oPC )
|
||
|
{
|
||
|
// This function returns TRUE if the subject is wearing an Aidbringer uniform
|
||
|
|
||
|
int iResult = FALSE; // Default value = non-uniformed
|
||
|
object uniform = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC);
|
||
|
|
||
|
if ( GetIsObjectValid(uniform) )
|
||
|
{
|
||
|
string tag = GetTag( uniform );
|
||
|
iResult = ( tag == "MN_I_ARMOR003" ) || ( tag == "MN_I_ARMOR002" ) || ( tag == "MN_I_ARMOR001" );
|
||
|
}
|
||
|
|
||
|
return iResult;
|
||
|
}
|