Split themeroom shape from themeroom contents
Previously, the tetris-shaped rooms were always either normal rooms, or turned into shops or other special rooms in NetHack core. Now, the themed room lua code first picks the themed room (which can be a themed or shaped), and some of those will then pick a random filling (eg. ice floor, traps, corpses, 3 altars). Adds a new lua binding to create a selection picking locations in current room. The content-function in special level regions now get passed the room data as a parameter.
This commit is contained in:
@@ -2612,6 +2612,7 @@ extern boolean get_coord(lua_State *, int, lua_Integer *, lua_Integer *);
|
||||
extern void cvt_to_abscoord(coordxy *, coordxy *);
|
||||
extern void cvt_to_relcoord(coordxy *, coordxy *);
|
||||
extern int nhl_abs_coord(lua_State *);
|
||||
extern struct selectionvar *selection_from_mkroom(struct mkroom *);
|
||||
extern void update_croom(void);
|
||||
extern const char *get_trapname_bytype(int);
|
||||
extern void l_register_des(lua_State *);
|
||||
|
||||
Reference in New Issue
Block a user