1
0
Преглед на файлове

[added] Payment type for auto buying outfits

Kevin_Smarts преди 1 година
родител
ревизия
acf9f86a11
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      locations/clothing.qsrc

+ 2 - 1
locations/clothing.qsrc

@@ -1934,6 +1934,7 @@ end
 !! ARGS[1] = store price
 !! $ARGS[2] = item_type
 !! ARGS[3] = item number
+!! $ARGS[4] = 'money' or 'karta' for payment type
 if ARGS[0] = 'quick_buy':
 	price = ('<<ARGS[1]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
 	price = price / 50 * 50
@@ -1941,7 +1942,7 @@ if ARGS[0] = 'quick_buy':
 	if CloStyle = 2:h = 10
 	if CloStyle = 5:h = 20
 	h += (3 * CloQuality)
-	money -= price
+	dynamic '<<$ARGS[4]>> -= price'
 	gs 'clothing', 'view_clothing_item_buy', 'skip', $ARGS[2], ARGS[3], ARGS[1]
 end