From 3d19573f669314ed57a0662f8cae02cc0dc93cf9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 9 Oct 2014 00:16:42 -0400 Subject: [PATCH] V0.2.1 : Corrected errors in new Stench blob. --- .../shatteredpixeldungeon/actors/blobs/StenchGas.java | 1 - .../shatteredpixeldungeon/effects/Speck.java | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/StenchGas.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/StenchGas.java index dda765fd2..76ca1900a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/StenchGas.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/StenchGas.java @@ -37,5 +37,4 @@ public class StenchGas extends Blob { public String tileDesc() { return "A cloud of fetid stench is swirling here."; } -} { } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/effects/Speck.java b/src/com/shatteredpixel/shatteredpixeldungeon/effects/Speck.java index 7a5a651bb..736a1ca6a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/effects/Speck.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/effects/Speck.java @@ -101,7 +101,7 @@ public class Speck extends Image { case TOXIC: case PARALYSIS: case DUST: - case STINK: + case STENCH: frame( film.get( STEAM ) ); break; default: @@ -283,7 +283,7 @@ public class Speck extends Image { break; case STENCH: - hardlight( 0x383825 ); + hardlight( 0x002200 ); angularSpeed = -30; angle = Random.Float( 360 ); lifespan = Random.Float( 1f, 3f ); @@ -393,6 +393,11 @@ public class Speck extends Image { am = p < 0.5f ? p : 1 - p; scale.set( 1 + p * 2 ); break; + + case STENCH: + am = (p < 0.5f ? p : 1 - p) * 2; + scale.set( 1 + p * 2 ); + break; case JET: am = (p < 0.5f ? p : 1 - p) * 2;