|
|
@ -138,6 +138,9 @@ void GUI::handle_events() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// move $enemy here
|
|
|
|
// move $enemy here
|
|
|
|
|
|
|
|
// BUG: when the enemy has no path it goes through walls, which means
|
|
|
|
|
|
|
|
// this neighbors function is not working right. Probably updating
|
|
|
|
|
|
|
|
// enemy.location in an out parameter isn't the best idea.
|
|
|
|
bool found = $game_map.neighbors($enemy.location, true); |
|
|
|
bool found = $game_map.neighbors($enemy.location, true); |
|
|
|
if(!found) { |
|
|
|
if(!found) { |
|
|
|
$status_text = "ENEMY STUCK!"; |
|
|
|
$status_text = "ENEMY STUCK!"; |
|
|
|