Revision: | 1.3 |
Committed: | Mon May 5 22:38:47 2008 UTC (16 years, 2 months ago) by root |
Branch: | MAIN |
CVS Tags: | rel-2_82, rel-2_81, rel-2_80, rel-2_6, rel-2_7, rel-2_72, rel-2_73, rel-2_71, rel-2_76, rel-2_77, rel-2_74, rel-2_75, rel-2_54, rel-2_55, rel-2_56, rel-2_79, rel-2_90, rel-2_92, rel-2_78, rel-2_61 |
Changes since 1.2: | +2 -3 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"; $who->contr->killer ($killer); $killer->destroy; |
10 | $who->check_score; |
11 | $who->kill_player; |
12 | }; |
13 | |
14 | |
15 |