v2.2.0: crystal spire's attack now penetrates armor
This commit is contained in:
+5
-5
@@ -131,11 +131,11 @@ public class CrystalSpire extends Mob {
|
|||||||
Char ch = Actor.findChar(i);
|
Char ch = Actor.findChar(i);
|
||||||
|
|
||||||
if (ch != null && !(ch instanceof CrystalWisp || ch instanceof CrystalSpire)){
|
if (ch != null && !(ch instanceof CrystalWisp || ch instanceof CrystalSpire)){
|
||||||
int dmg = Random.NormalIntRange(15, 20);
|
int dmg = Random.NormalIntRange(8, 16);
|
||||||
|
|
||||||
if (!(ch instanceof CrystalGuardian)) {
|
//guardians are hit harder by the attack
|
||||||
dmg -= ch.drRoll();
|
if (ch instanceof CrystalGuardian) {
|
||||||
} else {
|
dmg += 8;
|
||||||
Buff.prolong(ch, Cripple.class, 20f);
|
Buff.prolong(ch, Cripple.class, 20f);
|
||||||
}
|
}
|
||||||
ch.damage(dmg, CrystalSpire.this);
|
ch.damage(dmg, CrystalSpire.this);
|
||||||
@@ -171,7 +171,7 @@ public class CrystalSpire extends Mob {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//PixelScene.shake( 3, 0.7f );
|
PixelScene.shake( 1, 0.7f );
|
||||||
Sample.INSTANCE.play( Assets.Sounds.SHATTER );
|
Sample.INSTANCE.play( Assets.Sounds.SHATTER );
|
||||||
|
|
||||||
if (!targetedCells.isEmpty()){
|
if (!targetedCells.isEmpty()){
|
||||||
|
|||||||
Reference in New Issue
Block a user