Skip to content

Commit

Permalink
this belongs in the framework
Browse files Browse the repository at this point in the history
  • Loading branch information
sartak committed Jun 11, 2009
1 parent 76605ff commit b689f80
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/TAEB/AI/Behavioral/Behavior/PushBoulder.pm
Expand Up @@ -22,12 +22,6 @@ sub push_direction {
return delta2vi($tiles[0]->x - $tile->x, $tiles[0]->y - $tile->y); return delta2vi($tiles[0]->x - $tile->x, $tiles[0]->y - $tile->y);
} }


sub msg_immobile_boulder {
# The boulder didn't move, there must be rock or another boulder beyond it.
my ($dx, $dy) = vi2delta(push_direction(TAEB->current_tile));
TAEB->current_level->at(TAEB->x + $dx * 2,TAEB->y + $dy * 2)->type('rock');
}

sub prepare { sub prepare {
my $self = shift; my $self = shift;


Expand Down

0 comments on commit b689f80

Please sign in to comment.