v2.2.1: increased the toxic gas that can spread from the rot heart
This commit is contained in:
+2
-2
@@ -75,14 +75,14 @@ public class RotHeart extends Mob {
|
|||||||
@Override
|
@Override
|
||||||
public int defenseProc(Char enemy, int damage) {
|
public int defenseProc(Char enemy, int damage) {
|
||||||
//rot heart spreads less gas in enclosed spaces
|
//rot heart spreads less gas in enclosed spaces
|
||||||
int openNearby = 2;
|
int openNearby = 0;
|
||||||
for (int i : PathFinder.NEIGHBOURS8){
|
for (int i : PathFinder.NEIGHBOURS8){
|
||||||
if (!Dungeon.level.solid[pos+i]){
|
if (!Dungeon.level.solid[pos+i]){
|
||||||
openNearby++;
|
openNearby++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameScene.add(Blob.seed(pos, 2*openNearby, ToxicGas.class));
|
GameScene.add(Blob.seed(pos, 5 + 3*openNearby, ToxicGas.class));
|
||||||
|
|
||||||
return super.defenseProc(enemy, damage);
|
return super.defenseProc(enemy, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user