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::{
};
use rltk::prelude::*;
use specs::prelude::*;
use crate::config::messages;
pub struct ItemRemoveSystem {}
@ -53,7 +54,7 @@ impl<'a> System<'a> for ItemRemoveSystem {
can_remove = false;
gamelog::Logger
::new()
.append("You can't remove the")
.append(messages::YOU_REMOVE_ITEM_CURSED)
.colour(item_colour(to_remove.item, &beatitudes))
.append_n(
obfuscate_name(
@ -80,7 +81,7 @@ impl<'a> System<'a> for ItemRemoveSystem {
if entity == *player_entity {
gamelog::Logger
::new()
.append("You unequip the")
.append(messages::YOU_REMOVE_ITEM)
.colour(item_colour(to_remove.item, &beatitudes))
.append_n(
obfuscate_name(