1 | #! perl |
1 | #! perl # mandatory |
2 | |
2 | |
3 | # handle the nimbus map and other stuff |
3 | # handle the nimbus map and other stuff |
4 | |
4 | |
5 | my @STATS = qw( |
5 | my @STATS = qw( |
6 | Str Dex Con Wis Cha Int Pow |
6 | Str Dex Con Wis Cha Int Pow |
… | |
… | |
104 | @savebed = ("/scorn/taverns/inn", 10, 5); |
104 | @savebed = ("/scorn/taverns/inn", 10, 5); |
105 | } |
105 | } |
106 | |
106 | |
107 | my $map = $ob->map; |
107 | my $map = $ob->map; |
108 | $pl->savebed (@savebed); |
108 | $pl->savebed (@savebed); |
109 | $ob->goto_map (@savebed); |
|
|
110 | |
109 | |
111 | $map->nuke; |
110 | cf::async { |
|
|
111 | $Coro::current->{desc} = "nimbus exit"; |
|
|
112 | $ob->goto (@savebed); |
112 | |
113 | |
113 | $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); |
114 | $map->nuke; |
114 | |
115 | |
|
|
116 | #$pl->play_sound (cf::sound::find "player_dies"); |
|
|
117 | |
115 | $ob->message ("You feel as if you woke up from a dream.\n"); |
118 | $ob->message ("You feel as if you woke up from a dream.\n" |
116 | $ob->message ("You have a headache.\n"); |
119 | . "You have a headache.\n" |
117 | $ob->message ("Maybe you should have a drink.\n"); |
120 | . "Maybe you should have a drink.\n"); |
|
|
121 | }; |
118 | |
122 | |
119 | cf::override; |
123 | cf::override; |
120 | }, |
124 | }, |
121 | ; |
125 | ; |
122 | |
126 | |