]> granicus.if.org Git - nethack/commitdiff
Fixes and lua doc
authorPasi Kallinen <paxed@alt.org>
Tue, 29 Sep 2020 14:35:16 +0000 (17:35 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 29 Sep 2020 14:35:16 +0000 (17:35 +0300)
doc/fixes37.0
doc/lua.adoc

index 5465ae3385846fbe3783e3646a87bce6a75119a9..2adfa50f356bfb11cbc38b62b5801675ad1d15df 100644 (file)
@@ -588,6 +588,7 @@ redo rndmonst() to operate in a single pass (github pull request #286)
 fix the "stuck pets" issue (github #329)
 allow themed room subrooms to be filled (github #347)
 allow rereading spellbooks to refresh memory at any time (github #261)
+allow themed rooms constrained by level difficulty (github #344)
 
 
 Code Cleanup and Reorganization
index cc4835d7bcec83ff6ee938845be77a3926a930d4..b19186003d42b26bc1bd716687863d584095f493 100644 (file)
@@ -111,6 +111,15 @@ Example:
  local str = nh.ing_suffix("foo");
 
 
+=== level_difficulty
+
+Returns an integer value describing the level difficulty.
+Normally this is the level's physical depth from the surface.
+
+Example:
+
+ local diff = nh.level_difficulty();
+
 === makeplural
 
 Pluralize the given string.