14 lines
333 B
Plaintext
14 lines
333 B
Plaintext
#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;
|
|
}
|