]> granicus.if.org Git - nethack/commitdiff
tuning: thrones
authorPatR <rankin@nethack.org>
Fri, 18 Mar 2016 22:46:11 +0000 (15:46 -0700)
committerPatR <rankin@nethack.org>
Fri, 18 Mar 2016 22:46:11 +0000 (15:46 -0700)
This was sitting around for several years.  When positive luck
lessens a negative effect from sitting on a throne, reduce luck so
that repeated occurances will eventually get the intended result.

src/sit.c

index b39df58eaab32d9cb8e261db894247f954b36185..cbc88f922b28429a993fa8509def7d72ada9ec41 100644 (file)
--- a/src/sit.c
+++ b/src/sit.c
@@ -1,4 +1,4 @@
-/* NetHack 3.6 sit.c   $NHDT-Date: 1445906863 2015/10/27 00:47:43 $  $NHDT-Branch: master $:$NHDT-Revision: 1.51 $ */
+/* NetHack 3.6 sit.c   $NHDT-Date: 1458341129 2016/03/18 22:45:29 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.53 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -226,6 +226,7 @@ dosit()
                  "A curse upon thee for sitting upon this most holy throne!");
                 if (Luck > 0) {
                     make_blinded(Blinded + rn1(100, 250), TRUE);
+                    change_luck((Luck > 1) ? -rnd(2) : -1);
                 } else
                     rndcurse();
                 break;