inventory system messages to config

This commit is contained in:
Llywelwyn 2023-08-23 02:31:23 +01:00
parent 306c1e4d53
commit 76c74df028
6 changed files with 20 additions and 13 deletions

View file

@ -13,6 +13,7 @@ use crate::{
WantsToPickupItem,
};
use specs::prelude::*;
use crate::config::messages;
pub struct ItemCollectionSystem {}
@ -57,7 +58,7 @@ impl<'a> System<'a> for ItemCollectionSystem {
if pickup.collected_by == *player_entity {
gamelog::Logger
::new()
.append("You pick up the")
.append(messages::YOU_PICKUP_ITEM)
.item_name_n(
format!(
"{}",