atagen

jelq

public

an http based roguelike rpg about jelqing

Star0
Watch0
8ab6a1382c4c997e5e0544c2af62018ca376c78b
1
ssh://brewery@pls.lobotomise.me:33/atagen/jelq.git
src/game/notice.rsRust50 lines2.2 KB
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,
17
    ColdStart,
18
    RunningLong(Floor),
19
    LastTurn,
20
    SkinGivingWay,
21
}
22
23
impl Notice {
24
    pub fn text(self) -> &'static str {
25
        match self {
26
            Self::BrotherTriedTheDoor => "your brother tried the door",
27
            Self::GymStaffLeaveIt => "the gym staff have seen worse, and they leave it there",
28
            Self::HousekeepingReadTheSign => "housekeeping read the sign",
29
            Self::StopRaidingTheKitchen => "Stop raiding the kitchen.",
30
            Self::StopRaidingTheFridge => "Stop raiding the fridge.",
31
            Self::KevIsTheBar => "Kev is 8 inches, he says. Nobody asked you, which is worse.",
32
            Self::DrawerJammed => "The drawer has jammed.",
33
            Self::DrawerComesLoose => "The drawer comes loose. That took a while.",
34
            Self::ThreadHasReplies => "Somewhere, a forum thread from 2009 still has replies.",
35
            Self::Reflection => "the count reached ten, and then the reflection started",
36
            Self::MumSatisfied => "Mum seems satisfied. She takes the washing with her.",
37
            Self::ColdStart => "Cold start. The server has noted this.",
38
            Self::RunningLong(floor) => match floor {
39
                Floor::Bedroom => "Mum is coming up the stairs.",
40
                Floor::Bathroom => "Your brother has gone to get Mum.",
41
                Floor::ChangingRoom => "The gym closes in ten minutes.",
42
                Floor::Nans => "Dinner is nearly ready. Somebody has been sent to find you.",
43
                Floor::Hotel => "Checkout was at eleven. Housekeeping has a master key.",
44
                Floor::Forum | Floor::Clinic => "The floor is running long.",
45
            },
46
            Self::LastTurn => "This is the last turn on this floor. Leave now or be found.",
47
            Self::SkinGivingWay => "the skin is giving way",
48
        }
49
    }
50
}