mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevented windows spawning inside houses
This commit is contained in:
@ -199,7 +199,8 @@ impl Archetype for House {
|
|||||||
|
|
||||||
let facade_layer = 3;
|
let facade_layer = 3;
|
||||||
let structural_layer = facade_layer + 1;
|
let structural_layer = facade_layer + 1;
|
||||||
let foundation_layer = structural_layer + 1;
|
let internal_layer = structural_layer + 1;
|
||||||
|
let foundation_layer = internal_layer + 1;
|
||||||
let floor_layer = foundation_layer + 1;
|
let floor_layer = foundation_layer + 1;
|
||||||
|
|
||||||
let foundation = make_block(100, 100, 100).with_priority(foundation_layer);
|
let foundation = make_block(100, 100, 100).with_priority(foundation_layer);
|
||||||
@ -209,7 +210,7 @@ impl Archetype for House {
|
|||||||
let roof = make_block(self.roof_color.r, self.roof_color.g, self.roof_color.b)
|
let roof = make_block(self.roof_color.r, self.roof_color.g, self.roof_color.b)
|
||||||
.with_priority(facade_layer - 1);
|
.with_priority(facade_layer - 1);
|
||||||
let empty = BlockMask::nothing();
|
let empty = BlockMask::nothing();
|
||||||
let internal = BlockMask::new(Block::empty(), structural_layer);
|
let internal = BlockMask::new(Block::empty(), internal_layer);
|
||||||
let end_window = BlockMask::new(
|
let end_window = BlockMask::new(
|
||||||
Block::new(BlockKind::Window1, make_meta(ori.flip())),
|
Block::new(BlockKind::Window1, make_meta(ori.flip())),
|
||||||
structural_layer,
|
structural_layer,
|
||||||
|
Reference in New Issue
Block a user