V0.2.1c: further sewer quest rebalancing, changed text

This commit is contained in:
Evan Debenham
2014-10-20 16:59:02 -04:00
parent 2faaa4b865
commit 0ae4285220
2 changed files with 17 additions and 12 deletions
@@ -23,13 +23,12 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
import com.watabou.utils.Random;
public class Ooze extends Buff {
private static final String TXT_HERO_KILLED = "%s killed you...";
public int damage = 1;
@Override
public int icon() {
return BuffIndicator.OOZE;
@@ -43,7 +42,10 @@ public class Ooze extends Buff {
@Override
public boolean act() {
if (target.isAlive()) {
target.damage( damage, this );
if (Dungeon.depth > 4)
target.damage( Dungeon.depth/5, this );
else if (Random.Int(2) == 0)
target.damage( 1, this );
if (!target.isAlive() && target == Dungeon.hero) {
Dungeon.fail( Utils.format( ResultDescriptions.OOZE, Dungeon.depth ) );
GLog.n( TXT_HERO_KILLED, toString() );