cleans up chatlog colours - renderables for non-item, beatitude for item

This commit is contained in:
Llywelwyn 2023-08-27 22:26:58 +01:00
parent 96e69d5c5e
commit 038e616500
8 changed files with 145 additions and 72 deletions

View file

@ -1,6 +1,7 @@
use crate::{
gamelog,
gui::obfuscate_name,
gui::item_colour,
Beatitude,
Charges,
EquipmentChanged,
@ -67,7 +68,8 @@ impl<'a> System<'a> for ItemDropSystem {
gamelog::Logger
::new()
.append(messages::YOU_DROP_ITEM)
.item_name_n(
.colour(item_colour(to_drop.item, &beatitudes))
.append_n(
format!(
"{}",
obfuscate_name(
@ -81,6 +83,7 @@ impl<'a> System<'a> for ItemDropSystem {
).0
)
)
.colour(rltk::WHITE)
.period()
.log();
}