ソースを参照

[Fixed] Fixed bugs in fight mechanism. Added initialization to sparring with Gustav in Tatiana's lab

KeyMasterOfGozer 5 年 前
コミット
c7c5c183c8
2 ファイル変更22 行追加4 行削除
  1. 4 4
      locations/fight.qsrc
  2. 18 0
      locations/lab.qsrc

+ 4 - 4
locations/fight.qsrc

@@ -97,8 +97,8 @@ if $ARGS[0] = 'randomOpp':
 }
 	OppDiffBonus = ARGS[1]
 	i = arrsize('opp_def')
-	opp_name[i] = 'Opponent 1'
-	opp_image[i] = 'images/locations/shared/street/mugger.jpg'
+	$opp_name[i] = 'Opponent 1'
+	$opp_image[i] = 'images/locations/shared/street/mugger.jpg'
 	opp_def[i] = rand(1,50) + OppDiffBonus
 	opp_run[i] = rand(1,50) + OppDiffBonus
 	opp_wrstlng[i] = rand(1,50) + OppDiffBonus
@@ -123,7 +123,7 @@ if $ARGS[0] = 'start':
 
 	'<center><b><font color="maroon">Fight!</font></b></center>'
 	*nl
-	'<left><img <<$set_imgh>> src="<<FUNC(''$face_image'')>>"></left><right><<$opp_image[0]>></right>'
+	'<left><img <<$set_imgh>> src="<<FUNC(''$face_image'')>>"></left><right><img <<$set_imgh>> src="<<$opp_image[0]>>"></right>'
 	*nl
 	'<left><<$pcs_firstname>></left><center>vs.</center><right><<$opp_name[0]>></right>'
 
@@ -173,7 +173,7 @@ if $ARGS[0] = 'result_check':
 		xgt'ender','loss'
 		exit
 	end
-	gt 'fight', 'main'
+	!gt 'fight', 'main'
 end
 
 !! Kick

+ 18 - 0
locations/lab.qsrc

@@ -47,6 +47,7 @@ if $ARGS[0] = 'start':
 			cla
 			judosparday = daystart
 			gs 'boyStat', 'A175'
+			!{
 			!!stats
 			strenV = 600
 			speedV = 60
@@ -68,6 +69,23 @@ if $ARGS[0] = 'start':
 			!!Programme of Action
 			program = 0
 			jugoFight = 2
+			}
+			gs 'fight','initFight'
+
+			$opp_name[0] = 'Gustav'
+			$opp_image[0] = 'images/characters/city/jugo/jugopre.jpg'
+			opp_def[0] = 100
+			opp_run[0] = 75
+			opp_wrstlng[0] = 75
+			opp_kick[0] = 75
+			opp_punch[0] = 85
+			opp_jab[0] = 75
+			opp_stren[0] = 250
+			opp_agil[0] = 60
+			opp_vital[0] = 200
+			opp_react[0] = 50
+			opp_shoot[0] = 100
+
 			gt 'fight', 'start'
 		end
 	end