Sorry NPCs, no last words from beyond the grave.

This commit is contained in:
Condorra 2023-02-22 21:43:18 +11:00
parent ed3dcdcb64
commit b878f8f95c

View File

@ -268,6 +268,10 @@ impl TaskHandler for NPCSayTaskHandler {
Some(r) => r Some(r) => r
}; };
if npc_item.is_dead {
return Ok(None);
}
let (is_explicit, say_what) = match &say_info.talk_type { let (is_explicit, say_what) = match &say_info.talk_type {
NPCSayType::FromFixedList(l) => { NPCSayType::FromFixedList(l) => {
let mut rng = thread_rng(); let mut rng = thread_rng();