Revision: | 1.3 |
Committed: | Wed Aug 30 06:41:20 2006 UTC (17 years, 9 months ago) by root |
Branch: | MAIN |
Changes since 1.2: | +10 -5 lines |
Log Message: | make nekosan the guardian of scorn |
# | Content |
---|---|
1 | #! perl |
2 | |
3 | cf::register_attachment "sockpuppet" => |
4 | on_skill_attack => sub { |
5 | my ($self, $victim) = @_; |
6 | |
7 | if ($victim->type == cf::PLAYER) { |
8 | my $stats = $victim->stats; |
9 | |
10 | $stats->exp ($stats->exp * 0.99999 - 1) |
11 | if $stats->exp > 2; |
12 | |
13 | $self->remove; |
14 | $self->free; |
15 | } else { |
16 | $victim->hp (-1); |
17 | $victim->kill_object; |
18 | } |
19 | |
20 | cf::override; |
21 | }, |
22 | ; |