HoS_PRC8/_mod/_module/nss/powres_haspow.nss

14 lines
333 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
#include "powres_h"
int StartingConditional()
{
object oPC=GetPCSpeaker();
object oMod=GetModule();
int nParm=GetLocalInt(oPC,"nParm");
string sID=GetLocalString(oPC,"sTeamID");
int nPow=GetLocalInt(oMod,"n"+sID+"Power");
int nCost=fnUnitCost(sID,nParm);
if (nPow<nCost) return TRUE;
return FALSE;
}