git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3079 c06c8d41-db1a-0410-9941-cceddc491573
JZ4YC57SR2WQJIEIZSO3ZECA2FNMQUB7JYFKID4SIQ3RQ5NYXIVAC
KQNIGKATHT4YSPJFPJGIGPD6VNR5B753SE2JN2LCXZZJNHCGY3DQC
GQL5SIGBHLU3FMCE54XVGLRY5AZHRM6DUEB722REA2DPLGJSN6EQC
QS3ZRS3E6KL3YJHPKYEWCWJYRBJSXD5OOYF6Y25HZVECGPJRDB5QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
// Chooses one of the numbers passed in at random. The list of numbers// must be terminated with -1.
// Chooses one of the numbers passed in at random. The list of numbers
// must be terminated with -1.
static armour_type random_nonbody_armour_type(){ const armour_type at = static_cast<armour_type>( random_choose(ARM_SHIELD, ARM_CLOAK, ARM_HELMET, ARM_GLOVES, ARM_BOOTS, -1)); return (at);}
static armour_type random_nonbody_armour_type()
{
const armour_type at =
static_cast<armour_type>(
random_choose(ARM_SHIELD, ARM_CLOAK, ARM_HELMET,
ARM_GLOVES, ARM_BOOTS, -1));
return (at);
}
type_wanted = (coinflip()) ? OBJ_RANDOM : ARM_SHIELD + random2(5);
type_wanted = (coinflip())? OBJ_RANDOM : static_cast<int>(random_nonbody_armour_type());
type_wanted = (coinflip())? OBJ_RANDOM :
static_cast<int>(random_nonbody_armour_type());
type_wanted = ARM_CAP;
type_wanted = coinflip()? ARM_CAP : ARM_WIZARD_HAT;