Browse Source

[fixed] fuckornot & hotornot bugs

Sicaa 4 years ago
parent
commit
95016f8637
2 changed files with 8 additions and 1 deletions
  1. 1 0
      locations/Komp.qsrc
  2. 7 1
      locations/gschool_groups.qsrc

+ 1 - 0
locations/Komp.qsrc

@@ -73,6 +73,7 @@ if $ARGS[0] = 'brows':
 		act 'Search for cable TV services (1:00)':gt 'Komp', 'kabtv'
 		act 'Play an online game':gt 'KGstart'
 		if fuckornot = 3: act 'Visit ''Fuckable or not'' site': $view_location = 'komp' & gt 'komp', 'fuckornot'
+		if hotornot = 3: act 'Visit ''Hot or not'' site': $view_location = 'komp' & gt 'komp', 'hotornot'
 		if bankAccount > 0: act 'Visit your bank, maybe to purchase more online time': gt 'Komp', 'bank'
 		if shantfoto > 0:act 'Find the girl you took photos of in the park on "Assbook"':gt 'Komp', 'foto'
 		if gor_dorm = 7:act 'Read letter from Eugene':gt 'etoexhib', 'pos91'

+ 7 - 1
locations/gschool_groups.qsrc

@@ -183,7 +183,7 @@ if $ARGS[0] = 'fuckornot':
 					$fu_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="<<FUNC(''$face_image'')>>"><br>' + '<<$pcs_nickname>>, <<hotcat>>/10'
 				end
 			elseif hotcat ! j or hotcat_rating_set = 1:
-				if hotcat_rating['A<<i>>'] = j:
+				if hotcat_rating['A<<i>>'] = j and npc_gender['A<<i>>'] = 1:
 					fu_count += 1
 					$fu_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + '<<$npc_usedname[''A<<i>>'']>>, <<hotcat_rating[''A<<i>>'']>>/10'
 				end
@@ -214,11 +214,17 @@ if $ARGS[0] = 'hotornot':
 		i = 1
 		:ho_loop
 			if ho_count = 6 : $ho_text += '<tr>'
+			
+			if hotcat_rating['A<<i>>'] = j and npc_gender['A<<i>>'] = 0:
+				ho_count += 1
+				$ho_text += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/pc/npc_headshots/<<i>>.jpg"><br>' + '<<$npc_usedname[''A<<i>>'']>>, <<hotcat_rating[''A<<i>>'']>>/10'
+			end
 			if ho_count < 6 and hotcat_rating['A<<i>>'] = j and npc_gender['A<<i>>'] = 0:
 				$ho_text += '</td>'
 			elseif ho_count = 6 and hotcat_rating['A<<i>>'] = j and npc_gender['A<<i>>'] = 0:
 				$ho_text +='</td></tr><tr>' & ho_count = 0
 			end
+			i += 1
 		if i <= aarraynumber:jump 'ho_loop'
 	if j > 1: jump 'ho_loop_2'