|
@@ -282,7 +282,7 @@ if $ARGS[0] = 'get_owned_homes':
|
|
|
j = 0
|
|
|
count = ARRSIZE('owned_property')
|
|
|
if count > 0:
|
|
|
- :countloop
|
|
|
+ :countloop1
|
|
|
gs 'homes_properties', 'get_property_attr', $owned_property[i]
|
|
|
if $property['type'] = 'permanent_residence' and (owned_property[i] = 2 or owned_property[i] = 3):
|
|
|
$result[j] = $property['code']
|
|
@@ -290,7 +290,7 @@ if $ARGS[0] = 'get_owned_homes':
|
|
|
end
|
|
|
i += 1
|
|
|
killvar 'property'
|
|
|
- if i < count: jump 'countloop'
|
|
|
+ if i < count: jump 'countloop1'
|
|
|
end
|
|
|
killvar 'count'
|
|
|
killvar 'i'
|
|
@@ -302,12 +302,12 @@ if $ARGS[0] = 'get_rented':
|
|
|
i = 0
|
|
|
count = ARRSIZE('owned_property')
|
|
|
if count > 0:
|
|
|
- :countloop
|
|
|
+ :countloop2
|
|
|
gs 'homes_properties', 'get_property_attr', $owned_property[i]
|
|
|
if $property['type'] = 'permanent_residence' or $property['type'] = 'temporary_residence' and owned_property[i] = 1: counter += 1
|
|
|
i += 1
|
|
|
killvar 'property'
|
|
|
- if i < count: jump 'countloop'
|
|
|
+ if i < count: jump 'countloop2'
|
|
|
end
|
|
|
result = counter
|
|
|
killvar 'counter'
|
|
@@ -320,12 +320,12 @@ if $ARGS[0] = 'get_accessible_count':
|
|
|
i = 0
|
|
|
count = ARRSIZE('owned_property')
|
|
|
if count > 0:
|
|
|
- :countloop
|
|
|
+ :countloop3
|
|
|
gs 'homes_properties', 'get_property_attr', $owned_property[i]
|
|
|
if $property['type'] = 'permanent_residence' or $property['type'] = 'temporary_residence' and owned_property[i] ! 0 and owned_property[i] ! 3: counter += 1
|
|
|
i += 1
|
|
|
killvar 'property'
|
|
|
- if i < count: jump 'countloop'
|
|
|
+ if i < count: jump 'countloop3'
|
|
|
end
|
|
|
result = counter
|
|
|
killvar 'counter'
|
|
@@ -339,7 +339,7 @@ if $ARGS[0] = 'get_count_of_furnishable_homes':
|
|
|
i = 0
|
|
|
count = ARRSIZE('owned_property')
|
|
|
if count > 0:
|
|
|
- :countloop
|
|
|
+ :countloop4
|
|
|
gs 'homes_properties', 'get_property_attr', $owned_property[i]
|
|
|
if $property['type'] = 'permanent_residence' or $property['type'] = 'temporary_residence' and owned_property[i] = 1 or owned_property[i] = 2:
|
|
|
if $property['code'] = 'matryona_mansion':
|
|
@@ -350,7 +350,7 @@ if $ARGS[0] = 'get_count_of_furnishable_homes':
|
|
|
end
|
|
|
i += 1
|
|
|
killvar 'property'
|
|
|
- if i < count: jump 'countloop'
|
|
|
+ if i < count: jump 'countloop4'
|
|
|
end
|
|
|
killvar 'counter'
|
|
|
killvar 'count'
|