Add flashlight
Co-authored-by: wm-c <wcmeathrel@gmail.com>
This commit is contained in:
parent
73ac4d25a9
commit
6c288e9178
12
src/items.rs
12
src/items.rs
@ -58,7 +58,17 @@ pub struct Flashlight {
|
|||||||
impl Flashlight{
|
impl Flashlight{
|
||||||
pub fn lvl1() -> Self {
|
pub fn lvl1() -> Self {
|
||||||
Self {
|
Self {
|
||||||
radius: 0.25
|
radius: 0.25,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pub fn lvl2() -> Self {
|
||||||
|
Self {
|
||||||
|
radius: 0.5,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pub fn lvl3() -> Self {
|
||||||
|
Self {
|
||||||
|
radius: 1.0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user