v0.8.2c: fixed visual errors caused by terror, and made eyes not immune
This commit is contained in:
parent
f8aebee09b
commit
fc99ba31e3
|
@ -25,7 +25,6 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Terror;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.PurpleParticle;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Dewdrop;
|
||||
|
@ -104,6 +103,7 @@ public class Eye extends Mob {
|
|||
protected boolean act() {
|
||||
if (beamCharged && state != HUNTING){
|
||||
beamCharged = false;
|
||||
sprite.idle();
|
||||
}
|
||||
if (beam == null && beamTarget != -1) {
|
||||
beam = new Ballistica(pos, beamTarget, Ballistica.STOP_TERRAIN);
|
||||
|
@ -243,7 +243,7 @@ public class Eye extends Mob {
|
|||
}
|
||||
|
||||
{
|
||||
immunities.add( Terror.class );
|
||||
//immunities.add( Terror.class );
|
||||
}
|
||||
|
||||
private class Hunting extends Mob.Hunting{
|
||||
|
|
|
@ -72,6 +72,15 @@ public class Necromancer extends Mob {
|
|||
private NecroSkeleton mySkeleton;
|
||||
private int storedSkeletonID = -1;
|
||||
|
||||
@Override
|
||||
protected boolean act() {
|
||||
if (summoning && state != HUNTING){
|
||||
summoning = false;
|
||||
updateSpriteState();
|
||||
}
|
||||
return super.act();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateSpriteState() {
|
||||
super.updateSpriteState();
|
||||
|
@ -80,6 +89,9 @@ public class Necromancer extends Mob {
|
|||
summoningEmitter = CellEmitter.get( summoningPos );
|
||||
summoningEmitter.pour(Speck.factory(Speck.RATTLE), 0.2f);
|
||||
sprite.zap( summoningPos );
|
||||
} else if (!summoning && summoningEmitter != null){
|
||||
summoningEmitter.on = false;
|
||||
summoningEmitter = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,7 +127,7 @@ public class Necromancer extends Mob {
|
|||
}
|
||||
|
||||
if (summoningEmitter != null){
|
||||
summoningEmitter.killAndErase();
|
||||
summoningEmitter.on = false;
|
||||
summoningEmitter = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user