… | |
… | |
5 | cf::register_command suicide => sub { |
5 | cf::register_command suicide => sub { |
6 | my ($who, $args) = @_; |
6 | my ($who, $args) = @_; |
7 | |
7 | |
8 | $who->message ("You see no way to escape. Real heroes would rather starve to death than to give up, but you realise you are no hero.."); |
8 | $who->message ("You see no way to escape. Real heroes would rather starve to death than to give up, but you realise you are no hero.."); |
9 | my $killer = cf::arch::get "killer_suicide"; $who->contr->killer ($killer); $killer->destroy; |
9 | my $killer = cf::arch::get "killer_suicide"; $who->contr->killer ($killer); $killer->destroy; |
|
|
10 | |
|
|
11 | cf::async { |
10 | ext::highscore::check $who; |
12 | ext::highscore::check $who; |
11 | $who->kill_player; |
13 | $who->kill_player; |
|
|
14 | }; |
12 | }; |
15 | }; |
13 | |
16 | |