v0.3.2: lotsa quest polish
This commit is contained in:
@@ -28,6 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Cripple;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.RotLasherSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
import java.util.HashSet;
|
||||
@@ -39,12 +40,14 @@ public class RotLasher extends Mob {
|
||||
spriteClass = RotLasherSprite.class;
|
||||
|
||||
HP = HT = 40;
|
||||
defenseSkill = 4;
|
||||
defenseSkill = 0;
|
||||
|
||||
EXP = 1;
|
||||
|
||||
loot = Generator.Category.SEED;
|
||||
lootChance = 1f;
|
||||
|
||||
state = WANDERING;
|
||||
state = WANDERING = new Waiting();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -70,6 +73,11 @@ public class RotLasher extends Mob {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean getFurther(int target) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageRoll() {
|
||||
return Random.NormalIntRange(4, 12);
|
||||
@@ -88,10 +96,12 @@ public class RotLasher extends Mob {
|
||||
@Override
|
||||
public String description() {
|
||||
return
|
||||
"lasher";
|
||||
"The rot lasher is a part of a mature rotberry plant's root structure, and also their primary means of defence. " +
|
||||
"Lashers are stuck into the ground, but will violently assault anything that gets near to them. " +
|
||||
"When there is no nearby prey, they stand motionless, attempting to blend in with surrounding vegetation.";
|
||||
}
|
||||
|
||||
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<Class<?>>();
|
||||
private static final HashSet<Class<?>> IMMUNITIES = new HashSet<>();
|
||||
static {
|
||||
IMMUNITIES.add( ToxicGas.class );
|
||||
}
|
||||
@@ -101,4 +111,10 @@ public class RotLasher extends Mob {
|
||||
return IMMUNITIES;
|
||||
}
|
||||
|
||||
private class Waiting extends Mob.Wandering{
|
||||
@Override
|
||||
public String status() {
|
||||
return Utils.format("This %s is idle", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user