Ancordia_PRC8/_module/nss/craft_canenhance.nss

18 lines
472 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
int nValue;
while (GetIsObjectValid(oItem))
{
if (GetLocalInt(oItem, "Prototype") == TRUE)
{
if (GetLocalString(oItem, "Type") == "Shooter" || GetLocalString(oItem, "Type") == "Ammo") return FALSE;
return TRUE;
}
oItem = GetNextItemInInventory(oPC);
}
return FALSE;
}