an http based roguelike rpg about jelqing
Blame: src/game/items.rs
782069860236 | atagen | 2026-10-10 12:44 UTC | 1 | #[derive(Clone, Copy, PartialEq, Eq, Debug)] |
782069860236 | atagen | 2026-10-10 12:44 UTC | 2 | pub enum Item { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 3 | WarmTowel, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 4 | IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 5 | Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 6 | DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 7 | DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 8 | Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 9 | Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 10 | PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 11 | Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 12 | Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 13 | Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 14 | Cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 15 | CageKey, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 16 | Spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 17 | TeapotSpout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 18 | BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 19 | CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 20 | Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 21 | Vaseline, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 22 | EnergyDrink, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 23 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 24 | |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 25 | pub const SHOP: [Item; 14] = [ |
782069860236 | atagen | 2026-10-10 12:44 UTC | 26 | Item::Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 27 | Item::PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 28 | Item::Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 29 | Item::Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 30 | Item::Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 31 | Item::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 32 | Item::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 33 | Item::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 34 | Item::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 35 | Item::CageKey, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 36 | Item::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 37 | Item::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 38 | Item::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 39 | Item::Vaseline, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 40 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 41 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 42 | impl Item { |
8b8e83329a1d | atagen | 2026-10-12 12:01 UTC | 43 | pub(super) const ALL: [Self; 20] = [ |
782069860236 | atagen | 2026-10-10 12:44 UTC | 44 | Self::WarmTowel, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 45 | Self::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 46 | Self::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 47 | Self::DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 48 | Self::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 49 | Self::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 50 | Self::Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 51 | Self::PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 52 | Self::Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 53 | Self::Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 54 | Self::Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 55 | Self::Cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 56 | Self::CageKey, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 57 | Self::Spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 58 | Self::TeapotSpout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 59 | Self::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 60 | Self::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 61 | Self::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 62 | Self::Vaseline, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 63 | Self::EnergyDrink, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 64 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 65 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 66 | pub fn slug(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 67 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 68 | Self::WarmTowel => "warm-towel", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 69 | Self::IcePack => "ice-pack", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 70 | Self::Ruler => "ruler", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 71 | Self::DoorLock => "door-lock", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 72 | Self::DndSign => "do-not-disturb-sign", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 73 | Self::Blinds => "window-blinds", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 74 | Self::Pump => "pump", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 75 | Self::PumpPro => "pump-pro", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 76 | Self::Extender => "extender", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 77 | Self::Ring => "cock-ring", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 78 | Self::Supplement => "supplement", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 79 | Self::Cage => "chastity-cage", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 80 | Self::CageKey => "cage-key", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 81 | Self::Spreadsheet => "spreadsheet", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 82 | Self::TeapotSpout => "teapot-spout", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 83 | Self::BabyOil => "baby-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 84 | Self::CoconutOil => "coconut-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 85 | Self::Lotion => "lotion", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 86 | Self::Vaseline => "vaseline", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 87 | Self::EnergyDrink => "energy-drink", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 88 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 89 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 90 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 91 | pub fn parse(slug: &str) -> Option<Self> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 92 | Self::ALL.into_iter().find(|item| item.slug() == slug) |
782069860236 | atagen | 2026-10-10 12:44 UTC | 93 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 94 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 95 | pub fn description(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 96 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 97 | Self::WarmTowel => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 98 | "Reusable. Satisfies the warm-up precondition. Use technique=warmup." |
782069860236 | atagen | 2026-10-10 12:44 UTC | 99 | } |
e028a4184d00 | atagen | 2026-10-14 10:49 UTC | 100 | Self::IcePack => "Cools things sharply. Use technique=ice.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 101 | Self::Ruler => "Measures honestly. The length resource now carries a Content-Length.", |
7d3fb63208bf | atagen | 2026-10-11 04:38 UTC | 102 | Self::DoorLock => "Keeps your brother out once.", |
9683736a2c5e | atagen | 2026-10-10 13:15 UTC | 103 | Self::DndSign => "Works on housekeeping. Mum does not read signs.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 104 | Self::Blinds => "The neighbour has a good camera. The blinds are better.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 105 | Self::Pump => "A pump.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 106 | Self::PumpPro => "Use technique=pump. Gains are temporary.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 107 | Self::Extender => "Passive gains each turn. Takes up room. Can be removed with DELETE.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 108 | Self::Ring => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 109 | "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 | 110 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 111 | Self::Supplement => "Use technique=supplement.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 112 | Self::Cage => "Locked.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 113 | Self::CageKey => "Pump-Bro does not ask.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 114 | Self::Spreadsheet => "Charts your progress. Every line is flat.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 115 | Self::TeapotSpout => "Does nothing. Cannot be dropped.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 116 | Self::BabyOil => "Smooth. +1. One unit per jelq.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 117 | Self::CoconutOil => "+3. Solid until it matters. Suspicious at Nan's.", |
2d9074e0b4de | atagen | 2026-10-13 12:35 UTC | 118 | Self::Lotion => { |
e2727527c151 | atagen | 2026-10-13 12:38 UTC | 119 | "Handy. +0, and it soaks in fast, so each jelq costs an extra stamina. Soothes a friction burn." |
2d9074e0b4de | atagen | 2026-10-13 12:35 UTC | 120 | } |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 121 | Self::Vaseline => "+2. Raises suspicion everywhere.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 122 | Self::EnergyDrink => "technique=energy. +3 stamina. Tastes like a battery.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 123 | } |
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 | pub fn pitch(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 127 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 128 | Self::PumpPro => "A pump, but professional.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 129 | Self::Extender => "Passive gains every turn. Takes up room.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 130 | Self::Ring => "Doubles girth gains. Pump-Bro does not discuss the risks.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 131 | Self::Supplement => "Clinically formulated. Ships from overseas.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 132 | Self::DndSign => "Housekeeping respects it.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 133 | Self::Blinds => "The neighbour has a good camera.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 134 | Self::Ruler => "Pump-Bro does not recommend it.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 135 | Self::IcePack => "Cold.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 136 | _ => self.description(), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 137 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 138 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 139 | |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 140 | pub fn receipt(self) -> &'static str { |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 141 | match self { |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 142 | Self::PumpPro => "The box says professional. The pump inside is the same pump.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 143 | Self::Extender => "It is fitted. It will be noticed when you sit down.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 144 | Self::Ring => "It is snug. Pump-Bro still does not discuss the risks.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 145 | Self::DndSign => "The sign is on the handle. Housekeeping can read.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 146 | Self::Blinds => "The blinds are down. Across the street, a lens is lowered.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 147 | Self::Ruler => "Pump-Bro looks away while you use it.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 148 | Self::IcePack => { |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 149 | "It came out of the chest freezer behind the counter. It is very cold." |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 150 | } |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 151 | Self::CageKey => "The cage is open. Pump-Bro does not ask, and neither should you.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 152 | Self::BabyOil => "Pump-Bro buys it in bulk. He does not have a baby.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 153 | Self::CoconutOil => "It is solid. It will not stay that way.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 154 | Self::Lotion => "Unscented, allegedly.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 155 | Self::Vaseline => "Everyone at the counter saw.", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 156 | _ => "", |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 157 | } |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 158 | } |
72cdd1267600 | atagen | 2026-10-14 11:14 UTC | 159 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 160 | pub fn price(self) -> Option<u32> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 161 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 162 | Self::Pump => Some(10), |
782069860236 | atagen | 2026-10-10 12:44 UTC | 163 | Self::PumpPro | Self::Extender | Self::CageKey => Some(15), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 164 | Self::Ring | Self::Ruler => Some(8), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 165 | Self::IcePack => Some(7), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 166 | Self::CoconutOil => Some(6), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 167 | Self::Supplement | Self::Blinds => Some(5), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 168 | Self::BabyOil | Self::Vaseline => Some(4), |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 169 | Self::DndSign | Self::Lotion => Some(3), |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 170 | Self::WarmTowel |
545ad65826dd | atagen | 2026-10-14 11:19 UTC | 171 | | Self::DoorLock |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 172 | | Self::Cage |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 173 | | Self::Spreadsheet |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 174 | | Self::TeapotSpout |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 175 | | Self::EnergyDrink => None, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 176 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 177 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 178 | } |