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 | |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 25 | pub const SHOP: [Item; 15] = [ |
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::DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 32 | Item::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 33 | Item::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 34 | Item::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 35 | Item::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 36 | Item::CageKey, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 37 | Item::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 38 | Item::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 39 | Item::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 40 | Item::Vaseline, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 41 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 42 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 43 | impl Item { |
8b8e83329a1d | atagen | 2026-10-12 12:01 UTC | 44 | pub(super) const ALL: [Self; 20] = [ |
782069860236 | atagen | 2026-10-10 12:44 UTC | 45 | Self::WarmTowel, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 46 | Self::IcePack, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 47 | Self::Ruler, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 48 | Self::DoorLock, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 49 | Self::DndSign, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 50 | Self::Blinds, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 51 | Self::Pump, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 52 | Self::PumpPro, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 53 | Self::Extender, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 54 | Self::Ring, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 55 | Self::Supplement, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 56 | Self::Cage, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 57 | Self::CageKey, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 58 | Self::Spreadsheet, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 59 | Self::TeapotSpout, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 60 | Self::BabyOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 61 | Self::CoconutOil, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 62 | Self::Lotion, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 63 | Self::Vaseline, |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 64 | Self::EnergyDrink, |
782069860236 | atagen | 2026-10-10 12:44 UTC | 65 | ]; |
782069860236 | atagen | 2026-10-10 12:44 UTC | 66 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 67 | pub fn slug(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 68 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 69 | Self::WarmTowel => "warm-towel", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 70 | Self::IcePack => "ice-pack", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 71 | Self::Ruler => "ruler", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 72 | Self::DoorLock => "door-lock", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 73 | Self::DndSign => "do-not-disturb-sign", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 74 | Self::Blinds => "window-blinds", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 75 | Self::Pump => "pump", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 76 | Self::PumpPro => "pump-pro", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 77 | Self::Extender => "extender", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 78 | Self::Ring => "cock-ring", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 79 | Self::Supplement => "supplement", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 80 | Self::Cage => "chastity-cage", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 81 | Self::CageKey => "cage-key", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 82 | Self::Spreadsheet => "spreadsheet", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 83 | Self::TeapotSpout => "teapot-spout", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 84 | Self::BabyOil => "baby-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 85 | Self::CoconutOil => "coconut-oil", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 86 | Self::Lotion => "lotion", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 87 | Self::Vaseline => "vaseline", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 88 | Self::EnergyDrink => "energy-drink", |
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 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 92 | pub fn parse(slug: &str) -> Option<Self> { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 93 | Self::ALL.into_iter().find(|item| item.slug() == slug) |
782069860236 | atagen | 2026-10-10 12:44 UTC | 94 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 95 | |
782069860236 | atagen | 2026-10-10 12:44 UTC | 96 | pub fn description(self) -> &'static str { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 97 | match self { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 98 | Self::WarmTowel => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 99 | "Reusable. Satisfies the warm-up precondition. Use technique=warmup." |
782069860236 | atagen | 2026-10-10 12:44 UTC | 100 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 101 | Self::IcePack => "Lowers EQ by 40. Use technique=ice.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 102 | Self::Ruler => "Measures honestly. The length resource now carries a Content-Length.", |
7d3fb63208bf | atagen | 2026-10-11 04:38 UTC | 103 | Self::DoorLock => "Keeps your brother out once.", |
9683736a2c5e | atagen | 2026-10-10 13:15 UTC | 104 | Self::DndSign => "Works on housekeeping. Mum does not read signs.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 105 | Self::Blinds => "The neighbour has a good camera. The blinds are better.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 106 | Self::Pump => "A pump.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 107 | Self::PumpPro => "Use technique=pump. Gains are temporary.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 108 | Self::Extender => "Passive gains each turn. Takes up room. Can be removed with DELETE.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 109 | Self::Ring => { |
782069860236 | atagen | 2026-10-10 12:44 UTC | 110 | "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 | 111 | } |
782069860236 | atagen | 2026-10-10 12:44 UTC | 112 | Self::Supplement => "Use technique=supplement.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 113 | Self::Cage => "Locked.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 114 | Self::CageKey => "Pump-Bro does not ask.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 115 | Self::Spreadsheet => "Charts your progress. Every line is flat.", |
782069860236 | atagen | 2026-10-10 12:44 UTC | 116 | Self::TeapotSpout => "Does nothing. Cannot be dropped.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 117 | Self::BabyOil => "Smooth. +1. One unit per jelq.", |
0a0bfee8329e | atagen | 2026-10-11 05:11 UTC | 118 | Self::CoconutOil => "+3. Solid until it matters. Suspicious at Nan's.", |
2d9074e0b4de | atagen | 2026-10-13 12:35 UTC | 119 | Self::Lotion => { |
2d9074e0b4de | atagen | 2026-10-13 12:35 UTC | 120 | "Handy. +0, and it chafes, so each jelq costs an extra stamina. Soothes a friction burn." |
2d9074e0b4de | atagen | 2026-10-13 12:35 UTC | 121 | } |
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 | } |