diff 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
line wrap: on
line diff
--- a/srogue/wizard.c	Tue Dec 07 16:46:07 2010 +0000
+++ b/srogue/wizard.c	Tue Dec 07 22:31:33 2010 +0000
@@ -231,6 +231,10 @@
 		else
 			resoflg(obj, ISCURSED);
 	}
+	/* Don't let scrolls of aquirement give multiple scrolls of 
+	 * aquirement, or you will be able to scum for ANYTHING. */
+	if (!wizard && wh == SCROLL && obj->o_which == S_MAKEIT)
+		obj->o_count = 1;
 	mpos = 0;
 	if (fscr)
 		whatis(item);			/* identify for aquirement scroll */