Combined attack logs that happen on the same tick, involving the player
This commit is contained in:
parent
51893def78
commit
60fe39c834
2 changed files with 20 additions and 14 deletions
|
|
@ -240,7 +240,9 @@ impl<'a> System<'a> for ItemUseSystem {
|
|||
equipped.remove(*item);
|
||||
backpack.insert(*item, InBackpack { owner: target }).expect("Unable to insert backpack");
|
||||
if target == *player_entity {
|
||||
logger = logger.append("You remove your").item_name_n(&item_being_used.name).period();
|
||||
if let Some(name) = names.get(*item) {
|
||||
logger = logger.append("You remove your").item_name_n(&name.name).period();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue