v0.3.3: implemented BOSS and MINIBOSS properties

This commit is contained in:
Evan Debenham
2015-12-16 17:27:36 -05:00
parent e09f40378d
commit 3d8e104b9b
14 changed files with 27 additions and 17 deletions
@@ -165,7 +165,7 @@ public abstract class Char extends Actor {
if ( this instanceof Yog ) {
Dungeon.fail( Utils.format( ResultDescriptions.NAMED, name) );
} if (Bestiary.isUnique( this )) {
} else if (properties().contains(Property.MINIBOSS) || properties().contains(Property.BOSS)) {
Dungeon.fail( Utils.format( ResultDescriptions.UNIQUE, name) );
} else {
Dungeon.fail( Utils.format( ResultDescriptions.MOB, Utils.indefinite( name )) );