Lines Matching defs:numitems
164 double numitems; /* number of items to purchase */
233 cost = (numitems = floor(infloat())) * Menu[0].cost;
235 if (cost > Player.p_gold || numitems < 0)
243 Player.p_mana += numitems;
250 cost = (numitems = floor(infloat())) * Menu[1].cost;
252 if (numitems == 0.0)
255 if (cost > Player.p_gold || numitems < 0)
258 if (numitems < Player.p_shield)
266 Player.p_shield = numitems;
273 cost = (numitems = floor(infloat())) * Menu[2].cost;
275 if (cost > Player.p_gold || numitems < 0)
283 if (drandom() * numitems > Player.p_level / 10.0
284 && numitems != 1) {
288 Player.p_brains += floor(numitems) * ROLL(20, 8);
296 cost = (numitems = floor(infloat())) * Menu[3].cost;
298 if (numitems == 0.0)
301 if (cost > Player.p_gold || numitems < 0)
304 if (numitems < Player.p_sword)
312 Player.p_sword = numitems;
319 cost = (numitems = floor(infloat())) * Menu[4].cost;
321 if (cost > Player.p_gold || numitems < 0)
329 Player.p_charms += numitems;
336 cost = (numitems = floor(infloat())) * Menu[5].cost;
338 if (numitems == 0.0)
341 if (cost > Player.p_gold || numitems < 0)
344 if (numitems < Player.p_quksilver)
352 Player.p_quksilver = numitems;
383 numitems = floor(infloat());
385 if (numitems > Player.p_gems || numitems < 0)
389 Player.p_gems -= numitems;
390 Player.p_gold += numitems * N_GEMVALUE;