|
@@ -51,42 +51,43 @@ if $ARGS[0] = 'start':
|
|
|
end
|
|
|
act 'Go to the toilet':gt 'zaprF', 'toilet'
|
|
|
|
|
|
- if car > 0 and cardrive = 6 or cardrive = 21:
|
|
|
- 'Your <a href="exec: gs ''carF'', ''start''"><<$car>></a> is parked here.'
|
|
|
- act 'Buy a canister able to contain up to 5 liters of gasoline for 150 <b>₽</b>':
|
|
|
- cla
|
|
|
- kanistra += 1
|
|
|
- money -= 150
|
|
|
- 'You bought a canister of gasoline. (It was automatically put in the trunk)'
|
|
|
-
|
|
|
- act 'Disengage from the pump':gt 'zaprF', 'start'
|
|
|
- end
|
|
|
- end
|
|
|
+ if car > 0:
|
|
|
+ if cardrive = 6 or cardrive = 21: 'Your <a href="exec: gs ''carF'', ''start''"><<$car>></a> is parked here.'
|
|
|
+
|
|
|
+ if kanistra < 5:
|
|
|
+ act 'Buy a canister and fill it with 5 liters of gasoline for 150 <b>₽</b>':
|
|
|
+ cla
|
|
|
+ kanistra += 1
|
|
|
+ money -= 150
|
|
|
+ 'You bought a canister of gasoline. (It will automatically be put in the trunk of your car)'
|
|
|
|
|
|
- zprbenz = 40 - benz
|
|
|
+ act 'Disengage from the pump':gt 'zaprF', 'start'
|
|
|
+ end
|
|
|
+ end
|
|
|
|
|
|
- if benz < 40 and car > 0 and cardrive = 6 or benz < 40 and car > 0 and cardrive = 21:
|
|
|
- zprbenz = 40 - benz
|
|
|
+ if benz < 50 and (cardrive = 6 or cardrive = 21):
|
|
|
+ zprbenz = 50 - benz
|
|
|
|
|
|
- if zprbenz * 30 <= money:
|
|
|
- act 'Fill the tank with petrol':
|
|
|
- cla
|
|
|
- *clr
|
|
|
- benz = 40
|
|
|
- zprpay = zprbenz * 30
|
|
|
- money -= zprpay
|
|
|
+ if zprbenz * 30 <= money:
|
|
|
+ act 'Fill the tank with petrol':
|
|
|
+ cla
|
|
|
+ *clr
|
|
|
+ benz = 50
|
|
|
+ zprpay = zprbenz * 30
|
|
|
+ money -= zprpay
|
|
|
|
|
|
- ! WD: Uninitialised ~ 'pol'
|
|
|
- ! if pol > 0:'<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
|
|
|
+ ! WD: Uninitialised ~ 'pol'
|
|
|
+ ! if pol > 0:'<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
|
|
|
|
|
|
- 'You filled the tank and paid <<zprpay>> <b>₽</b>.'
|
|
|
+ 'You filled the tank and paid <<zprpay>> <b>₽</b>.'
|
|
|
|
|
|
- act 'Disengage from the pump':gt 'zaprF', 'start'
|
|
|
+ act 'Disengage from the pump':gt 'zaprF', 'start'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ 'You do not have enough money to refuel your car.'
|
|
|
end
|
|
|
- else
|
|
|
- 'You do not have enough money to refuel.'
|
|
|
end
|
|
|
end
|
|
|
end
|