diff options
Diffstat (limited to 'src/traps.c')
-rw-r--r-- | src/traps.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/traps.c b/src/traps.c index 1c8e36c9..0006edc7 100644 --- a/src/traps.c +++ b/src/traps.c @@ -2062,6 +2062,17 @@ void place_trap(int y, int x) /* + * Place a leveled trap at given position + */ +void place_trap_leveled(int y, int x, int lev) +{ + int prev_dun_level = dun_level; + dun_level = lev; + place_trap(y,x); + dun_level = prev_dun_level; +} + +/* * Places a random trap on the given chest. * * The object must be a valid chest. |