v0.4.1: made tutorial badge code less error-prone

This commit is contained in:
Evan Debenham 2016-07-10 23:20:01 -04:00 committed by Evan Debenham
parent efa9c3bb73
commit 475d78cd05

View File

@ -815,18 +815,18 @@ public class Badges {
case MAGE:
badge = Badge.TUTORIAL_MAGE;
break;
case ROGUE:
break;
case HUNTRESS:
default:
break;
}
local.add( badge );
if (!global.contains( badge )) {
global.add( badge );
if (badge != null) {
local.add(badge);
if (!global.contains(badge)) {
global.add(badge);
saveNeeded = true;
}
}
}
public static void validateNoKilling() {
if (!local.contains( Badge.NO_MONSTERS_SLAIN ) && Statistics.completedWithNoKilling) {