Allow defining random-teleport exclusion zones in lua
Adds a new lua command
des.exclusion({ type = "teleport", region = { x1,y1, x2,y2 } });
which allows defining "exclusion zones" in the level, areas where
random teleports (or falling into the level) will never place the hero.
Does not prevent targeted teleportation into the area.
Breaks saves and bones.
This commit is contained in:
@@ -745,6 +745,9 @@ extern char *stairs_description(stairway *, char *, boolean);
|
||||
extern schar print_dungeon(boolean, schar *, xint16 *);
|
||||
extern char *get_annotation(d_level *);
|
||||
extern int donamelevel(void);
|
||||
extern void free_exclusions(void);
|
||||
extern void save_exclusions(NHFILE *);
|
||||
extern void load_exclusions(NHFILE *);
|
||||
extern int dooverview(void);
|
||||
extern void show_overview(int, int);
|
||||
extern void rm_mapseen(int);
|
||||
|
||||
Reference in New Issue
Block a user