From c4dd17f25da39ab56341ab21f4965e4532c843eb Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 25 Apr 2021 09:52:15 -0400 Subject: [PATCH] Add airbag item data Co-authored-by: wm-c --- src/items.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index 547477e..8d46661 100644 --- a/src/items.rs +++ b/src/items.rs @@ -22,7 +22,27 @@ impl StunGun { } #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)] -pub struct AirBag; +pub struct AirBag{ + extra_oxygen: u32, +} + +impl AirBag { + pub fn lvl1() -> Self { + Self { + extra_oxygen: 15, + } + } + pub fn lvl2() -> Self { + Self { + extra_oxygen: 30, + } + } + pub fn lvl3() -> Self { + Self { + extra_oxygen: 45, + } + } +} #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)] pub struct Flashlight {