1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-07 17:01:10 +00:00

add xp and pv on display

This commit is contained in:
Fastium
2022-06-16 15:46:34 +02:00
parent a5c3c8bac5
commit cad32fde7d
10 changed files with 42 additions and 9 deletions

View File

@ -66,6 +66,8 @@ public class PokeMudry extends PortableApplication {
if(onMapScreen) sp.p.manageEntity(sp.sm, controller);
// Switch screen
if (sp.p.onEnemy && onMapScreen){
sp.e = sp.p.lastEnemy;
@ -73,8 +75,9 @@ public class PokeMudry extends PortableApplication {
int pv = sp.e.getPv();
if (pv>0) {
sp.sb = sp.screenManager.getScreenBattle();
sp.b = new Battle(sp.e);
sp.sb = sp.screenManager.getScreenBattle();
//set pv and xp to display
sp.b.setXpPlayer(sp.p.getXp());