Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

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;
}