From 9d5b2d09078344477732e3faa4ee88706da1b3ab Mon Sep 17 00:00:00 2001 From: sjonfjel Date: Mon, 11 Feb 2013 19:42:19 +0000 Subject: [PATCH] Mulighet til aa endre total amount --- text_based.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/text_based.py b/text_based.py index 0d21a5b..9d359fb 100755 --- a/text_based.py +++ b/text_based.py @@ -1227,6 +1227,9 @@ much money you're due in credits for the purchase when prompted. # Add the thing to the pending adjustments: self.add_thing_to_pending(thing,amount) + if self.confirm('Do you want to change the total amount?', default=False): + self.price = self.input_int('Total amount> ', (1,100000), default=self.price) + self.perform_transaction() def complete_input(self):