- [NEW] Pantalla de game over

- [NEW] Stats
This commit is contained in:
2024-07-24 23:05:24 +02:00
parent 3a51938d80
commit 0a1b4f8715
8 changed files with 165 additions and 15 deletions

View File

@@ -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);
}
}
}
}