V0.2.0: Refined Cloak of Shadows implementation, almost done.

This commit is contained in:
Evan Debenham
2014-08-26 01:19:17 -04:00
parent c8ffb41754
commit 92e664472b
5 changed files with 103 additions and 22 deletions
@@ -6,6 +6,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.items.KindofMisc;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.utils.Bundle;
import java.util.ArrayList;
@@ -19,7 +20,7 @@ public class Artifact extends KindofMisc {
protected Buff passiveBuff;
protected Buff activeBuff;
protected int level = 0;
protected int level = 1;
protected int charge = 0;
protected int chargeCap;
@@ -113,4 +114,19 @@ public class Artifact extends KindofMisc {
public class ArtifactBuff extends Buff {
}
@Override
public void storeInBundle( Bundle bundle ) {
bundle.put( "level", level );
bundle.put( "charge", charge );
}
@Override
public void restoreFromBundle( Bundle bundle ) {
level = bundle.getInt("level");
charge = bundle.getInt("charge");
}
}