From c05fdef69e2a4b191142af883b80ab03d7269558 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 1 Dec 2018 14:19:24 -0500 Subject: [PATCH] v0.7.1: added debug functionality for hero class unlocks --- .../shatteredpixeldungeon/actors/hero/HeroClass.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/HeroClass.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/HeroClass.java index 8fbb1f7e0..23a906345 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/HeroClass.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/HeroClass.java @@ -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;