coastal town fence fix

This commit is contained in:
flo 2023-08-15 22:34:38 +00:00 committed by Joshua Barretto
parent c6e9d3a202
commit 36c0096f6a
3 changed files with 9 additions and 15 deletions

View File

@ -72,8 +72,8 @@ impl Structure for CoastalHouse {
// fence, blue gates // fence, blue gates
painter painter
.aabb(Aabb { .aabb(Aabb {
min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - 1), min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - 2),
max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base), max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 1),
}) })
.fill(blue_broken.clone()); .fill(blue_broken.clone());
@ -90,7 +90,7 @@ impl Structure for CoastalHouse {
painter painter
.aabb(Aabb { .aabb(Aabb {
min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - height), min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - height),
max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 1), max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 2),
}) })
.fill(white.clone()); .fill(white.clone());
for f in 0..8 { for f in 0..8 {

View File

@ -70,8 +70,8 @@ impl Structure for CoastalWorkshop {
// fence, blue gates // fence, blue gates
painter painter
.aabb(Aabb { .aabb(Aabb {
min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - 1), min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - 2),
max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base), max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 1),
}) })
.fill(blue_broken.clone()); .fill(blue_broken.clone());
@ -88,7 +88,7 @@ impl Structure for CoastalWorkshop {
painter painter
.aabb(Aabb { .aabb(Aabb {
min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - height), min: Vec2::new(center.x - length - 6, center.y - width - 6).with_z(base - height),
max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 1), max: Vec2::new(center.x + length + 7, center.y + width + 7).with_z(base - 2),
}) })
.fill(white.clone()); .fill(white.clone());
for f in 0..8 { for f in 0..8 {

View File

@ -80,16 +80,10 @@ impl Structure for SavannahPit {
) )
.fill(clay.clone()); .fill(clay.clone());
// outside cylinder and decor // outside cylinder and decor
painter
.cylinder(Aabb {
min: (center - (3 * length) - 3).with_z(base - 1),
max: (center + (3 * length) + 3).with_z(base),
})
.fill(wood_light.clone());
painter painter
.cylinder(Aabb { .cylinder(Aabb {
min: (center - (3 * length) - 2).with_z(base - (1 * length)), min: (center - (3 * length) - 2).with_z(base - (1 * length)),
max: (center + (3 * length) + 2).with_z(base + 1), max: (center + (3 * length) + 2).with_z(base),
}) })
.fill(clay.clone()); .fill(clay.clone());
painter painter
@ -223,8 +217,8 @@ impl Structure for SavannahPit {
// top ring // top ring
painter painter
.cylinder(Aabb { .cylinder(Aabb {
min: (center - (3 * length) - 1).with_z(base), min: (center - (3 * length) - 1).with_z(base - 1),
max: (center + (3 * length) + 1).with_z(base + 1), max: (center + (3 * length) + 1).with_z(base),
}) })
.fill(wood_light.clone()); .fill(wood_light.clone());
// floor 0 ring // floor 0 ring