Themerooms: Engraving hints the location of buried treasure
Add two new themeroom functions that are called when generating the level: pre_themerooms_generate and post_themerooms_generate, calles before and after themerooms_generate. Allow the buried treasure -themeroom to put down an engraving anywhere on the level, hinting at the location of the treasure. des.object contents function now gets the generated object passed to it as a parameter.
This commit is contained in:
@@ -651,6 +651,7 @@ Example:
|
||||
des.non_passwall(selection);
|
||||
des.non_passwall();
|
||||
|
||||
|
||||
=== object
|
||||
|
||||
Create an object. The table parameter accepts the following:
|
||||
@@ -682,7 +683,7 @@ Create an object. The table parameter accepts the following:
|
||||
| male | boolean | Is statue male?
|
||||
| female | boolean | Is statue female?
|
||||
| laid_by_you | boolean | Is an egg laid by you?
|
||||
| contents | function | Container contents
|
||||
| contents | function | Container contents. The container object is given as a parameter. See <<Obj>> class.
|
||||
|===
|
||||
|
||||
Example:
|
||||
@@ -694,7 +695,8 @@ Example:
|
||||
des.object("scimitar", {6, 7});
|
||||
des.object({ class = "%" });
|
||||
des.object({ id = "boulder", x = 03, y = 12});
|
||||
des.object({ id = "chest", coord = {03, 12}, locked = true, contents = function() des.object("rock"); end });
|
||||
des.object({ id = "chest", coord = {03, 12}, locked = true, contents = function(obj) des.object("rock"); end });
|
||||
|
||||
|
||||
=== random_corridors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user