v0.3.2b: fixed a bug where prison quest enemies would rarely not drop quest items.

This commit is contained in:
Evan Debenham 2015-11-07 20:18:51 -05:00
parent 47aa30c830
commit 318df64246
2 changed files with 14 additions and 6 deletions

View File

@ -20,6 +20,7 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.actors.mobs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost;
@ -39,8 +40,6 @@ public class NewbornElemental extends Elemental {
EXP = 7;
loot = new Embers();
lootChance = 1f;
}
@Override
@ -57,6 +56,12 @@ public class NewbornElemental extends Elemental {
}
}
@Override
public void die(Object cause) {
super.die(cause);
Dungeon.level.drop( new Embers(), pos ).sprite.drop();
}
@Override
public String description() {
return "Fire elementals are a byproduct of summoning greater entities. " +

View File

@ -42,9 +42,6 @@ public class RotHeart extends Mob {
EXP = 4;
loot = Wandmaker.Rotberry.Seed.class;
lootChance = 1f;
state = PASSIVE;
}
@ -74,13 +71,19 @@ public class RotHeart extends Mob {
@Override
public void destroy() {
super.destroy();
for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )){
for (Mob mob : Dungeon.level.mobs.toArray(new Mob[Dungeon.level.mobs.size()])){
if (mob instanceof RotLasher){
mob.die(null);
}
}
}
@Override
public void die(Object cause) {
super.die(cause);
Dungeon.level.drop( new Wandmaker.Rotberry.Seed(), pos ).sprite.drop();
}
@Override
public int damageRoll() {
return 0;