♻️ 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";
|
||||
|
||||
Object lights "Lights"
|
||||
with name 'lights',
|
||||
found_in [; rtrue; ],
|
||||
has static scenery;
|
||||
NPC pirate_leader "Pirate Leader";
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ Class Room
|
|||
],
|
||||
has light;
|
||||
|
||||
! Class Set
|
||||
! with before [;
|
||||
! Examine: return false;
|
||||
! default: print_ret "You can't do that with ", (the) self, ".";
|
||||
! ],
|
||||
! has scenery;
|
||||
Class Set
|
||||
with before [;
|
||||
Examine: return false;
|
||||
default: print_ret "You can't do that with ", (the) self, ".";
|
||||
],
|
||||
has scenery;
|
||||
|
||||
Class Decoration
|
||||
with before [;
|
||||
|
|
@ -28,3 +28,5 @@ Class Decoration
|
|||
! print_ret (the) self, " is too heavy for that.";
|
||||
! ],
|
||||
! 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^";
|
||||
];
|
||||
|
|
@ -10,3 +10,8 @@ Decoration red_alert "Red alert"
|
|||
with daemon [;
|
||||
"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.^
|
||||
It's barely big enough to fit you. But it's home.",
|
||||
after [;
|
||||
Exit: StopDaemon(red_alert);
|
||||
Exit: OutOfBed();
|
||||
],
|
||||
has proper enterable container static ~open ~light;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue