atagen

jelq

public

an http based roguelike rpg about jelqing

Star0
Watch0
1a144ee92b627d87d2ff575eded19a9b8baa3fe1
1
ssh://brewery@pls.lobotomise.me:33/atagen/jelq.git

Blame: src/game/notice.rs

3ac624339c98atagen2026-10-13 12:21 UTC1
use super::Floor;
3ac624339c98atagen2026-10-13 12:21 UTC2
8b8e83329a1datagen2026-10-12 12:01 UTC3
/// Something that happened alongside the turn, which rides on the response as a `Warning`.
8b8e83329a1datagen2026-10-12 12:01 UTC4
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
8b8e83329a1datagen2026-10-12 12:01 UTC5
pub enum Notice {
8b8e83329a1datagen2026-10-12 12:01 UTC6
    BrotherTriedTheDoor,
8b8e83329a1datagen2026-10-12 12:01 UTC7
    GymStaffLeaveIt,
8b8e83329a1datagen2026-10-12 12:01 UTC8
    HousekeepingReadTheSign,
aef6f6498ea2atagen2026-10-13 11:23 UTC9
    StopRaidingTheKitchen,
aef6f6498ea2atagen2026-10-13 11:23 UTC10
    StopRaidingTheFridge,
8b8e83329a1datagen2026-10-12 12:01 UTC11
    KevIsTheBar,
8b8e83329a1datagen2026-10-12 12:01 UTC12
    DrawerJammed,
8b8e83329a1datagen2026-10-12 12:01 UTC13
    DrawerComesLoose,
8b8e83329a1datagen2026-10-12 12:01 UTC14
    ThreadHasReplies,
8b8e83329a1datagen2026-10-12 12:01 UTC15
    Reflection,
2176d9a94bd9atagen2026-10-14 11:03 UTC16
    MumAtTheDoor(&'static str),
886159fd0fe7atagen2026-10-13 12:48 UTC17
    MumSatisfied(&'static str),
4b1f5f88827datagen2026-10-13 10:18 UTC18
    ColdStart,
3ac624339c98atagen2026-10-13 12:21 UTC19
    RunningLong(Floor),
3ac624339c98atagen2026-10-13 12:21 UTC20
    LastTurn,
3ac624339c98atagen2026-10-13 12:21 UTC21
    SkinGivingWay,
2d9074e0b4deatagen2026-10-13 12:35 UTC22
    BurnSoothed,
8b8e83329a1datagen2026-10-12 12:01 UTC23
}
8b8e83329a1datagen2026-10-12 12:01 UTC24
8b8e83329a1datagen2026-10-12 12:01 UTC25
impl Notice {
8b8e83329a1datagen2026-10-12 12:01 UTC26
    pub fn text(self) -> &'static str {
8b8e83329a1datagen2026-10-12 12:01 UTC27
        match self {
8b8e83329a1datagen2026-10-12 12:01 UTC28
            Self::BrotherTriedTheDoor => "your brother tried the door",
8b8e83329a1datagen2026-10-12 12:01 UTC29
            Self::GymStaffLeaveIt => "the gym staff have seen worse, and they leave it there",
8b8e83329a1datagen2026-10-12 12:01 UTC30
            Self::HousekeepingReadTheSign => "housekeeping read the sign",
aef6f6498ea2atagen2026-10-13 11:23 UTC31
            Self::StopRaidingTheKitchen => "Stop raiding the kitchen.",
aef6f6498ea2atagen2026-10-13 11:23 UTC32
            Self::StopRaidingTheFridge => "Stop raiding the fridge.",
8b8e83329a1datagen2026-10-12 12:01 UTC33
            Self::KevIsTheBar => "Kev is 8 inches, he says. Nobody asked you, which is worse.",
8b8e83329a1datagen2026-10-12 12:01 UTC34
            Self::DrawerJammed => "The drawer has jammed.",
8b8e83329a1datagen2026-10-12 12:01 UTC35
            Self::DrawerComesLoose => "The drawer comes loose. That took a while.",
8b8e83329a1datagen2026-10-12 12:01 UTC36
            Self::ThreadHasReplies => "Somewhere, a forum thread from 2009 still has replies.",
8b8e83329a1datagen2026-10-12 12:01 UTC37
            Self::Reflection => "the count reached ten, and then the reflection started",
2176d9a94bd9atagen2026-10-14 11:03 UTC38
            Self::MumAtTheDoor(arrival) => arrival,
886159fd0fe7atagen2026-10-13 12:48 UTC39
            Self::MumSatisfied(parting) => parting,
bf5f8cb6f60fatagen2026-10-13 12:10 UTC40
            Self::ColdStart => "Cold start. The server has noted this.",
3ac624339c98atagen2026-10-13 12:21 UTC41
            Self::RunningLong(floor) => match floor {
3ac624339c98atagen2026-10-13 12:21 UTC42
                Floor::Bedroom => "Mum is coming up the stairs.",
3ac624339c98atagen2026-10-13 12:21 UTC43
                Floor::Bathroom => "Your brother has gone to get Mum.",
3ac624339c98atagen2026-10-13 12:21 UTC44
                Floor::ChangingRoom => "The gym closes in ten minutes.",
3ac624339c98atagen2026-10-13 12:21 UTC45
                Floor::Nans => "Dinner is nearly ready. Somebody has been sent to find you.",
3ac624339c98atagen2026-10-13 12:21 UTC46
                Floor::Hotel => "Checkout was at eleven. Housekeeping has a master key.",
3ac624339c98atagen2026-10-13 12:21 UTC47
                Floor::Forum | Floor::Clinic => "The floor is running long.",
3ac624339c98atagen2026-10-13 12:21 UTC48
            },
3ac624339c98atagen2026-10-13 12:21 UTC49
            Self::LastTurn => "This is the last turn on this floor. Leave now or be found.",
3ac624339c98atagen2026-10-13 12:21 UTC50
            Self::SkinGivingWay => "the skin is giving way",
2d9074e0b4deatagen2026-10-13 12:35 UTC51
            Self::BurnSoothed => "the lotion has soothed the friction burn",
8b8e83329a1datagen2026-10-12 12:01 UTC52
        }
8b8e83329a1datagen2026-10-12 12:01 UTC53
    }
8b8e83329a1datagen2026-10-12 12:01 UTC54
}