♻️ Wake up routine runs once
This commit is contained in:
parent
4d93185b75
commit
270aa3ff3c
5 changed files with 24 additions and 12 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
Include "Computer.inf";
|
Include "Computer.inf";
|
||||||
|
|
||||||
Object lights "Lights"
|
NPC pirate_leader "Pirate Leader";
|
||||||
with name 'lights',
|
|
||||||
found_in [; rtrue; ],
|
|
||||||
has static scenery;
|
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@ Class Room
|
||||||
],
|
],
|
||||||
has light;
|
has light;
|
||||||
|
|
||||||
! Class Set
|
Class Set
|
||||||
! with before [;
|
with before [;
|
||||||
! Examine: return false;
|
Examine: return false;
|
||||||
! default: print_ret "You can't do that with ", (the) self, ".";
|
default: print_ret "You can't do that with ", (the) self, ".";
|
||||||
! ],
|
],
|
||||||
! has scenery;
|
has scenery;
|
||||||
|
|
||||||
Class Decoration
|
Class Decoration
|
||||||
with before [;
|
with before [;
|
||||||
|
|
@ -28,3 +28,5 @@ Class Decoration
|
||||||
! print_ret (the) self, " is too heavy for that.";
|
! print_ret (the) self, " is too heavy for that.";
|
||||||
! ],
|
! ],
|
||||||
! has supporter;
|
! has supporter;
|
||||||
|
|
||||||
|
Class NPC has animate;
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
Global woke = false;
|
||||||
|
|
||||||
|
[ OutOfBed;
|
||||||
|
if (woke) rfalse;
|
||||||
|
woke = true;
|
||||||
|
StopDaemon(red_alert);
|
||||||
|
print "Good morning^";
|
||||||
|
];
|
||||||
|
|
@ -9,4 +9,9 @@ Decoration poster "Starfleet recruitment poster" bunk
|
||||||
Decoration red_alert "Red alert"
|
Decoration red_alert "Red alert"
|
||||||
with daemon [;
|
with daemon [;
|
||||||
"A red alert sounds";
|
"A red alert sounds";
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Set lights "Lights"
|
||||||
|
with name 'lights',
|
||||||
|
found_in [; rtrue; ],
|
||||||
|
has static concealed;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ Room bunk "your bunk" lower_decks
|
||||||
description "Your bunk is like every other bunk on the lower decks.^
|
description "Your bunk is like every other bunk on the lower decks.^
|
||||||
It's barely big enough to fit you. But it's home.",
|
It's barely big enough to fit you. But it's home.",
|
||||||
after [;
|
after [;
|
||||||
Exit: StopDaemon(red_alert);
|
Exit: OutOfBed();
|
||||||
],
|
],
|
||||||
has proper enterable container static ~open ~light;
|
has proper enterable container static ~open ~light;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue