Skip to content

Commit

Permalink
add farewell to death to only check death case by that keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaechus committed Jun 1, 2021
1 parent a54fdfd commit ef5d9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn main() {
loop {
let s = cli.ask(&Cli::prompt());
println!("{}", s);
if s.contains("You died.") {
if s.contains("Farewell") {
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Some available commands:
self.world.borrow_mut().clear_dead_enemies();

if !self.player.borrow().is_alive() {
events_str.push_str("\n\nYou died.");
events_str.push_str("\n\nYou died. Farewell.");
} else {
events_str.push_str(&self.player.borrow_mut().level_up());
}
Expand Down

0 comments on commit ef5d9b1

Please sign in to comment.