From f5fbf9b5faac18cf3944aeb48ea3f2f0b2d81679 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sun, 22 Feb 2015 12:44:43 +0100 Subject: [PATCH] Update from user feedback --- .../main/java/com/ddns/kauron/dungeonmanager/MainActivity.java | 1 + app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java index f1cf568..ab1db2c 100644 --- a/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java @@ -300,6 +300,7 @@ public class MainActivity extends ActionBarActivity player.setClassName(p.getString("className", getString(R.string.class_name))); player.setRaceName(p.getString("raceName", getString(R.string.race_name))); player.setLevel(p.getInt("level", 1)); + //TODO: restore pg player.setAtk(new int[]{ p.getInt("fue", 10), p.getInt("con", 10), diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java index 9cc249f..f2efe60 100644 --- a/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java @@ -170,6 +170,7 @@ public class Player { public int getVol() {return def[VOL];} //TODO: set the pg level dependant + //TODO: only setPg if the public void setClass() { int pgExtra = 0, curativeEffortsExtra = 0, defCA = 0, defFORT = 0, defVOL = 0, defREF = 0; if(className.equals(classStrings[1])){