|
@@ -754,6 +754,7 @@ if $ARGS[0] = 'clothing_state':
|
|
|
end
|
|
|
end
|
|
|
|
|
|
+
|
|
|
! Author - Hooded Silence
|
|
|
! Date created - 26 Aug 22
|
|
|
! Payment system - Used to pay for items in various game locations
|
|
@@ -807,12 +808,12 @@ if $ARGS[0] = 'payments':
|
|
|
*clr
|
|
|
|
|
|
!Use stock image for the purchase screen?
|
|
|
-
|
|
|
- if ($pay_method ! 'cash' or $pay_method ! 'card') and pay_value <= money and pay_value <= karta:
|
|
|
+
|
|
|
+ if ($pay_method ! 'cash' or $pay_method ! 'card') and (pay_value <= money and pay_value <= karta + bankDebtLimit):
|
|
|
'How do you want to pay for the <<$pay_desc>>? <<$pay_cash>> or <<$pay_card>>'
|
|
|
elseif ($pay_method = 'cash' or $pay_method = '') and pay_value <= money:
|
|
|
'Pay for the <<$pay_desc>> with <<$pay_cash>>?'
|
|
|
- elseif ($pay_method = 'card' or $pay_method = '') and pay_value <= karta + bankDebtLimit:
|
|
|
+ elseif ($pay_method = 'card' or $pay_method = '') and pay_value <= karta + bankDebtLimit:
|
|
|
'Pay for the <<$pay_desc>> with your <<$pay_card>>?'
|
|
|
else
|
|
|
'You don''t have enough money in your purse or bank account for this item.'
|
|
@@ -820,18 +821,25 @@ if $ARGS[0] = 'payments':
|
|
|
|
|
|
! clean up all the variables
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ if $pay_section ! '':
|
|
|
+ act 'Cancel Payment' : gt $pay_section, $pay_act
|
|
|
+ else
|
|
|
+ act 'Cancel Payment' : gt $loc, $loc_arg
|
|
|
+ end
|
|
|
killvar 'pay_value'
|
|
|
killvar '$pay_method'
|
|
|
killvar '$pay_variable'
|
|
|
killvar 'pay_quantity'
|
|
|
killvar '$pay_desc'
|
|
|
- killvar '$pay_type'
|
|
|
+ killvar '$pay_type'
|
|
|
end
|
|
|
|
|
|
!payment complete
|
|
|
|
|
|
if $ARGS[0] = 'paymentcomplete':
|
|
|
- *clr
|
|
|
+ *clr & cla
|
|
|
|
|
|
'Thank you for your custom. Please come again!'
|
|
|
*nl
|
|
@@ -853,5 +861,7 @@ if $ARGS[0] = 'paymentcomplete':
|
|
|
act 'Finish payment' : gt $loc, $loc_arg
|
|
|
end
|
|
|
|
|
|
+
|
|
|
+
|
|
|
--- shortgs ---------------------------------
|
|
|
|