From f71c501b3041e8ed6d32f0b17ad927c8b443975f Mon Sep 17 00:00:00 2001 From: serxoz Date: Fri, 23 Sep 2022 15:48:45 +0200 Subject: [PATCH] =?UTF-8?q?simplificaci=C3=B3n=20en=20mirar=20e=20tareas?= =?UTF-8?q?=20novas=20no=20todo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 5 ++++- src/rlocation.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index d903c17..7d2839c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,9 @@ +- Mirar salidas - Condiciós - Comandos abrir/cerrar - Luz e oscuridade - Conversación con NPCs -- Servir na rede ou inetd - Rexistro de xogador novo e login +- Fio xenerador de monstruos errantes i eventos +- Informar do que pasa na sala en público ( perico entra en la sala, perico tira moneda) +- Chat entre xogadores diff --git a/src/rlocation.rs b/src/rlocation.rs index ec7df26..5a7ff74 100644 --- a/src/rlocation.rs +++ b/src/rlocation.rs @@ -11,7 +11,7 @@ pub fn execute_look(player: &mut Player, nombre: &str) -> String { let player_location = &player.location; let location = get_location(player_location.to_string()); - if nombre == "sala" { + if nombre == "" || nombre == "sala" { if player_location.as_str() != "" { output = String::from(location.unwrap().descripcion);