Browse Source

[fixed] Resizing items at the tailors used to: a) not update your money after paying to resize an item; b) allow you to go into negative money when in the item selection UI and selecting additional items to resize.

Kevin_Smarts 1 year ago
parent
commit
a1db05c454
3 changed files with 21 additions and 19 deletions
  1. 3 2
      locations/city_market.qsrc
  2. 16 16
      locations/clothing.qsrc
  3. 2 1
      locations/pav_factory.qsrc

+ 3 - 2
locations/city_market.qsrc

@@ -255,7 +255,6 @@ if $ARGS[0] = 'tailor':
 			if money >= 500:
 			if money >= 500:
 				act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
 				act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
 					*clr & cla
 					*clr & cla
-					minut += 10
 					if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
 					if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
 						'The tailor is looking irritatingly at you, "Why are you wasting my time with exercise clothing? That type of clothing does not need to be resized..."'
 						'The tailor is looking irritatingly at you, "Why are you wasting my time with exercise clothing? That type of clothing does not need to be resized..."'
 					elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
 					elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
@@ -263,14 +262,16 @@ if $ARGS[0] = 'tailor':
 					elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
 					elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
 						'The tailor is looking irritatingly at you, "Why are you wasting my time? Your clothing does not need to be resized. It might not be perfect but it is still fine."'
 						'The tailor is looking irritatingly at you, "Why are you wasting my time? Your clothing does not need to be resized. It might not be perfect but it is still fine."'
 					else
 					else
+						minut += 10
 						money -= 500
 						money -= 500
+						gs 'stat'
 						dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
 						dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
 						'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
 						'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
 						'Jacob quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'
 						'Jacob quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'
 						'You are handed your clothes back and quickly get dressed. You''re pleased with the job that the tailor has done.'
 						'You are handed your clothes back and quickly get dressed. You''re pleased with the job that the tailor has done.'
 					end
 					end
 
 
-					act 'Continue': minut += 10 & gt 'city_market', 'tailor'
+					act 'Continue': gt 'city_market', 'tailor'
 				end
 				end
 
 
 				act 'Take in different clothes':gt 'clothing', 'view_clothing_list', 'resize'
 				act 'Take in different clothes':gt 'clothing', 'view_clothing_list', 'resize'

+ 16 - 16
locations/clothing.qsrc

@@ -1520,31 +1520,31 @@ if $ARGS[0] = 'view_clothing_item':
 						'This item is too large for you to wear.'
 						'This item is too large for you to wear.'
 					end
 					end
 
 
-					if (pcs_sewng >= 50 and tkan > 0) or $loc_arg = 'tailor':
+					if pcs_sewng >= 50 and tkan > 0:
 						cla & *nl
 						cla & *nl
-						if $loc_arg = 'tailor':
-							'You can pay to have this resized for (500 <b>₽</b>).'
-						else
-							'You can resize this thanks to your sewing skill.'
-						end
-						
-						act 'Return': gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
-						
+						'You can resize this thanks to your sewing skill.'
 						act 'Resize item':
 						act 'Resize item':
 							cla
 							cla
-							if $loc_arg = 'tailor':
+							tkan -= 1
+							minut += 30
+							dynamic $ARGS[1] + '_b[<<ARGS[2]>>] = pcs_hips'
+							'You spend 30 minutes resizing the outfit.'
+							act 'Return':gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
+						end
+					elseif $loc_arg = 'tailor':
+						cla & *nl
+						if money >= 500:
+							'You can pay to have this resized for (500 <b>₽</b>).'
+							act 'Resize item':
 								minut += 15
 								minut += 15
 								money -= 500
 								money -= 500
 								dynamic $ARGS[1] + '_b[<<ARGS[2]>>] = pcs_hips'
 								dynamic $ARGS[1] + '_b[<<ARGS[2]>>] = pcs_hips'
 								*nl
 								*nl
 								'You hand the clothing over to the tailor who takes it into the back. Fifteen minutes later, he presents your clothing back to you, adjusted to fit you perfectly.'
 								'You hand the clothing over to the tailor who takes it into the back. Fifteen minutes later, he presents your clothing back to you, adjusted to fit you perfectly.'
-							else
-								tkan -= 1
-								minut += 30
-								dynamic $ARGS[1] + '_b[<<ARGS[2]>>] = pcs_hips'
-								'You spend 30 minutes resizing the outfit.'
+								act 'Return':gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
 							end
 							end
-							act 'Return':gt 'clothing', 'clothing_list', '<<$ward_list_store>>'
+						else
+							'You cannot afford to have this resized.'
 						end
 						end
 					end
 					end
 				exit
 				exit

+ 2 - 1
locations/pav_factory.qsrc

@@ -21,7 +21,6 @@ if $ARGS[0] = 'tailor':
 	if money >= 500:
 	if money >= 500:
 		act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
 		act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
 			*clr & cla
 			*clr & cla
-			minut += 10
 			if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
 			if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
 				'The tailor is looking irritatingly at you, "Why are you wasting my time with exercise clothing? That type of clothing does not need to be resized..."'
 				'The tailor is looking irritatingly at you, "Why are you wasting my time with exercise clothing? That type of clothing does not need to be resized..."'
 			elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
 			elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
@@ -29,7 +28,9 @@ if $ARGS[0] = 'tailor':
 			elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
 			elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
 				'The tailor is looking irritatingly at you, "Why are you wasting my time? Your clothing does not need to be resized. It might not be perfect but it is still fine."'
 				'The tailor is looking irritatingly at you, "Why are you wasting my time? Your clothing does not need to be resized. It might not be perfect but it is still fine."'
 			else
 			else
+				minut += 10
 				money -= 500
 				money -= 500
+				gs 'stat'
 				dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
 				dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
 				'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
 				'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
 				'He quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'
 				'He quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'