Searched refs:luckynum (Results 1 – 3 of 3) sorted by relevance
1439 int totchances = 0, chances[AI_PLCS_TOTAL], luckynum = 0; in mplayer_decide_plan() local1563 luckynum = xrandom(totchances); in mplayer_decide_plan()1565 if (luckynum < (totchances += chances[AI_PLCS_RESERVE])) in mplayer_decide_plan()1567 else if (luckynum < (totchances += chances[AI_PLCS_CONSTRUCTION])) in mplayer_decide_plan()1569 else if (luckynum < (totchances += chances[AI_PLCS_EXPLORATION])) in mplayer_decide_plan()1571 else if (luckynum < (totchances += chances[AI_PLCS_OFFENSE])) in mplayer_decide_plan()1573 else if (luckynum < (totchances += chances[AI_PLCS_DEFENSE])) in mplayer_decide_plan()1575 else if (luckynum < in mplayer_decide_plan()1578 else if (luckynum < in mplayer_decide_plan()
303 int uscorestot = 0, luckynum = -1; in choose_utype_to_construct() local368 luckynum = xrandom(uscorestot); in choose_utype_to_construct()376 if (luckynum < uscorestot) { in choose_utype_to_construct()
986 int totchance = 0, luckynum = 0, uval = 0; local1041 luckynum = xrandom(totchance);1045 if (luckynum < totchance)1080 luckynum = xrandom(totchance);1084 if (luckynum < totchance)