Show name property instead of object's tostring

This commit is contained in:
propstg
2024-12-07 01:20:00 -05:00
parent 5fe185ab7f
commit 259c4991f9
+1 -1
View File
@@ -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)