… | |
… | |
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 | $pl->insert ($gave_fish); |
80 | |
80 | |
81 | # remove fish |
81 | # remove fish |
82 | $fish->destroy; |
82 | $fish->destroy; |
83 | |
83 | |
84 | # be nice |
84 | # be nice |