v1.3.0: big buff to woolly bombs (and standardized some sheep logic)
This commit is contained in:
@@ -499,7 +499,7 @@ items.bombs.shrapnelbomb.name=shrapnel bomb
|
|||||||
items.bombs.shrapnelbomb.desc=This bomb has been modified with scraps of DM-300's metal, which will fragment and fly everywhere when it explodes, damaging anything in a huge range around the bomb. You had better hide behind something when using it...
|
items.bombs.shrapnelbomb.desc=This bomb has been modified with scraps of DM-300's metal, which will fragment and fly everywhere when it explodes, damaging anything in a huge range around the bomb. You had better hide behind something when using it...
|
||||||
|
|
||||||
items.bombs.woollybomb.name=woolly bomb
|
items.bombs.woollybomb.name=woolly bomb
|
||||||
items.bombs.woollybomb.desc=This customized bomb will create a field of magical sheep after exploding. These sheep will block movement and persist for some time.
|
items.bombs.woollybomb.desc=This customized bomb will create a wide field of magical sheep after exploding. These sheep will block movement and persist for a very long time! The sheep will not last as long in the presence of powerful enemies though, and can be manually dispelled sooner by interacting with them.
|
||||||
|
|
||||||
###food
|
###food
|
||||||
items.food.berry.name=dungeon berry
|
items.food.berry.name=dungeon berry
|
||||||
|
|||||||
+5
-1
@@ -53,7 +53,7 @@ public class Sheep extends NPC {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
spend( lifespan + Random.Float(2) );
|
spend( lifespan + Random.Float(-2, 2) );
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -77,6 +77,10 @@ public class Sheep extends NPC {
|
|||||||
if (c == Dungeon.hero) {
|
if (c == Dungeon.hero) {
|
||||||
Dungeon.hero.spendAndNext(1f);
|
Dungeon.hero.spendAndNext(1f);
|
||||||
Sample.INSTANCE.play(Assets.Sounds.SHEEP, 1, Random.Float(0.91f, 1.1f));
|
Sample.INSTANCE.play(Assets.Sounds.SHEEP, 1, Random.Float(0.91f, 1.1f));
|
||||||
|
//sheep summoned by woolly bomb can be dispelled by interacting
|
||||||
|
if (lifespan >= 20){
|
||||||
|
spend(-cooldown());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -60,7 +60,7 @@ public class WoollyBomb extends Bomb {
|
|||||||
&& Actor.findChar(i) == null
|
&& Actor.findChar(i) == null
|
||||||
&& !(Dungeon.level.pit[i])) {
|
&& !(Dungeon.level.pit[i])) {
|
||||||
Sheep sheep = new Sheep();
|
Sheep sheep = new Sheep();
|
||||||
sheep.lifespan = Random.NormalIntRange( 12, 16 );
|
sheep.lifespan = Dungeon.bossLevel() ? 20 : 200;
|
||||||
sheep.pos = i;
|
sheep.pos = i;
|
||||||
GameScene.add(sheep);
|
GameScene.add(sheep);
|
||||||
Dungeon.level.occupyCell(sheep);
|
Dungeon.level.occupyCell(sheep);
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ public class StoneOfFlock extends Runestone {
|
|||||||
&& Actor.findChar(i) == null
|
&& Actor.findChar(i) == null
|
||||||
&& !(Dungeon.level.pit[i])) {
|
&& !(Dungeon.level.pit[i])) {
|
||||||
Sheep sheep = new Sheep();
|
Sheep sheep = new Sheep();
|
||||||
sheep.lifespan = Random.NormalIntRange( 6, 8 );
|
sheep.lifespan = 8;
|
||||||
sheep.pos = i;
|
sheep.pos = i;
|
||||||
GameScene.add(sheep);
|
GameScene.add(sheep);
|
||||||
Dungeon.level.occupyCell(sheep);
|
Dungeon.level.occupyCell(sheep);
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ public class FlockTrap extends Trap {
|
|||||||
&& Actor.findChar(i) == null
|
&& Actor.findChar(i) == null
|
||||||
&& !(Dungeon.level.pit[i])) {
|
&& !(Dungeon.level.pit[i])) {
|
||||||
Sheep sheep = new Sheep();
|
Sheep sheep = new Sheep();
|
||||||
sheep.lifespan = Random.NormalIntRange( 4, 8 );
|
sheep.lifespan = 6;
|
||||||
sheep.pos = i;
|
sheep.pos = i;
|
||||||
GameScene.add(sheep);
|
GameScene.add(sheep);
|
||||||
CellEmitter.get(i).burst(Speck.factory(Speck.WOOL), 4);
|
CellEmitter.get(i).burst(Speck.factory(Speck.WOOL), 4);
|
||||||
|
|||||||
Reference in New Issue
Block a user