mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-30 19:29:17 +00:00 
			
		
		
		
	ok end battle
This commit is contained in:
		| @@ -43,6 +43,7 @@ public class Battle { | |||||||
|         System.out.println("xp player : " + xpPlayer); |         System.out.println("xp player : " + xpPlayer); | ||||||
|         System.out.println("xp win " + newXp); |         System.out.println("xp win " + newXp); | ||||||
|  |  | ||||||
|  |         | ||||||
|         if(getLineSpeech() == 4){ |         if(getLineSpeech() == 4){ | ||||||
|             FinishSpeech(); |             FinishSpeech(); | ||||||
|         } |         } | ||||||
| @@ -52,11 +53,14 @@ public class Battle { | |||||||
|         } |         } | ||||||
|         else if(0 < getLineSpeech() && getLineSpeech() < 4){ |         else if(0 < getLineSpeech() && getLineSpeech() < 4){ | ||||||
|             checkAnswer(answer); |             checkAnswer(answer); | ||||||
|  |  | ||||||
|  |             if(pvEnemy <= 0){ | ||||||
|  |                 FinishSpeech(); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|         else{ |         else{ | ||||||
|         readNextLine(); |         readNextLine(); | ||||||
|         } |         } | ||||||
|          |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     //check the choice answer |     //check the choice answer | ||||||
| @@ -98,16 +102,17 @@ public class Battle { | |||||||
|     public void FinishSpeech(){ |     public void FinishSpeech(){ | ||||||
|         if(pvEnemy>0){ |         if(pvEnemy>0){ | ||||||
|             //alive (speechline = 6) |             //alive (speechline = 6) | ||||||
|             lineSpeech += 2; |             lineSpeech = 6; | ||||||
|             System.out.println("enemy alive"); |             System.out.println("enemy alive"); | ||||||
|         } |         } | ||||||
|         else{ |         else{ | ||||||
|             //dead (speechline = 5) |             //dead (speechline = 5) | ||||||
|             lineSpeech += 1; |             lineSpeech = 5; | ||||||
|             System.out.println("enemy dead"); |             System.out.println("enemy dead"); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |      | ||||||
|     public void finish(){ |     public void finish(){ | ||||||
|         screenBattleOn = false; |         screenBattleOn = false; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user