v0.6.5: balance changes to hero armor plus mind vision
This commit is contained in:
parent
511a2a78ce
commit
cad4ffd62d
|
@ -48,7 +48,8 @@ public class HuntressArmor extends ClassArmor {
|
||||||
Item proto = new Shuriken();
|
Item proto = new Shuriken();
|
||||||
|
|
||||||
for (Mob mob : Dungeon.level.mobs) {
|
for (Mob mob : Dungeon.level.mobs) {
|
||||||
if (Dungeon.level.heroFOV[mob.pos]) {
|
if (Dungeon.level.distance(curUser.pos, mob.pos) <= 12
|
||||||
|
&& Dungeon.level.heroFOV[mob.pos]) {
|
||||||
|
|
||||||
Callback callback = new Callback() {
|
Callback callback = new Callback() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -36,6 +36,7 @@ import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||||
import com.watabou.noosa.audio.Sample;
|
import com.watabou.noosa.audio.Sample;
|
||||||
|
import com.watabou.utils.PathFinder;
|
||||||
|
|
||||||
public class RogueArmor extends ClassArmor {
|
public class RogueArmor extends ClassArmor {
|
||||||
|
|
||||||
|
@ -53,8 +54,11 @@ public class RogueArmor extends ClassArmor {
|
||||||
@Override
|
@Override
|
||||||
public void onSelect( Integer target ) {
|
public void onSelect( Integer target ) {
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
|
|
||||||
if (!Dungeon.level.heroFOV[target] ||
|
PathFinder.buildDistanceMap(curUser.pos, Dungeon.level.passable, 8);
|
||||||
|
|
||||||
|
if ( PathFinder.distance[target] == Integer.MAX_VALUE ||
|
||||||
|
!Dungeon.level.heroFOV[target] ||
|
||||||
!(Dungeon.level.passable[target] || Dungeon.level.avoid[target]) ||
|
!(Dungeon.level.passable[target] || Dungeon.level.avoid[target]) ||
|
||||||
Actor.findChar( target ) != null) {
|
Actor.findChar( target ) != null) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user