Home
last modified time | relevance | path

Searched refs:luckynum (Results 1 – 3 of 3) sorted by relevance

/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/kernel/
H A Dmplayer.c1439 int totchances = 0, chances[AI_PLCS_TOTAL], luckynum = 0; in mplayer_decide_plan() local
1563 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()
H A Daioprt.cc303 int uscorestot = 0, luckynum = -1; in choose_utype_to_construct() local
368 luckynum = xrandom(uscorestot); in choose_utype_to_construct()
376 if (luckynum < uscorestot) { in choose_utype_to_construct()
H A Dplan.c986 int totchance = 0, luckynum = 0, uval = 0; local
1041 luckynum = xrandom(totchance);
1045 if (luckynum < totchance)
1080 luckynum = xrandom(totchance);
1084 if (luckynum < totchance)