Made boulders avoid rivers

This commit is contained in:
Joshua Barretto 2020-08-29 08:53:42 +01:00
parent 7dab96a9cf
commit 2a64a75a0f
4 changed files with 1479 additions and 382 deletions

1855
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -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> {

View File

@ -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)