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

Comparing deliantra/maps/perl/sockpuppet.ext (file contents):
Revision 1.1 by root, Wed Aug 30 05:15:06 2006 UTC vs.
Revision 1.5 by root, Tue Dec 12 16:59:34 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.9999); 10 $stats->exp ($stats->exp * 0.99999 - 1)
11 if $stats->exp > 2;
10 12
11 $self->remove; 13 $self->destroy;
12 $self->free; 14 } else {
15 $victim->stats->hp (-1);
16 $victim->kill_object;
17 }
13 18
14 cf::override; 19 cf::override;
15 }, 20 },
16; 21;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines