From: Pasi Kallinen Date: Tue, 29 Sep 2020 14:35:16 +0000 (+0300) Subject: Fixes and lua doc X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=476990b3031d71198758be5440d8d25e772229ff;p=nethack Fixes and lua doc --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 5465ae338..2adfa50f3 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/doc/lua.adoc b/doc/lua.adoc index cc4835d7b..b19186003 100644 --- a/doc/lua.adoc +++ b/doc/lua.adoc @@ -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.