fix not converting to int before checking for maximum coffers addable

This commit is contained in:
csd4ni3l
2025-09-07 22:17:50 +02:00
parent fd91c7ca84
commit e4af74ae7d

View File

@@ -128,7 +128,7 @@ q - Exit to home""", {"a": self.add_project, "q": self.home, "c": self.create_sh
project_name = input("To add a ship event, please put the project's name here: ") project_name = input("To add a ship event, please put the project's name here: ")
coffer_amount = '' coffer_amount = ''
while not coffer_amount.isnumeric() or coffer_amount >= 999: while not coffer_amount.isnumeric() or int(coffer_amount) >= 2500:
coffer_amount = input("Please enter the amount of coffers you got for the ship: ") coffer_amount = input("Please enter the amount of coffers you got for the ship: ")
coffer_amount = int(coffer_amount) coffer_amount = int(coffer_amount)