Ancordia_PRC8/_module/nss/bjcanddown.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

18 lines
526 B
Plaintext

/**
* Check if the total is 9, 10, or 11 and this is the 2nd card, if so,
* it is possible to double down
*
* Copyright (C) 2003 Jim Woodgate - woody@realtime.net
*/
int StartingConditional() {
int currentPlayer = GetLocalInt(OBJECT_SELF, "BJCURRENTPLYR");
int total = GetLocalInt(OBJECT_SELF, "BJPLYRTOTAL"+IntToString(currentPlayer));
int numCards = GetLocalInt(OBJECT_SELF, "BJPLYRNUMCRDS"+IntToString(currentPlayer));
if (numCards == 2
&& (total > 8 && total < 12))
return TRUE;
return FALSE;
}