v0.7.1: added debug functionality for hero class unlocks

This commit is contained in:
Evan Debenham 2018-12-01 14:19:24 -05:00
parent 584fabd667
commit c05fdef69e

View File

@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.hero;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.BuildConfig;
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal;
@ -252,6 +253,9 @@ public enum HeroClass {
}
public boolean isUnlocked(){
//always unlock on debug builds
if (BuildConfig.DEBUG) return true;
switch (this){
case WARRIOR: default:
return true;