Commit 650c572c authored by Rahix's avatar Rahix 🦀
Browse files

bottle_angel: Randomly choose a compatible level

Randomly choose between assembly hall and CCL for now.
parent c7daf191
......@@ -12,10 +12,13 @@ pub struct BottleAngelShift {
impl BottleAngelShift {
pub fn generate(rng: &mut impl rand::Rng) -> BottleAngelShift {
use rand::seq::SliceRandom;
let compatible_levels = ["assembly-hall-1.svg", "ccl-ground-level.svg"];
BottleAngelShift {
hours: rng.gen_range(1, 3),
// TODO: When there are more levels, randomly select one here.
level: "assembly-hall-1.svg".to_owned(),
level: compatible_levels.choose(rng).unwrap().to_string(),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment