Browse Source

Merge remote-tracking branch 'Lusticon/master'

Kevin_Smarts 8 months ago
parent
commit
f5e2e996d7
3 changed files with 6 additions and 2 deletions
  1. 4 1
      locations/pain.qsrc
  2. 2 1
      locations/uni_dorm.qsrc
  3. BIN
      tools/Parser/qsp_parser.exe

+ 4 - 1
locations/pain.qsrc

@@ -100,8 +100,11 @@ else
     curpain = (pain[1] * pain[2] * pain[3]) /10
     curpain = (pain[1] * pain[2] * pain[3]) /10
     prevpain = pain[$painPart]
     prevpain = pain[$painPart]
 
 
-    pain[$painPart] = func( 'shortgs','modul',prevpain,curpain)
+    !! lastpain var can be used elsewhere, do not kill it
+    $lastpain = $painPart
+    lastpain = func( 'shortgs','modul',prevpain,curpain)
 
 
+    pain[$painPart] = lastpain
     if pain[$painPart] > 100: pain[$painPart] = 100
     if pain[$painPart] > 100: pain[$painPart] = 100
 
 
     killvar 'prevpain'
     killvar 'prevpain'

+ 2 - 1
locations/uni_dorm.qsrc

@@ -625,9 +625,10 @@ if $ARGS[0] = 'dorm_room':
 	if $ml_guitar['location'] = $loc: 'Your guitar rests on its stand next to your bed.'
 	if $ml_guitar['location'] = $loc: 'Your guitar rests on its stand next to your bed.'
 	if mc_inventory['mag_porn'] > 0: 'You''ve hidden your porn magazines under the mattress of your bed.'
 	if mc_inventory['mag_porn'] > 0: 'You''ve hidden your porn magazines under the mattress of your bed.'
 	
 	
+	vika_inroom = 0
+	vika_sleep = 0
 	if hour > 14 and hour < func('bordel', 'open_hour'):
 	if hour > 14 and hour < func('bordel', 'open_hour'):
 		vika_inroom = 1
 		vika_inroom = 1
-		vika_sleep = 0
 		if npc_rel['A220'] >= 60 and birthday = day and birthmonth = month and vikaslut = 1 and b_vika_present_Day ! daystart:
 		if npc_rel['A220'] >= 60 and birthday = day and birthmonth = month and vikaslut = 1 and b_vika_present_Day ! daystart:
 			$vikatext = '<a href="exec:gt''Vika''">Vika</a> seems excited when she notices you. She is trying to hide a box behind her back.'
 			$vikatext = '<a href="exec:gt''Vika''">Vika</a> seems excited when she notices you. She is trying to hide a box behind her back.'
 		else
 		else

BIN
tools/Parser/qsp_parser.exe