- [NEW] Pantalla de game over
- [NEW] Stats
This commit is contained in:
@@ -258,6 +258,7 @@ namespace room
|
||||
}
|
||||
|
||||
current_room = room;
|
||||
actor::stats::visitRoom(room);
|
||||
refresh();
|
||||
|
||||
actor::select(actor::find(selected_actor_name));
|
||||
@@ -283,8 +284,12 @@ namespace room
|
||||
if (num_color_cycles==0) {
|
||||
actor::actor_t * hero = actor::find("HERO");
|
||||
if (!hero) {
|
||||
actor::hero::init(false);
|
||||
load(current_room);
|
||||
if (actor::hero::getLives()==0) {
|
||||
actor::hero::die();
|
||||
} else {
|
||||
actor::hero::init(false);
|
||||
load(current_room);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user