ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/maps/perl/sockpuppet.ext
(Generate patch)

Comparing cf.schmorp.de/maps/perl/sockpuppet.ext (file contents):
Revision 1.2 by root, Wed Aug 30 06:05:57 2006 UTC vs.
Revision 1.3 by root, Wed Aug 30 06:41:20 2006 UTC

2 2
3cf::register_attachment "sockpuppet" => 3cf::register_attachment "sockpuppet" =>
4 on_skill_attack => sub { 4 on_skill_attack => sub {
5 my ($self, $victim) = @_; 5 my ($self, $victim) = @_;
6 6
7 if ($victim->type == cf::PLAYER) {
7 my $stats = $victim->stats; 8 my $stats = $victim->stats;
8 9
9 $stats->exp ($stats->exp * 0.99999 - 1) 10 $stats->exp ($stats->exp * 0.99999 - 1)
10 if $stats->exp > 2; 11 if $stats->exp > 2;
11 12
12 $self->remove; 13 $self->remove;
13 $self->free; 14 $self->free;
15 } else {
16 $victim->hp (-1);
17 $victim->kill_object;
18 }
14 19
15 cf::override; 20 cf::override;
16 }, 21 },
17; 22;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines