From 259c4991f92637ac9b97cf14c285fc123c2ebf08 Mon Sep 17 00:00:00 2001 From: propstg Date: Sat, 7 Dec 2024 01:20:00 -0500 Subject: [PATCH] Show name property instead of object's tostring --- modules/games/dopewar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/games/dopewar.py b/modules/games/dopewar.py index cf7d76d..a05044a 100644 --- a/modules/games/dopewar.py +++ b/modules/games/dopewar.py @@ -159,7 +159,7 @@ def get_found_items(nodeID): if dwInventoryDb[i].get('userID') == nodeID: dwInventoryDb[i]['inventory'] = inventory dwInventoryDb[i]['amount'] = amount - msg = "💊You found " + str(qty) + " of " + str(my_drugs[found]) + msg = f"💊You found {qty} {my_drugs[found].name}" else: # rolls to see how much cash the user finds cash_found = random.randint(1, 977)