Mercurial > hg > early-roguelike
changeset 44:7612f48a38ad
srogue: prevent aquiring unlimited scrolls of aquirement.
author | elwin |
---|---|
date | Tue, 07 Dec 2010 22:31:33 +0000 |
parents | 24e6beb9e7aa |
children | 5926ec314fd4 |
files | srogue/wizard.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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 */