diff options
author | paramat <mat.gregory@virginmedia.com> | 2017-02-21 01:56:34 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-02-26 06:46:14 +0000 |
commit | a901a56859e5beaec6a542eae037dc0b736a20e3 (patch) | |
tree | 0c566b3018494a7d3fec5d230b432bb2891bae79 /src/dungeongen.h | |
parent | 4d634ef675020964413020f6215529670af0091a (diff) | |
download | minetest-a901a56859e5beaec6a542eae037dc0b736a20e3.tar.gz minetest-a901a56859e5beaec6a542eae037dc0b736a20e3.tar.bz2 minetest-a901a56859e5beaec6a542eae037dc0b736a20e3.zip |
Dungeongen: Add and improve parameters
Add:
Bool for 'only_in_ground'.
Min and max corridor length.
Min and max room size with X, Y, Z components.
Min and max large room size with X, Y, Z components.
'only_in_ground = false' allows core mapgens to create structures
in air and water using dungeongen.
Corridor length parameters replace a fixed random range.
Room size parameters replace the former system where one parameter
'roomsize' was added to fixed random ranges.
All parameters are set for no change to current dungeon behaviour.
Remove some now-redundant and long-unused code.
Diffstat (limited to 'src/dungeongen.h')
-rw-r--r-- | src/dungeongen.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dungeongen.h b/src/dungeongen.h index 30786b9f3..4bd208330 100644 --- a/src/dungeongen.h +++ b/src/dungeongen.h @@ -48,8 +48,14 @@ struct DungeonParams { content_t c_stair; bool diagonal_dirs; + bool only_in_ground; v3s16 holesize; - v3s16 roomsize; + u16 corridor_len_min; + u16 corridor_len_max; + v3s16 room_size_min; + v3s16 room_size_max; + v3s16 room_size_large_min; + v3s16 room_size_large_max; u16 rooms_min; u16 rooms_max; s16 y_min; |