mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix more examples and satisfy code quality checks
This commit is contained in:
parent
2dd63a333e
commit
453c4c149e
@ -1,6 +1,6 @@
|
||||
[
|
||||
(4.0, ItemQuantity("common.items.food.blue_cheese", 1, 30)),
|
||||
(3.0, Some(Item("common.items.armor.misc.head.woolly_wintercap"))),
|
||||
(2.0, Some(Item("common.items.armor.misc.head.boreal_warhelm"))),
|
||||
(1.0, Some(Item("common.items.lantern.polaris"))),
|
||||
]
|
||||
(3.0, Item("common.items.calendar.christmas.armor.misc.head.woolly_wintercap")),
|
||||
(2.0, Item("common.items.armor.misc.head.boreal_warhelm")),
|
||||
(1.0, Item("common.items.lantern.polaris")),
|
||||
]
|
||||
|
@ -23,6 +23,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
// directly with a closure.
|
||||
seed_elements: true,
|
||||
world_file: sim::FileOpts::LoadAsset(sim::DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -677,6 +677,7 @@ fn main() {
|
||||
WorldOpts {
|
||||
seed_elements: true,
|
||||
world_file: FileOpts::LoadAsset(DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -29,6 +29,7 @@ fn main() -> Result {
|
||||
WorldOpts {
|
||||
seed_elements: true,
|
||||
world_file: FileOpts::LoadAsset(DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -124,6 +124,7 @@ fn main() {
|
||||
WorldOpts {
|
||||
seed_elements: true,
|
||||
world_file: FileOpts::LoadAsset(DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -166,6 +166,7 @@ fn main() {
|
||||
WorldOpts {
|
||||
seed_elements: true,
|
||||
world_file: FileOpts::LoadAsset(DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -35,7 +35,7 @@ fn main() {
|
||||
let pos = focus + Vec2::new(i as i32, j as i32) * scale;
|
||||
|
||||
let (alt, place) = sampler
|
||||
.get((pos, index))
|
||||
.get((pos, index, None))
|
||||
.map(|sample| {
|
||||
(
|
||||
sample.alt.sub(64.0).add(gain).mul(0.7).max(0.0).min(255.0) as u8,
|
||||
|
@ -49,6 +49,7 @@ fn main() {
|
||||
world_file: sim::FileOpts::LoadAsset(veloren_world::sim::DEFAULT_WORLD_MAP.into()),
|
||||
/* world_file: sim::FileOpts::Load(_map_file),
|
||||
* world_file: sim::FileOpts::Save(sim::SizeOpts::default()), */
|
||||
calendar: None,
|
||||
},
|
||||
&threadpool,
|
||||
);
|
||||
@ -66,6 +67,7 @@ fn main() {
|
||||
uniform_idx_as_vec2(map_size_lg, posi)
|
||||
* TerrainChunkSize::RECT_SIZE.map(|e| e as i32),
|
||||
index,
|
||||
None,
|
||||
))
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
|
@ -67,6 +67,7 @@ fn generate(db_path: &str, ymin: Option<i32>, ymax: Option<i32>) -> Result<(), B
|
||||
WorldOpts {
|
||||
seed_elements: true,
|
||||
world_file: FileOpts::LoadAsset(DEFAULT_WORLD_MAP.into()),
|
||||
calendar: None,
|
||||
},
|
||||
&pool,
|
||||
);
|
||||
|
@ -74,9 +74,9 @@ impl<'a> BlockGen<'a> {
|
||||
//tree_density,
|
||||
//forest_kind,
|
||||
//close_structures,
|
||||
marble,
|
||||
marble_mid,
|
||||
marble_small,
|
||||
marble: _,
|
||||
marble_mid: _,
|
||||
marble_small: _,
|
||||
rock,
|
||||
// temp,
|
||||
// humidity,
|
||||
|
Loading…
Reference in New Issue
Block a user