mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-30 19:29:17 +00:00 
			
		
		
		
	polish merge
This commit is contained in:
		| @@ -70,26 +70,20 @@ public class PokeMudry extends PortableApplication { | ||||
|         if (sp.p.onEnemy && onMapScreen){ | ||||
|             sp.e = sp.p.lastEnemy; | ||||
|  | ||||
|             sp.sb = sp.screenManager.getScreenBattle(); | ||||
|             if(sp.e == null) System.out.println("sdfsdfsdfsdf"); | ||||
|  | ||||
|             sp.b = new Battle(sp.e); | ||||
|  | ||||
|             //set pv and xp to display | ||||
|             sp.b.setXpPlayer(sp.p.getXp()); | ||||
|  | ||||
|             g.resetCamera(); | ||||
|  | ||||
|             int pv = sp.e.getPv(); | ||||
|  | ||||
|             if (pv>0) { | ||||
|                 sp.sb = sp.screenManager.getScreenBattle();             | ||||
|                 sp.b = new Battle(sp.e); | ||||
|                  | ||||
|                 //set pv and xp to display | ||||
|                 sp.b.setXpPlayer(sp.p.getXp()); | ||||
|  | ||||
|                 g.resetCamera(); | ||||
|             } else { | ||||
|                 sp.p.onEnemy = false; | ||||
|             } | ||||
|  | ||||
|              | ||||
|         } | ||||
|          | ||||
|         if(onBattleScreen) sp.sb.manage(controller, sp.b); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user