HoS_PRC8/_mod/_module/nss/uu_t_cannotup.nss

12 lines
317 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
#include "uc_h"
int StartingConditional()
{
object oPC=GetPCSpeaker();
string sID=GetLocalString(oPC,"sTeamID");
int nParm=GetLocalInt(oPC,"nParm");
int nMe=GetLocalInt(OBJECT_SELF,"nUnitNum");
int nUpTo=GetUnitUpgradeNumber(sID,nMe,nParm);
return !HasSufficientResources(oPC,nUpTo,1,nMe);
}