comparison srogue/wizard.c @ 44:7612f48a38ad

srogue: prevent aquiring unlimited scrolls of aquirement.
author elwin
date Tue, 07 Dec 2010 22:31:33 +0000
parents 2128c7dc8a40
children fdc588551178
comparison
equal deleted inserted replaced
43:24e6beb9e7aa 44:7612f48a38ad
229 if (ch < 0) 229 if (ch < 0)
230 setoflg(obj, ISCURSED); 230 setoflg(obj, ISCURSED);
231 else 231 else
232 resoflg(obj, ISCURSED); 232 resoflg(obj, ISCURSED);
233 } 233 }
234 /* Don't let scrolls of aquirement give multiple scrolls of
235 * aquirement, or you will be able to scum for ANYTHING. */
236 if (!wizard && wh == SCROLL && obj->o_which == S_MAKEIT)
237 obj->o_count = 1;
234 mpos = 0; 238 mpos = 0;
235 if (fscr) 239 if (fscr)
236 whatis(item); /* identify for aquirement scroll */ 240 whatis(item); /* identify for aquirement scroll */
237 wh = add_pack(item, FALSE); 241 wh = add_pack(item, FALSE);
238 if (wh == FALSE) /* won't fit in pack */ 242 if (wh == FALSE) /* won't fit in pack */