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.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.2 by root, Wed Apr 30 06:40:28 2008 UTC

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";
9 $who->contr->killer ("foolery"); 10 $who->contr->killer ($killer);
11 $killer->destroy;
10 $who->kill_player; 12 $who->kill_player;
11}; 13};
12 14
13 15
14 16

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines