v0.6.5: corrected various chasm visual bugs
This commit is contained in:
committed by
Evan Debenham
parent
9c43207e07
commit
5056176c57
+3
-5
@@ -76,7 +76,6 @@ public class Chasm {
|
|||||||
|
|
||||||
if (Dungeon.hero.isAlive()) {
|
if (Dungeon.hero.isAlive()) {
|
||||||
Dungeon.hero.interrupt();
|
Dungeon.hero.interrupt();
|
||||||
Buff.affect(Dungeon.hero, Falling.class);
|
|
||||||
InterlevelScene.mode = InterlevelScene.Mode.FALL;
|
InterlevelScene.mode = InterlevelScene.Mode.FALL;
|
||||||
if (Dungeon.level instanceof RegularLevel) {
|
if (Dungeon.level instanceof RegularLevel) {
|
||||||
Room room = ((RegularLevel)Dungeon.level).room( pos );
|
Room room = ((RegularLevel)Dungeon.level).room( pos );
|
||||||
@@ -94,8 +93,7 @@ public class Chasm {
|
|||||||
|
|
||||||
Hero hero = Dungeon.hero;
|
Hero hero = Dungeon.hero;
|
||||||
|
|
||||||
hero.sprite.burst( hero.sprite.blood(), 10 );
|
Camera.main.shake( 4, 1f );
|
||||||
Camera.main.shake( 4, 0.2f );
|
|
||||||
|
|
||||||
Dungeon.level.press( hero.pos, hero, true );
|
Dungeon.level.press( hero.pos, hero, true );
|
||||||
Buff.prolong( hero, Cripple.class, Cripple.DURATION );
|
Buff.prolong( hero, Cripple.class, Cripple.DURATION );
|
||||||
@@ -120,7 +118,7 @@ public class Chasm {
|
|||||||
((MobSprite)mob.sprite).fall();
|
((MobSprite)mob.sprite).fall();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Falling extends Buff{
|
public static class Falling extends Buff {
|
||||||
|
|
||||||
{
|
{
|
||||||
actPriority = VFX_PRIO;
|
actPriority = VFX_PRIO;
|
||||||
@@ -134,7 +132,7 @@ public class Chasm {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class FallBleed extends Bleeding implements Hero.Doom{
|
public static class FallBleed extends Bleeding implements Hero.Doom {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDeath() {
|
public void onDeath() {
|
||||||
|
|||||||
+3
@@ -27,8 +27,10 @@ import com.shatteredpixel.shatteredpixeldungeon.GamesInProgress;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.DriedRose;
|
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.DriedRose;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.levels.features.Chasm;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special.SpecialRoom;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special.SpecialRoom;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ui.GameLog;
|
import com.shatteredpixel.shatteredpixeldungeon.ui.GameLog;
|
||||||
@@ -335,6 +337,7 @@ public class InterlevelScene extends PixelScene {
|
|||||||
Actor.fixTime();
|
Actor.fixTime();
|
||||||
DriedRose.holdGhostHero( Dungeon.level );
|
DriedRose.holdGhostHero( Dungeon.level );
|
||||||
|
|
||||||
|
Buff.affect( Dungeon.hero, Chasm.Falling.class );
|
||||||
Dungeon.saveAll();
|
Dungeon.saveAll();
|
||||||
|
|
||||||
Level level;
|
Level level;
|
||||||
|
|||||||
@@ -87,7 +87,10 @@ public class HeroSprite extends CharSprite {
|
|||||||
read = new Animation( 20, false );
|
read = new Animation( 20, false );
|
||||||
read.frames( film, 19, 20, 20, 20, 20, 20, 20, 20, 20, 19 );
|
read.frames( film, 19, 20, 20, 20, 20, 20, 20, 20, 20, 19 );
|
||||||
|
|
||||||
|
if (ch.isAlive())
|
||||||
idle();
|
idle();
|
||||||
|
else
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user