better death messages, and morgue file map fix
This commit is contained in:
parent
9ac2adc5d6
commit
9e294a1680
7 changed files with 104 additions and 32 deletions
|
|
@ -126,13 +126,9 @@ pub fn record_event(event: EVENT) {
|
|||
EVENT::IDENTIFIED(name) => {
|
||||
new_event = format!("Identified {}", name);
|
||||
}
|
||||
EVENT::PLAYER_DIED(name) => {
|
||||
if name == "you" {
|
||||
new_event = format!("You died! Killed by... yourself.");
|
||||
} else {
|
||||
// TODO: Use correct article here - or don't include article at all.
|
||||
new_event = format!("You died, killed by {}", name);
|
||||
}
|
||||
EVENT::PLAYER_DIED(str) => {
|
||||
// Generating the String is handled in the death effect, to avoid passing the ecs here.
|
||||
new_event = format!("{}", str);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue