v0.3.1: made the dwarf king's skeletons more responsive to who is attacking their master
This commit is contained in:
parent
8d604af3f0
commit
2893e67375
|
@ -158,6 +158,16 @@ public class King extends Mob {
|
|||
yell( "You cannot kill me, " + Dungeon.hero.givenName() + "... I am... immortal..." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void aggro(Char ch) {
|
||||
super.aggro(ch);
|
||||
for (Mob mob : Dungeon.level.mobs){
|
||||
if (mob instanceof Undead){
|
||||
mob.aggro(ch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int maxArmySize() {
|
||||
return 1 + MAX_ARMY_SIZE * (HT - HP) / HT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user