1 | #! perl |
1 | #! perl # depends=irc |
2 | |
2 | |
3 | # archetype nekosan |
3 | # archetype nekosan |
4 | |
4 | |
5 | sub teleport { |
5 | sub teleport { |
6 | my ($pl, $map, $x, $y) = @_; |
6 | my ($pl, $map, $x, $y) = @_; |
… | |
… | |
69 | $spell->destroy; |
69 | $spell->destroy; |
70 | } |
70 | } |
71 | |
71 | |
72 | } else { |
72 | } else { |
73 | # check for fish in his inv and steal it |
73 | # check for fish in his inv and steal it |
74 | if (my $fish = (grep $_->arch->name eq "fishfood", $pl->inv)[0]) { |
74 | if (my $fish = (grep $_->arch->archname eq "fishfood", $pl->inv)[0]) { |
75 | # add force |
75 | # add force |
76 | my $gave_fish = cf::object::new "force"; |
76 | my $gave_fish = cf::object::new "force"; |
77 | $gave_fish->slaying ("schmorp-neko-gave-fish"); |
77 | $gave_fish->slaying ("schmorp-neko-gave-fish"); |
78 | $gave_fish->speed (0); |
78 | $gave_fish->speed (0); |
79 | $gave_fish->insert_ob_in_ob ($pl); |
79 | $gave_fish->insert_ob_in_ob ($pl); |