mirror of
https://github.com/Klagarge/PokeHES.git
synced 2024-11-26 19:13:27 +00:00
polish merge
This commit is contained in:
parent
edd8e028d4
commit
429a3316d9
@ -70,21 +70,15 @@ public class PokeMudry extends PortableApplication {
|
|||||||
if (sp.p.onEnemy && onMapScreen){
|
if (sp.p.onEnemy && onMapScreen){
|
||||||
sp.e = sp.p.lastEnemy;
|
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();
|
int pv = sp.e.getPv();
|
||||||
|
|
||||||
if (pv>0) {
|
if (pv>0) {
|
||||||
sp.sb = sp.screenManager.getScreenBattle();
|
sp.sb = sp.screenManager.getScreenBattle();
|
||||||
sp.b = new Battle(sp.e);
|
sp.b = new Battle(sp.e);
|
||||||
|
|
||||||
|
//set pv and xp to display
|
||||||
|
sp.b.setXpPlayer(sp.p.getXp());
|
||||||
|
|
||||||
g.resetCamera();
|
g.resetCamera();
|
||||||
} else {
|
} else {
|
||||||
sp.p.onEnemy = false;
|
sp.p.onEnemy = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user