v0.4.1: made tutorial badge code less error-prone
This commit is contained in:
parent
efa9c3bb73
commit
475d78cd05
|
@ -815,18 +815,18 @@ public class Badges {
|
|||
case MAGE:
|
||||
badge = Badge.TUTORIAL_MAGE;
|
||||
break;
|
||||
case ROGUE:
|
||||
break;
|
||||
case HUNTRESS:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user