| Revision: | 1.3 |
| Committed: | Tue May 4 21:45:42 2010 UTC (16 years, 5 months ago) by root |
| Branch: | MAIN |
| CVS Tags: | rel-3_1, rel-3_0, HEAD |
| Changes since 1.2: | +1 -0 lines |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | #! perl |
| 2 | |||
| 3 | root | 1.2 | cf::object::attachment sockpuppet => |
| 4 | root | 1.1 | 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->destroy; | ||
| 14 | } else { | ||
| 15 | $victim->stats->hp (-1); | ||
| 16 | $victim->kill_object; | ||
| 17 | } | ||
| 18 | |||
| 19 | cf::override; | ||
| 20 | }, | ||
| 21 | ; | ||
| 22 | root | 1.3 |