Browse Source

[changed] Every occurrence of lernHome ! 0 have been replaced with lernHome > 0 since lernHome is not supposed to be negative. (This will prevent people to repeat doing homework with some npc's is lernHome for some reason becomes negative.

bgkjdgbizgblzdgbr 2 years ago
parent
commit
4d5256e0c3

+ 1 - 1
locations/JuliaMilHome.qsrc

@@ -13,7 +13,7 @@ gs 'stat'
 '<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big12.jpg"></center>'
 'Julia has a nice room, decorated with high quality furnishings. There are books everywhere, she must really like to read.'
 
-if lernHome ! 0:
+if lernHome > 0:
 	'Julia arranges her school books on a large desk and gets ready to do her homework, inviting you to join her.'
 
 	act 'Do your homework with Julia':

+ 1 - 1
locations/LariskaHome.qsrc

@@ -530,7 +530,7 @@ if $ARGS[0] = 'lariska_bedroom':
 	if lariloc = 2 or lariloc = 8 or lariloc = 22 or lariloc = 15 or lariloc = 17:
 		act 'Chat with Lariska': gt 'LariskaHome', 'chat'
 	end
-	if lernHome ! 0:
+	if lernHome > 0:
 		act 'Do homework':gt 'LariskaHome','homework'
 	end
 	if lariskaTrain > 5 and LariskaQW['volleyball'] = 0 and (lariloc = 8 or (lariloc = 22 and hour < 16 and week <= 5)):

+ 2 - 2
locations/artemhome.qsrc

@@ -317,7 +317,7 @@ if $ARGS[0] = 'artemroom':
 			'Artem is sitting there, watching you with a friendly smile.'
 			act 'Let''s go to the livingroom': ArtemLoc = 5 & gt 'artemhome', 'livingroom'
 			act 'Talk to Artem': ArtemLoc = 2 & gt 'artemhome', 'chat'
-			if lernHome ! 0:
+			if lernHome > 0:
 				act 'Do homework with Artem': gt 'artem_events','learn'
 			end
 !! Nutluck needs to say at which point this should be enabled, set it to artfall > 5 for now		
@@ -851,7 +851,7 @@ if $ARGS[0] = 'livingroom':
 					act 'Leave': gt'pod_ezd','etaj_1'
 				end
 			end
-			if lernHome ! 0:
+			if lernHome > 0:
 				act 'I think we should do our homework':
 					*clr & cla
 					'<center><b><font color = maroon>Living room</font></b></center>'

+ 1 - 1
locations/lariska_schedule.qsrc

@@ -36,7 +36,7 @@ if SchoolAtestat = 0 and kanikuli = 0:
 				lariloc = 7
 				lariloc['athome'] = 0
 			else
-				if lernHome ! 0:
+				if lernHome > 0:
 					!!Bedroom - Homework
 					lariloc = 8
 					lariloc['athome'] = 1

+ 2 - 2
locations/natbelapt.qsrc

@@ -507,9 +507,9 @@ if $ARGS[0] = 'natroom':
 			end
 		end
 
-		if lernHome ! 0: act 'Study together': gs 'natbelapt', 'study_together'
+		if lernHome > 0: act 'Study together': gs 'natbelapt', 'study_together'
 
-		if NatbelQW['QWstage'] >= 2 and lernHome ! 0 and NatbelQW['Debt'] > 0: act 'Make her do your homework': gs 'natbelapt', 'make_her_do_homework'
+		if NatbelQW['QWstage'] >= 2 and lernHome > 0 and NatbelQW['Debt'] > 0: act 'Make her do your homework': gs 'natbelapt', 'make_her_do_homework'
 
 		if NatbelQW['Debt'] > 0 and NatbelQW['DebtDay'] <= daystart:
 

+ 1 - 1
locations/shulga_room.qsrc

@@ -1352,7 +1352,7 @@ if $ARGS[0] = 'shulga_lern':
 	menu_off = 1
 	!choice of set pictures
 	lern_imgset = rand(1,7)
-	if lernHome ! 0:
+	if lernHome > 0:
 		minut += 60
 		lern += rand(1,6)
 		intel_exp += rand(1,2) + (mentats_dose - rand(0,mentats_dose))