atagen

jelq

public

an http based roguelike rpg about jelqing

Star0
Watch0
d3c4718d061e97b506a18e6347494ef6e93b2965
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,
886159fd0fe7atagen2026-10-13 12:48 UTC16
    MumSatisfied(&'static str),
4b1f5f88827datagen2026-10-13 10:18 UTC17
    ColdStart,
3ac624339c98atagen2026-10-13 12:21 UTC18
    RunningLong(Floor),
3ac624339c98atagen2026-10-13 12:21 UTC19
    LastTurn,
3ac624339c98atagen2026-10-13 12:21 UTC20
    SkinGivingWay,
2d9074e0b4deatagen2026-10-13 12:35 UTC21
    BurnSoothed,
8b8e83329a1datagen2026-10-12 12:01 UTC22
}
8b8e83329a1datagen2026-10-12 12:01 UTC23
8b8e83329a1datagen2026-10-12 12:01 UTC24
impl Notice {
8b8e83329a1datagen2026-10-12 12:01 UTC25
    pub fn text(self) -> &'static str {
8b8e83329a1datagen2026-10-12 12:01 UTC26
        match self {
8b8e83329a1datagen2026-10-12 12:01 UTC27
            Self::BrotherTriedTheDoor => "your brother tried the door",
8b8e83329a1datagen2026-10-12 12:01 UTC28
            Self::GymStaffLeaveIt => "the gym staff have seen worse, and they leave it there",
8b8e83329a1datagen2026-10-12 12:01 UTC29
            Self::HousekeepingReadTheSign => "housekeeping read the sign",
aef6f6498ea2atagen2026-10-13 11:23 UTC30
            Self::StopRaidingTheKitchen => "Stop raiding the kitchen.",
aef6f6498ea2atagen2026-10-13 11:23 UTC31
            Self::StopRaidingTheFridge => "Stop raiding the fridge.",
8b8e83329a1datagen2026-10-12 12:01 UTC32
            Self::KevIsTheBar => "Kev is 8 inches, he says. Nobody asked you, which is worse.",
8b8e83329a1datagen2026-10-12 12:01 UTC33
            Self::DrawerJammed => "The drawer has jammed.",
8b8e83329a1datagen2026-10-12 12:01 UTC34
            Self::DrawerComesLoose => "The drawer comes loose. That took a while.",
8b8e83329a1datagen2026-10-12 12:01 UTC35
            Self::ThreadHasReplies => "Somewhere, a forum thread from 2009 still has replies.",
8b8e83329a1datagen2026-10-12 12:01 UTC36
            Self::Reflection => "the count reached ten, and then the reflection started",
886159fd0fe7atagen2026-10-13 12:48 UTC37
            Self::MumSatisfied(parting) => parting,
bf5f8cb6f60fatagen2026-10-13 12:10 UTC38
            Self::ColdStart => "Cold start. The server has noted this.",
3ac624339c98atagen2026-10-13 12:21 UTC39
            Self::RunningLong(floor) => match floor {
3ac624339c98atagen2026-10-13 12:21 UTC40
                Floor::Bedroom => "Mum is coming up the stairs.",
3ac624339c98atagen2026-10-13 12:21 UTC41
                Floor::Bathroom => "Your brother has gone to get Mum.",
3ac624339c98atagen2026-10-13 12:21 UTC42
                Floor::ChangingRoom => "The gym closes in ten minutes.",
3ac624339c98atagen2026-10-13 12:21 UTC43
                Floor::Nans => "Dinner is nearly ready. Somebody has been sent to find you.",
3ac624339c98atagen2026-10-13 12:21 UTC44
                Floor::Hotel => "Checkout was at eleven. Housekeeping has a master key.",
3ac624339c98atagen2026-10-13 12:21 UTC45
                Floor::Forum | Floor::Clinic => "The floor is running long.",
3ac624339c98atagen2026-10-13 12:21 UTC46
            },
3ac624339c98atagen2026-10-13 12:21 UTC47
            Self::LastTurn => "This is the last turn on this floor. Leave now or be found.",
3ac624339c98atagen2026-10-13 12:21 UTC48
            Self::SkinGivingWay => "the skin is giving way",
2d9074e0b4deatagen2026-10-13 12:35 UTC49
            Self::BurnSoothed => "the lotion has soothed the friction burn",
8b8e83329a1datagen2026-10-12 12:01 UTC50
        }
8b8e83329a1datagen2026-10-12 12:01 UTC51
    }
8b8e83329a1datagen2026-10-12 12:01 UTC52
}