an http based roguelike rpg about jelqing
Blame: src/game/items.rs
782069860236 | atagen | 2026-10-10 12:44 UTC | 1 | use super::balance::STARTING_ICE_PACKS; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 2 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 3 | #[derive(Clone, Copy, PartialEq, Eq, Debug)] |
782069860236 | atagen | 2026-10-10 12:44 UTC | 4 | pub enum Item { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 5 | WarmTowel, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 6 | IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 7 | Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 8 | DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 9 | DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 10 | Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 11 | Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 12 | PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 13 | Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 14 | Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 15 | Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 16 | Cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 17 | CageKey, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 18 | Spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 19 | TeapotSpout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 20 | BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 21 | CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 22 | Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 23 | Vaseline, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 24 | EnergyDrink, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 25 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 26 | |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 27 | pub const SHOP: [Item; 15] = [ |
782069860236 | atagen | 2026-10-10 12:44 UTC | 28 | Item::Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 29 | Item::PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 30 | Item::Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 31 | Item::Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 32 | Item::Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 33 | Item::DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 34 | Item::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 35 | Item::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 36 | Item::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 37 | Item::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 38 | Item::CageKey, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 39 | Item::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 40 | Item::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 41 | Item::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 42 | Item::Vaseline, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 43 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 44 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 45 | impl Item { |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 46 | const ALL: [Self; 20] = [ |
782069860236 | atagen | 2026-10-10 12:44 UTC | 47 | Self::WarmTowel, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 48 | Self::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 49 | Self::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 50 | Self::DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 51 | Self::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 52 | Self::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 53 | Self::Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 54 | Self::PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 55 | Self::Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 56 | Self::Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 57 | Self::Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 58 | Self::Cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 59 | Self::CageKey, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 60 | Self::Spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 61 | Self::TeapotSpout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 62 | Self::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 63 | Self::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 64 | Self::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 65 | Self::Vaseline, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 66 | Self::EnergyDrink, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 67 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 68 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 69 | pub fn slug(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 70 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 71 | Self::WarmTowel => "warm-towel", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 72 | Self::IcePack => "ice-pack", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 73 | Self::Ruler => "ruler", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 74 | Self::DoorLock => "door-lock", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 75 | Self::DndSign => "do-not-disturb-sign", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 76 | Self::Blinds => "window-blinds", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 77 | Self::Pump => "pump", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 78 | Self::PumpPro => "pump-pro", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 79 | Self::Extender => "extender", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 80 | Self::Ring => "cock-ring", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 81 | Self::Supplement => "supplement", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 82 | Self::Cage => "chastity-cage", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 83 | Self::CageKey => "cage-key", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 84 | Self::Spreadsheet => "spreadsheet", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 85 | Self::TeapotSpout => "teapot-spout", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 86 | Self::BabyOil => "baby-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 87 | Self::CoconutOil => "coconut-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 88 | Self::Lotion => "lotion", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 89 | Self::Vaseline => "vaseline", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 90 | Self::EnergyDrink => "energy-drink", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 91 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 92 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 93 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 94 | pub fn parse(slug: &str) -> Option<Self> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 95 | Self::ALL.into_iter().find(|item| item.slug() == slug) |
782069860236 | atagen | 2026-10-10 12:44 UTC | 96 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 97 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 98 | pub fn description(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 99 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 100 | Self::WarmTowel => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 101 | "Reusable. Satisfies the warm-up precondition. Use technique=warmup." |
782069860236 | atagen | 2026-10-10 12:44 UTC | 102 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 103 | Self::IcePack => "Lowers EQ by 40. Use technique=ice.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 104 | Self::Ruler => "Measures honestly. The length resource now carries a Content-Length.", |
7d3fb63208bf | atagen | 2026-10-11 04:38 UTC | 105 | Self::DoorLock => "Keeps your brother out once.", |
9683736a2c5e | atagen | 2026-10-10 13:15 UTC | 106 | Self::DndSign => "Works on housekeeping. Mum does not read signs.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 107 | Self::Blinds => "The neighbour has a good camera. The blinds are better.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 108 | Self::Pump => "A pump.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 109 | Self::PumpPro => "Use technique=pump. Gains are temporary.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 110 | Self::Extender => "Passive gains each turn. Takes up room. Can be removed with DELETE.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 111 | Self::Ring => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 112 | "Girth gains doubled. Rupture risk raised. Responses are compressed if you accept gzip. Can be removed with DELETE." |
782069860236 | atagen | 2026-10-10 12:44 UTC | 113 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 114 | Self::Supplement => "Use technique=supplement.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 115 | Self::Cage => "Locked.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 116 | Self::CageKey => "Pump-Bro does not ask.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 117 | Self::Spreadsheet => "Charts your progress. Every line is flat.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 118 | Self::TeapotSpout => "Does nothing. Cannot be dropped.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 119 | Self::BabyOil => "Smooth. +1. One unit per jelq.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 120 | Self::CoconutOil => "+3. Solid until it matters. Suspicious at Nan's.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 121 | Self::Lotion => "Handy. +0, and it chafes, so each jelq costs an extra stamina.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 122 | Self::Vaseline => "+2. Raises suspicion everywhere.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 123 | Self::EnergyDrink => "technique=energy. +3 stamina. Tastes like a battery.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 124 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 125 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 126 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 127 | pub fn pitch(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 128 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 129 | Self::PumpPro => "A pump, but professional.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 130 | Self::Extender => "Passive gains every turn. Takes up room.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 131 | Self::Ring => "Doubles girth gains. Pump-Bro does not discuss the risks.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 132 | Self::Supplement => "Clinically formulated. Ships from overseas.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 133 | Self::DndSign => "Housekeeping respects it.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 134 | Self::Blinds => "The neighbour has a good camera.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 135 | Self::Ruler => "Pump-Bro does not recommend it.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 136 | Self::IcePack => "Cold.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 137 | _ => self.description(), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 138 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 139 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 140 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 141 | pub fn price(self) -> Option<u32> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 142 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 143 | Self::Pump => Some(10), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 144 | Self::PumpPro | Self::Extender | Self::CageKey => Some(15), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 145 | Self::Ring => Some(8), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 146 | Self::Supplement | Self::DoorLock | Self::DndSign | Self::Blinds | Self::Ruler => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 147 | Some(5) |
782069860236 | atagen | 2026-10-10 12:44 UTC | 148 | } |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 149 | Self::BabyOil | Self::CoconutOil | Self::Lotion | Self::Vaseline => Some(4), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 150 | Self::IcePack => Some(3), |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 151 | Self::WarmTowel |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 152 | | Self::Cage |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 153 | | Self::Spreadsheet |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 154 | | Self::TeapotSpout |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 155 | | Self::EnergyDrink => None, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 156 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 157 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 158 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 159 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 160 | pub struct Items { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 161 | pub ruler: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 162 | pub ice_packs: u32, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 163 | pub door_locks: u32, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 164 | pub dnd_sign: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 165 | pub blinds: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 166 | pub pump_pro: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 167 | pub extender: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 168 | pub ring: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 169 | pub supplements: u32, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 170 | pub cage: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 171 | pub spreadsheet: bool, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 172 | pub teapot_spout: bool, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 173 | pub baby_oil: u32, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 174 | pub coconut_oil: u32, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 175 | pub lotion: u32, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 176 | pub vaseline: u32, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 177 | pub energy_drinks: u32, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 178 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 179 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 180 | impl Default for Items { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 181 | fn default() -> Self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 182 | Self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 183 | ruler: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 184 | ice_packs: STARTING_ICE_PACKS, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 185 | door_locks: 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 186 | dnd_sign: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 187 | blinds: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 188 | pump_pro: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 189 | extender: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 190 | ring: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 191 | supplements: 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 192 | cage: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 193 | spreadsheet: false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 194 | teapot_spout: false, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 195 | baby_oil: 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 196 | coconut_oil: 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 197 | lotion: 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 198 | vaseline: 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 199 | energy_drinks: 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 200 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 201 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 202 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 203 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 204 | impl Items { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 205 | pub fn has(&self, item: Item) -> bool { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 206 | match item { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 207 | Item::WarmTowel => true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 208 | Item::IcePack => self.ice_packs > 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 209 | Item::Ruler => self.ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 210 | Item::DoorLock => self.door_locks > 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 211 | Item::DndSign => self.dnd_sign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 212 | Item::Blinds => self.blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 213 | Item::PumpPro => self.pump_pro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 214 | Item::Extender => self.extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 215 | Item::Ring => self.ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 216 | Item::Supplement => self.supplements > 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 217 | Item::Cage => self.cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 218 | Item::Spreadsheet => self.spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 219 | Item::TeapotSpout => self.teapot_spout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 220 | Item::BabyOil => self.baby_oil > 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 221 | Item::CoconutOil => self.coconut_oil > 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 222 | Item::Lotion => self.lotion > 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 223 | Item::Vaseline => self.vaseline > 0, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 224 | Item::EnergyDrink => self.energy_drinks > 0, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 225 | Item::Pump | Item::CageKey => false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 226 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 227 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 228 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 229 | pub fn owned(&self) -> Vec<Item> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 230 | Item::ALL |
782069860236 | atagen | 2026-10-10 12:44 UTC | 231 | .into_iter() |
782069860236 | atagen | 2026-10-10 12:44 UTC | 232 | .filter(|&item| self.has(item)) |
782069860236 | atagen | 2026-10-10 12:44 UTC | 233 | .collect() |
782069860236 | atagen | 2026-10-10 12:44 UTC | 234 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 235 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 236 | pub fn grant(&mut self, item: Item) { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 237 | match item { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 238 | Item::IcePack => self.ice_packs += 1, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 239 | Item::Ruler => self.ruler = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 240 | Item::DoorLock => self.door_locks += 1, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 241 | Item::DndSign => self.dnd_sign = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 242 | Item::Blinds => self.blinds = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 243 | Item::PumpPro => self.pump_pro = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 244 | Item::Extender => self.extender = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 245 | Item::Ring => self.ring = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 246 | Item::Supplement => self.supplements += 1, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 247 | Item::Cage => self.cage = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 248 | Item::CageKey => self.cage = false, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 249 | Item::Spreadsheet => self.spreadsheet = true, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 250 | Item::TeapotSpout => self.teapot_spout = true, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 251 | Item::BabyOil => self.baby_oil += 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 252 | Item::CoconutOil => self.coconut_oil += 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 253 | Item::Lotion => self.lotion += 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 254 | Item::Vaseline => self.vaseline += 1, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 255 | Item::EnergyDrink => self.energy_drinks += 1, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 256 | Item::WarmTowel | Item::Pump => {} |
782069860236 | atagen | 2026-10-10 12:44 UTC | 257 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 258 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 259 | } |