ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/suicide.ext
(Generate patch)

Comparing deliantra/server/ext/suicide.ext (file contents):
Revision 1.3 by root, Mon May 5 22:38:47 2008 UTC vs.
Revision 1.4 by root, Sun Jan 31 03:46:20 2010 UTC

1#! perl 1#! perl # depends=highscore
2 2
3# implement a 'suicide' command 3# implement a 'suicide' command
4 4
5cf::register_command suicide => sub { 5cf::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 $who->check_score; 10 ext::highscore::check $who;
11 $who->kill_player; 11 $who->kill_player;
12}; 12};
13 13
14 14
15 15

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines