Revision: | 1.2 |
Committed: | Wed Apr 30 06:40:28 2008 UTC (16 years, 1 month ago) by root |
Branch: | MAIN |
CVS Tags: | rel-2_53 |
Changes since 1.1: | +3 -1 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #! perl |
2 | |
3 | # implement a 'suicide' command |
4 | |
5 | cf::register_command suicide => sub { |
6 | my ($who, $args) = @_; |
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.."); |
9 | my $killer = cf::arch::get "killer_suicide"; |
10 | $who->contr->killer ($killer); |
11 | $killer->destroy; |
12 | $who->kill_player; |
13 | }; |
14 | |
15 | |
16 |