Browse Source

The dog, the parrot and the rabbit can now be bought with the right home

None of the pets work in every home.
All of them works at the parents' apartment in Pavlovsk.
The dog works in the city apartment, the Matryona mansion and the Old Town apartment, but not in the city house or the house in the co-op village - and in Gadukino at the grandparents' house.
The rabbit and parrot work only in the city apartment and the Old Town apartment.

This should be fixed at some point.
netuttki 1 year ago
parent
commit
ec0041e1c0
1 changed files with 6 additions and 6 deletions
  1. 6 6
      locations/zoomagazine.qsrc

+ 6 - 6
locations/zoomagazine.qsrc

@@ -110,7 +110,7 @@ if $ARGS[0] = 'start':
 		act 'Buy a rabbit (2000 <b>₽</b>)':
 			cla & *clr
 			menu_off = 1
-			if func('homes_properties', 'has_access', 'city_apartment'):
+			if $home['current'] = 'city_apartment' or $home['current'] = 'old_town_apartment':
 				minut += 10
 				krolik += 1
 				money -= 2000
@@ -125,11 +125,11 @@ if $ARGS[0] = 'start':
 		end
 	end
 
-	if money >= 3000 and rex['owned'] = 0 and func('homes_properties', 'has_access', 'parents_home') = 0 :
+	if money >= 3000 and rex['owned'] = 0 and $home['current'] ! 'parents_home':
 		act 'Buy a dog (3000 <b>₽</b>)':
 			cla & *clr
 			menu_off = 1
-			if ARRSIZE('home') > 0:
+			if $home['current'] = 'city_apartment' or $home['current'] = 'old_town_apartment' or $home['current'] = 'matryona_mansion':
 				minut += 10
 				rex['owned'] = 1
 				money -= 3000
@@ -144,11 +144,11 @@ if $ARGS[0] = 'start':
 		end
 	end
 
-	if money >= 3000 and ParrotQW['Owned1'] = 0 and func('homes_properties', 'has_access', 'parents_home') = 0 :
+	if money >= 3000 and ParrotQW['Owned1'] = 0 and $home['current'] ! 'parents_home' :
 		act 'Buy a parrot (3000 <b>₽</b>)':
 			cla & *clr
 			menu_off = 1
-			if func('homes_properties', 'has_access', 'city_apartment'):
+			if $home['current'] = 'city_apartment' or $home['current'] = 'old_town_apartment':
 				minut += 10
 				ParrotQW['Owned1'] = 1
 				money -= 3000
@@ -163,7 +163,7 @@ if $ARGS[0] = 'start':
 		end
 	end
 
-	if money >= 3000 and ParrotQW['Owned2'] = 0 and  func('homes_properties', 'has_access', 'parents_home'):
+	if money >= 3000 and ParrotQW['Owned2'] = 0 and  $home['current'] = 'parents_home':
 		act 'Buy a parrot for your parent''s apartment (3000 <b>₽</b>)':
 			cla & *clr
 			menu_off = 1