town ground color

This commit is contained in:
jshipsey 2020-04-19 10:53:16 -04:00 committed by Joshua Barretto
parent 43b4ae6e47
commit 27dab981d2

View File

@ -557,9 +557,9 @@ impl Settlement {
Some(Plot::Grass) => Some(Rgb::new(100, 200, 0)),
Some(Plot::Water) => Some(Rgb::new(100, 150, 250)),
Some(Plot::Town) => {
Some(Rgb::new(150, 110, 60).map2(Rgb::iota(), |e: u8, i: i32| {
Some(Rgb::new(100, 90, 75).map2(Rgb::iota(), |e: u8, i: i32| {
e.saturating_add(
(self.noise.get(Vec3::new(wpos2d.x, wpos2d.y, i * 5)) % 16)
(self.noise.get(Vec3::new(wpos2d.x, wpos2d.y, i * 5)) % 1)
as u8,
)
.saturating_sub(8)