mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
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.
This commit is contained in:
parent
4d634ef675
commit
a901a56859
4 changed files with 132 additions and 103 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue