Ver código fonte

[text edit] removed unnecessary duplicate code in pavComplex

julzor 4 anos atrás
pai
commit
1ade9ca936
1 arquivos alterados com 8 adições e 20 exclusões
  1. 8 20
      locations/pavComplex.qsrc

+ 8 - 20
locations/pavComplex.qsrc

@@ -66,30 +66,18 @@ if $ARGS[0] = 'start':
 		act 'Join Rex in his car':gt'reks','avto2'
 	end
 
-	if home_owned[2] = 1:
-		'In the old part of Pavlovsk, this is the Five Eight Estate made up of numerous Soviet era apartment blocks. Your family''s apartment is on the second floor of the nearest building.'
-		*nl
-		'Opposite you is a meager courtyard, which has changed over the years to now include a kid''s playground, basketball court and small grass area mostly used to play football on.'
-		'A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
-		*nl
-		'Behind the apartments is a row of <a href="exec:minut += 3 & gt ''pavComplex'', ''garages''">garages</a> and storage space for tenants.'
-	elseif StoryLine = 1:
-		'In the old part of Pavlovsk, this is the Five Eight Estate made up of numerous Soviet era apartment blocks. Your family''s apartment is on the second floor of the nearest building, but you are no longer welcome in their home.'
-		*nl
-		'Opposite you is a meager courtyard, which has changed over the years to now include a kid''s playground, basketball court and small grass area mostly used to play football on.'
-		'A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
-		*nl
-		' Behind the apartments is a row of <a href="exec:minut += 3 & gt ''pavComplex'', ''garages''">garages</a> and storage space for tenants.'
+	if StoryLine = 1:
+		'In the old part of Pavlovsk, this is the Five Eight Estate made up of numerous Soviet era apartment blocks. Your family''s apartment is on the second floor of the nearest building'+iif(home_owned[2] = 1, '.', ', but you are no longer welcome in their home.')
 	else
 		'In the old part of Pavlovsk, this is the Five Eight Estate made up of numerous Soviet era apartment blocks.'
-		*nl
-		'Opposite you is a meager courtyard, which has changed over the years to now include a kid''s playground, basketball court and small grass area mostly used to play football on.'
-		'A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
-		*nl
-		'Behind the apartments is a row of <a href="exec:minut += 3 & gt ''pavComplex'', ''garages''">garages</a> and storage space for tenants.'
 	end
+	*nl
+	'Opposite you is a meager courtyard, which has changed over the years to now include a kid''s playground, basketball court and small grass area mostly used to play football on.'
+	'A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
+	*nl
+	'Behind the apartments is a row of <a href="exec:minut += 3 & gt ''pavComplex'', ''garages''">garages</a> and storage space for tenants.'
 
-	if pavComplex_met_dealer >= 3 and hour > 20: '<br>You cann see the <a href="exec:minut += 3 & gt ''pavaptcourtev'', ''dealer''">boy</a> who sells weed in the courtyard.'
+	if pavComplex_met_dealer >= 3 and hour > 20: '<br>You can see the <a href="exec:minut += 3 & gt ''pavaptcourtev'', ''dealer''">boy</a> who sells weed in the courtyard.'
 	
 	if Enable_tablemap = 0:
 		if storyline = 1:'<a href="exec:minut += 15 & gt ''shulgahome''">The Shulgin family</a> live in the apartment above your parents.'