v2.5.0: trinkets can now be energized for some energy back
This commit is contained in:
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Recipe;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Catalog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.utils.Bundle;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -67,6 +68,16 @@ public abstract class Trinket extends Item {
|
||||
|
||||
public abstract String statsDesc();
|
||||
|
||||
public int energyVal() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void restoreFromBundle(Bundle bundle) {
|
||||
super.restoreFromBundle(bundle);
|
||||
levelKnown = cursedKnown = true; //for pre-2.5 saves
|
||||
}
|
||||
|
||||
public static class PlaceHolder extends Trinket {
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user