v0.9.1b: piranha are now vulnerable to electricity and frost
This commit is contained in:
parent
bdfa4351bf
commit
52fe813db0
|
@ -23,7 +23,6 @@ package com.shatteredpixel.shatteredpixeldungeon.actors;
|
|||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Electricity;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Adrenaline;
|
||||
|
@ -786,8 +785,6 @@ public abstract class Char extends Actor {
|
|||
DEMONIC,
|
||||
INORGANIC ( new HashSet<Class>(),
|
||||
new HashSet<Class>( Arrays.asList(Bleeding.class, ToxicGas.class, Poison.class) )),
|
||||
BLOB_IMMUNE ( new HashSet<Class>(),
|
||||
new HashSet<Class>( Arrays.asList(Blob.class) )),
|
||||
FIERY ( new HashSet<Class>( Arrays.asList(WandOfFireblast.class, Elemental.FireElemental.class)),
|
||||
new HashSet<Class>( Arrays.asList(Burning.class, Blazing.class))),
|
||||
ICY ( new HashSet<Class>( Arrays.asList(WandOfFrost.class, Elemental.FrostElemental.class)),
|
||||
|
|
|
@ -25,6 +25,9 @@ import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Electricity;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.BlobImmunity;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.food.MysteryMeat;
|
||||
|
@ -49,8 +52,7 @@ public class Piranha extends Mob {
|
|||
HUNTING = new Hunting();
|
||||
|
||||
state = SLEEPING;
|
||||
|
||||
properties.add(Property.BLOB_IMMUNE);
|
||||
|
||||
}
|
||||
|
||||
public Piranha() {
|
||||
|
@ -144,6 +146,11 @@ public class Piranha extends Mob {
|
|||
}
|
||||
|
||||
{
|
||||
for (Class c : new BlobImmunity().immunities()){
|
||||
if (c != Electricity.class && c != Freezing.class){
|
||||
immunities.add(c);
|
||||
}
|
||||
}
|
||||
immunities.add( Burning.class );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user