v0.9.2: fixed newborn fire elemental not dropping embers in rare cases

This commit is contained in:
Evan Debenham 2021-01-22 19:56:22 -05:00
parent c3a4cb4b56
commit 2553f655a9

View File

@ -29,7 +29,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
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.Splash;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfFrost;
@ -209,19 +208,21 @@ public abstract class Elemental extends Mob {
spriteClass = ElementalSprite.NewbornFire.class;
HT = 60;
HP = HT/2; //32
HP = HT/2; //30
defenseSkill = 12;
EXP = 7;
maxLvl = Hero.MAX_LEVEL;
loot = new Embers();
lootChance = 1f;
properties.add(Property.MINIBOSS);
}
@Override
public void die(Object cause) {
super.die(cause);
Dungeon.level.drop( new Embers(), pos ).sprite.drop();
}
@Override
public boolean reset() {
return true;