From a9df230a0831b6ea88b461d5cd3ca70299d48c4a Mon Sep 17 00:00:00 2001 From: Condorra Date: Thu, 23 Feb 2023 21:12:32 +1100 Subject: [PATCH] Make inventory show total weight if you have multiple of an item. --- blastmud_game/src/message_handler/user_commands/inventory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blastmud_game/src/message_handler/user_commands/inventory.rs b/blastmud_game/src/message_handler/user_commands/inventory.rs index b20302e..a97cead 100644 --- a/blastmud_game/src/message_handler/user_commands/inventory.rs +++ b/blastmud_game/src/message_handler/user_commands/inventory.rs @@ -44,7 +44,7 @@ impl UserVerb for Verb { !ctx.session_dat.less_explicit_mode, items.len(), true - ), weight(posdat.weight))); + ), weight(items.len() as u64 * posdat.weight))); } } if response == "" {