V0.2.0: Various artifact logic/sprite changes

This commit is contained in:
Evan Debenham
2014-09-08 01:01:34 -04:00
parent 5e038f5c5d
commit 14ff09373b
7 changed files with 100 additions and 84 deletions
@@ -31,6 +31,9 @@ public class Artifact extends KindofMisc {
protected Buff activeBuff;
//level is used internally to track upgrades to artifacts, size/logic varies per artifact.
//already inherited from item superclass
//exp is used to count progress towards levels for some artifacts
protected int exp = 0;
//levelCap is the artifact's maximum level
protected int levelCap = 0;
@@ -164,14 +167,14 @@ public class Artifact extends KindofMisc {
@Override
public void storeInBundle( Bundle bundle ) {
bundle.put( "level", level );
bundle.put( "exp", exp );
bundle.put( "charge", charge );
bundle.put( "partialcharge", partialCharge);
}
@Override
public void restoreFromBundle( Bundle bundle ) {
level = bundle.getInt("level");
exp = bundle.getInt("exp");
charge = bundle.getInt("charge");
partialCharge = bundle.getFloat("partialcharge");
}