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