From d66603827b9e7e8a566390f0c10e3e7ac5f4e611 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 23 Mar 2002 22:11:07 +0000 Subject: [PATCH] only get gems from kicking thrones - this was a betabug I think, but not recorded as such - if you kicked a throne, any GEM_CLASS item could be generated, including rocks - changes behavior to be consistent with gems from fountains --- doc/fixes34.1 | 1 + src/dokick.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index f033d770b..68aab9bc2 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -12,6 +12,7 @@ allow both wishing and genocide to accept either "none" or "nothing" when the player wants to decline left word in format string in get_wet() causing "The spellbook fadefades" two bad wizkit items in a row shouldn't make the user hit space many times +kicking thrones no longer loosens rocks Platform- and/or Interface-Specific Fixes diff --git a/src/dokick.c b/src/dokick.c index b5b90329d..9cf1acfae 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -811,7 +811,9 @@ dokick() (void) mkgold((long) rn1(201, 300), x, y); i = Luck + 1; if(i > 6) i = 6; - while(i--) (void) mkobj_at(GEM_CLASS, x, y, TRUE); + while(i--) + (void) mksobj_at(rnd_class(DILITHIUM_CRYSTAL, + LUCKSTONE-1), x, y, FALSE, TRUE); if (Blind) You("kick %s loose!", something); else {