v0.9.2: fixed newborn fire elemental not dropping embers in rare cases
This commit is contained in:
parent
c3a4cb4b56
commit
2553f655a9
|
@ -29,7 +29,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Lightning;
|
import com.shatteredpixel.shatteredpixeldungeon.effects.Lightning;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfFrost;
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfFrost;
|
||||||
|
@ -209,19 +208,21 @@ public abstract class Elemental extends Mob {
|
||||||
spriteClass = ElementalSprite.NewbornFire.class;
|
spriteClass = ElementalSprite.NewbornFire.class;
|
||||||
|
|
||||||
HT = 60;
|
HT = 60;
|
||||||
HP = HT/2; //32
|
HP = HT/2; //30
|
||||||
|
|
||||||
defenseSkill = 12;
|
defenseSkill = 12;
|
||||||
|
|
||||||
EXP = 7;
|
EXP = 7;
|
||||||
maxLvl = Hero.MAX_LEVEL;
|
|
||||||
|
|
||||||
loot = new Embers();
|
|
||||||
lootChance = 1f;
|
|
||||||
|
|
||||||
properties.add(Property.MINIBOSS);
|
properties.add(Property.MINIBOSS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void die(Object cause) {
|
||||||
|
super.die(cause);
|
||||||
|
Dungeon.level.drop( new Embers(), pos ).sprite.drop();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean reset() {
|
public boolean reset() {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user