v0.2.2: Implemented new potion of levitation functionality into falling potions
This commit is contained in:
parent
04c315cfaa
commit
d257d28414
|
@ -25,9 +25,11 @@ import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ConfusionGas;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ParalyticGas;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ParalyticGas;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLevitation;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfParalyticGas;
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfParalyticGas;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfToxicGas;
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfToxicGas;
|
||||||
|
@ -342,11 +344,13 @@ public class Dungeon {
|
||||||
cell = level.randomRespawnCell();
|
cell = level.randomRespawnCell();
|
||||||
|
|
||||||
if (potion instanceof PotionOfLiquidFlame)
|
if (potion instanceof PotionOfLiquidFlame)
|
||||||
GameScene.add(Blob.seed(cell, 2, Fire.class));
|
GameScene.add( Blob.seed( cell, 2, Fire.class));
|
||||||
else if (potion instanceof PotionOfToxicGas)
|
else if (potion instanceof PotionOfToxicGas)
|
||||||
GameScene.add( Blob.seed( cell, 1000, ToxicGas.class ) );
|
GameScene.add( Blob.seed( cell, 1000, ToxicGas.class ) );
|
||||||
else if (potion instanceof PotionOfParalyticGas)
|
else if (potion instanceof PotionOfParalyticGas)
|
||||||
GameScene.add( Blob.seed( cell, 1000, ParalyticGas.class ) );
|
GameScene.add( Blob.seed( cell, 1000, ParalyticGas.class ) );
|
||||||
|
else if (potion instanceof PotionOfLevitation)
|
||||||
|
GameScene.add( Blob.seed( cell, 1000, ConfusionGas.class ) );
|
||||||
|
|
||||||
}
|
}
|
||||||
level.fallingPotions.clear();
|
level.fallingPotions.clear();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user