mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made boulders avoid rivers
This commit is contained in:
parent
7dab96a9cf
commit
2a64a75a0f
1855
Cargo.lock
generated
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)
|
||||
|
Loading…
Reference in New Issue
Block a user