diff --git a/modules/games/dopewar.py b/modules/games/dopewar.py index cf7d76d..eb578ce 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) @@ -241,6 +241,8 @@ def buy_func(nodeID, price_list, choice=0, value='0'): buy_amount = cash // price_list[drug_choice] if buy_amount > 100 - inventory: buy_amount = 100 - inventory + if buy_amount == 0: + return "You don\'t have any empty inventory slots.🎒" # set the buy amount to the max if the user enters m buy_amount = int(buy_amount)