Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Engel Simulator 2020
Engel Simulator 2020
Commits
81007653
Commit
81007653
authored
Dec 27, 2020
by
Rahix
🦀
Browse files
Merge 'CCL ground floor level'
See merge request
!36
parents
0dd78c79
650c572c
Changes
2
Pipelines
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/angel_shifts/bottle_angel.rs
View file @
81007653
...
...
@@ -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
(),
}
}
}
...
...
www/resources/levels/ccl-ground-level.svg
0 → 100644
View file @
81007653
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment