V0.2.1c: further sewer quest rebalancing, changed text
This commit is contained in:
parent
2faaa4b865
commit
0ae4285220
|
@ -23,13 +23,12 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||||
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
public class Ooze extends Buff {
|
public class Ooze extends Buff {
|
||||||
|
|
||||||
private static final String TXT_HERO_KILLED = "%s killed you...";
|
private static final String TXT_HERO_KILLED = "%s killed you...";
|
||||||
|
|
||||||
public int damage = 1;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int icon() {
|
public int icon() {
|
||||||
return BuffIndicator.OOZE;
|
return BuffIndicator.OOZE;
|
||||||
|
@ -43,7 +42,10 @@ public class Ooze extends Buff {
|
||||||
@Override
|
@Override
|
||||||
public boolean act() {
|
public boolean act() {
|
||||||
if (target.isAlive()) {
|
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) {
|
if (!target.isAlive() && target == Dungeon.hero) {
|
||||||
Dungeon.fail( Utils.format( ResultDescriptions.OOZE, Dungeon.depth ) );
|
Dungeon.fail( Utils.format( ResultDescriptions.OOZE, Dungeon.depth ) );
|
||||||
GLog.n( TXT_HERO_KILLED, toString() );
|
GLog.n( TXT_HERO_KILLED, toString() );
|
||||||
|
|
|
@ -81,30 +81,33 @@ public class Ghost extends Mob.NPC {
|
||||||
"But I was slain by a foul beast... I can't leave this place... Not until I have my revenge... " +
|
"But I was slain by a foul beast... I can't leave this place... Not until I have my revenge... " +
|
||||||
"Slay the _fetid rat_, that has taken my life...\n\n" +
|
"Slay the _fetid rat_, that has taken my life...\n\n" +
|
||||||
"It stalks this floor... Spreading filth everywhere... " +
|
"It stalks this floor... Spreading filth everywhere... " +
|
||||||
"Beware its cloud of stink and acidic bite... ";
|
"_Beware its cloud of stink and corrosive bite, the acid dissolves in water..._ ";
|
||||||
|
|
||||||
private static final String TXT_RAT2 =
|
private static final String TXT_RAT2 =
|
||||||
"Please... Help me... Slay the abomination...";
|
"Please... Help me... Slay the abomination...\n\n" +
|
||||||
|
"_Fight it near water... Avoid the cloud..._";
|
||||||
|
|
||||||
private static final String TXT_GNOLL1 =
|
private static final String TXT_GNOLL1 =
|
||||||
"Hello adventurer... Once I was like you - strong and confident... " +
|
"Hello adventurer... Once I was like you - strong and confident... " +
|
||||||
"But I was slain by a devious foe... I can't leave this place... Not until I have my revenge... " +
|
"But I was slain by a devious foe... I can't leave this place... Not until I have my revenge... " +
|
||||||
"Slay the _gnoll trickster_, that has taken my life...\n\n" +
|
"Slay the _gnoll trickster_, that has taken my life...\n\n" +
|
||||||
"It is not like the other gnolls... It hides and uses thrown weapons... " +
|
"It is not like the other gnolls... It hides and uses thrown weapons... " +
|
||||||
"Beware its poisonous and incendiary darts... ";
|
"_Beware its poisonous and incendiary darts, don't attack from a distance..._";
|
||||||
|
|
||||||
private static final String TXT_GNOLL2 =
|
private static final String TXT_GNOLL2 =
|
||||||
"Please... Help me... Slay the trickster...";
|
"Please... Help me... Slay the trickster...\n\n" +
|
||||||
|
"_Don't let it hit you.. Get near to it..._";
|
||||||
|
|
||||||
private static final String TXT_CRAB1 =
|
private static final String TXT_CRAB1 =
|
||||||
"Hello adventurer... Once I was like you - strong and confident... " +
|
"Hello adventurer... Once I was like you - strong and confident... " +
|
||||||
"But I was slain by an ancient creature... I can't leave this place... Not until I have my revenge... " +
|
"But I was slain by an ancient creature... I can't leave this place... Not until I have my revenge... " +
|
||||||
"Slay the _great crab_, that has taken my life...\n\n" +
|
"Slay the _great crab_, that has taken my life...\n\n" +
|
||||||
"It is unnaturally old... With a massive single claw and a thick shell... " +
|
"It is unnaturally old... With a massive single claw and a thick shell... " +
|
||||||
"Beware its claw, the crab blocks and strikes with it...";
|
"_Beware its claw, you must surprise the crab or it will block with it..._";
|
||||||
|
|
||||||
private static final String TXT_CRAB2 =
|
private static final String TXT_CRAB2 =
|
||||||
"Please... Help me... Slay the abomination...";
|
"Please... Help me... Slay the Crustacean...\n\n" +
|
||||||
|
"_It will always block... When it sees you coming..._";
|
||||||
|
|
||||||
public Ghost() {
|
public Ghost() {
|
||||||
super();
|
super();
|
||||||
|
@ -404,7 +407,7 @@ public class Ghost extends Mob.NPC {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int attackProc( Char enemy, int damage ) {
|
public int attackProc( Char enemy, int damage ) {
|
||||||
if (Random.Int( 4 ) == 0) {
|
if (Random.Int( 3 ) == 0) {
|
||||||
Buff.affect(enemy, Ooze.class);
|
Buff.affect(enemy, Ooze.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -552,7 +555,7 @@ public class Ghost extends Mob.NPC {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean getCloser( int target ) {
|
protected boolean getCloser( int target ) {
|
||||||
//this is used such that the crab remains slow, but still detects the player at the expected rate.
|
//this is used so that the crab remains slow, but still detects the player at the expected rate.
|
||||||
if (moving) {
|
if (moving) {
|
||||||
moving = false;
|
moving = false;
|
||||||
return super.getCloser( target );
|
return super.getCloser( target );
|
||||||
|
@ -568,7 +571,7 @@ public class Ghost extends Mob.NPC {
|
||||||
//crab blocks all attacks originating from the hero or enemy characters or traps if it is alerted.
|
//crab blocks all attacks originating from the hero or enemy characters or traps if it is alerted.
|
||||||
//All direct damage from these sources is negated, no exceptions. blob/debuff effects go through as normal.
|
//All direct damage from these sources is negated, no exceptions. blob/debuff effects go through as normal.
|
||||||
if (enemySeen && (src instanceof Wand || src instanceof LightningTrap.Electricity || src instanceof Char)){
|
if (enemySeen && (src instanceof Wand || src instanceof LightningTrap.Electricity || src instanceof Char)){
|
||||||
GLog.w("The crab notices the attack and blocks with its massive claw.");
|
GLog.n("The crab notices the attack and blocks with its massive claw.");
|
||||||
sprite.showStatus( CharSprite.NEUTRAL, "blocked" );
|
sprite.showStatus( CharSprite.NEUTRAL, "blocked" );
|
||||||
} else {
|
} else {
|
||||||
super.damage( dmg, src );
|
super.damage( dmg, src );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user