]> granicus.if.org Git - nethack/commitdiff
crowning bonus (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 4 Mar 2010 01:45:43 +0000 (01:45 +0000)
committernethack.rankin <nethack.rankin>
Thu, 4 Mar 2010 01:45:43 +0000 (01:45 +0000)
     Have being crowned Hand of Elbereth/Envoy of Balance/Glory of Arioch
give a minor extra benefit beyond resistances and an artifact and maybe
unlocking the artifact's skill:  one extra skill credit, making it
feasible to earn 30 rather than 29.  (Previously the only way to get any
was to receive one for each new experience level, so you could gain one
29 times when going from level 1 to level 30.)  Added as a new feature.

doc/fixes35.0
src/pray.c

index 858fa1d368e8ab9a79bd17bf8cd5615f20b6a847..fd10b0cd2f4d00d7d4c629487c3f3a413fdeec62 100644 (file)
@@ -450,6 +450,7 @@ fainting while wielding a cockatrice corpse will be fatal
 Sunsword's light radius depends on its curse/bless state
 Add M-C and M-R meta-key shortcuts for #conduct and #ride, respectively 
 can now use ESC to cancel out of prompts for playing musical instruments
+being crowned gives an additional benefit:  one extra skill slot/credit
 
 
 Platform- and/or Interface-Specific New Features
index 94a403f1add1f32eb82a55861891d219f7cc4124..cfd827154f54fefb25188e065ee9f993d98318ac 100644 (file)
@@ -1,5 +1,4 @@
 /* NetHack 3.5 pray.c  $Date$  $Revision$ */
-/*     SCCS Id: @(#)pray.c     3.5     2009/01/23      */
 /* Copyright (c) Benson I. Margulies, Mike Stephenson, Steve Linhart, 1989. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -815,6 +814,10 @@ gcrownu()
        You_feel("unworthy.");
     }
     update_inventory();
+
+    /* lastly, confer an extra skill slot/credit beyond the
+       up-to-29 you can get from gaining experience levels */
+    add_weapon_skill(1);
     return;
 }
 #endif /*ELBERETH*/