v2.4.0: geyser traps (and aqua brew) now directly extinguish
This commit is contained in:
+8
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.wands.WandOfBlastWave;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
|
||||
@@ -83,6 +84,10 @@ public class GeyserTrap extends Trap {
|
||||
}
|
||||
|
||||
if (ch.isAlive()) {
|
||||
if (ch.buff(Burning.class) != null){
|
||||
ch.buff(Burning.class).detach();
|
||||
}
|
||||
|
||||
//trace a ballistica to our target (which will also extend past them)
|
||||
Ballistica trajectory = new Ballistica(pos, ch.pos, Ballistica.STOP_TARGET);
|
||||
//trim it to just be the part that goes past them
|
||||
@@ -124,6 +129,9 @@ public class GeyserTrap extends Trap {
|
||||
}
|
||||
|
||||
if (ch.isAlive() && targetpos != -1){
|
||||
if (ch.buff(Burning.class) != null){
|
||||
ch.buff(Burning.class).detach();
|
||||
}
|
||||
//trace a ballistica in the direction of our target
|
||||
Ballistica trajectory = new Ballistica(pos, targetpos, Ballistica.MAGIC_BOLT);
|
||||
//knock them back along that ballistica
|
||||
|
||||
Reference in New Issue
Block a user