Selaa lähdekoodia

Converted several dynamic calls to dyneval

Thekingofsweden 9 vuotta sitten
vanhempi
commit
d68db5d601
1 muutettua tiedostoa jossa 3 lisäystä ja 6 poistoa
  1. 3 6
      locations/clothing

+ 3 - 6
locations/clothing

@@ -147,8 +147,7 @@ if $ARGS[0] = 'view_clothing_item':
 	end
 	end
 	
 	
 	if $ARGS[1] = 'shop':
 	if $ARGS[1] = 'shop':
-		dynamic 'RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]'
-		if RESULT = 1:
+		if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
 			'You already own this item.'
 			'You already own this item.'
 		else
 		else
 			'Price: <<ARGS[4]>>'
 			'Price: <<ARGS[4]>>'
@@ -178,8 +177,7 @@ if $ARGS[0] = 'view_clothing_item':
 		
 		
 		if $ARGS[2] ! 'vatnik' and $ARGS[2] ! 'ero' and ($ARGS[2] ! 'newclo' or ARGS[3] ! 131):
 		if $ARGS[2] ! 'vatnik' and $ARGS[2] ! 'ero' and ($ARGS[2] ! 'newclo' or ARGS[3] ! 131):
 			!! if the clothing is worn out
 			!! if the clothing is worn out
-			dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
-			if RESULT <= 0:
+			if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
 				'This item is worn and is not suitable for further wear.'
 				'This item is worn and is not suitable for further wear.'
 				exit
 				exit
 			end
 			end
@@ -232,8 +230,7 @@ if $ARGS[0] = 'view_clothing_item':
 		act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
 		act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
 		
 		
 		if $ARGS[2] ! 'yoga' and $ARGS[2] ! 'sarafan':
 		if $ARGS[2] ! 'yoga' and $ARGS[2] ! 'sarafan':
-			dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
-			if RESULT ! bedra and money >= 500:
+			if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! bedra and money >= 500:
 				'You can have this resized for 500 rubles.'
 				'You can have this resized for 500 rubles.'
 				act 'Resize':
 				act 'Resize':
 					money -= 500
 					money -= 500