Made boulders avoid rivers

This commit is contained in:
Joshua Barretto 2020-08-29 08:53:42 +01:00
parent 7f9655e2b8
commit f34491e2ba
4 changed files with 1479 additions and 382 deletions
Cargo.lockCargo.toml
server/src
world/src/sim

1855
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -7,6 +7,7 @@ members = [
"chat-cli",
"server",
"server-cli",
"server-gui",
"voxygen",
"world",
"network",

@ -358,6 +358,9 @@ impl Server {
/// Get a reference to the server's world.
pub fn world(&self) -> &World { &self.world }
/// Get a reference to the server's world map.
pub fn map(&self) -> &WorldMapMsg { &self.map }
/// Execute a single server tick, handle input and update the game state by
/// the given duration.
pub fn tick(&mut self, _input: Input, dt: Duration) -> Result<Vec<Event>, Error> {

@ -2182,7 +2182,7 @@ impl SimChunk {
downhill,
temp,
humidity,
rockiness: if true {
rockiness: if true && !river.is_river() {
(gen_ctx.rock_nz.get((wposf.div(1024.0)).into_array()) as f32)
.sub(0.1)
.mul(1.3)