an http based roguelike rpg about jelqing
| 1 | use super::Floor; |
| 2 | |
| 3 | /// Something that happened alongside the turn, which rides on the response as a `Warning`. |
| 4 | #[derive(Clone, Copy, PartialEq, Eq, Debug)] |
| 5 | pub enum Notice { |
| 6 | BrotherTriedTheDoor, |
| 7 | GymStaffLeaveIt, |
| 8 | HousekeepingReadTheSign, |
| 9 | StopRaidingTheKitchen, |
| 10 | StopRaidingTheFridge, |
| 11 | KevIsTheBar, |
| 12 | DrawerJammed, |
| 13 | DrawerComesLoose, |
| 14 | ThreadHasReplies, |
| 15 | Reflection, |
| 16 | MumSatisfied(&'static str), |
| 17 | ColdStart, |
| 18 | RunningLong(Floor), |
| 19 | LastTurn, |
| 20 | SkinGivingWay, |
| 21 | BurnSoothed, |
| 22 | } |
| 23 | |
| 24 | impl Notice { |
| 25 | pub fn text(self) -> &'static str { |
| 26 | match self { |
| 27 | Self::BrotherTriedTheDoor => "your brother tried the door", |
| 28 | Self::GymStaffLeaveIt => "the gym staff have seen worse, and they leave it there", |
| 29 | Self::HousekeepingReadTheSign => "housekeeping read the sign", |
| 30 | Self::StopRaidingTheKitchen => "Stop raiding the kitchen.", |
| 31 | Self::StopRaidingTheFridge => "Stop raiding the fridge.", |
| 32 | Self::KevIsTheBar => "Kev is 8 inches, he says. Nobody asked you, which is worse.", |
| 33 | Self::DrawerJammed => "The drawer has jammed.", |
| 34 | Self::DrawerComesLoose => "The drawer comes loose. That took a while.", |
| 35 | Self::ThreadHasReplies => "Somewhere, a forum thread from 2009 still has replies.", |
| 36 | Self::Reflection => "the count reached ten, and then the reflection started", |
| 37 | Self::MumSatisfied(parting) => parting, |
| 38 | Self::ColdStart => "Cold start. The server has noted this.", |
| 39 | Self::RunningLong(floor) => match floor { |
| 40 | Floor::Bedroom => "Mum is coming up the stairs.", |
| 41 | Floor::Bathroom => "Your brother has gone to get Mum.", |
| 42 | Floor::ChangingRoom => "The gym closes in ten minutes.", |
| 43 | Floor::Nans => "Dinner is nearly ready. Somebody has been sent to find you.", |
| 44 | Floor::Hotel => "Checkout was at eleven. Housekeeping has a master key.", |
| 45 | Floor::Forum | Floor::Clinic => "The floor is running long.", |
| 46 | }, |
| 47 | Self::LastTurn => "This is the last turn on this floor. Leave now or be found.", |
| 48 | Self::SkinGivingWay => "the skin is giving way", |
| 49 | Self::BurnSoothed => "the lotion has soothed the friction burn", |
| 50 | } |
| 51 | } |
| 52 | } |