v0.6.5: balance changes to hero armor plus mind vision

This commit is contained in:
Evan Debenham 2018-05-01 13:16:23 -04:00 committed by Evan Debenham
parent 511a2a78ce
commit cad4ffd62d
2 changed files with 8 additions and 3 deletions

View File

@ -48,7 +48,8 @@ public class HuntressArmor extends ClassArmor {
Item proto = new Shuriken();
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() {
@Override

View File

@ -36,6 +36,7 @@ import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.noosa.audio.Sample;
import com.watabou.utils.PathFinder;
public class RogueArmor extends ClassArmor {
@ -53,8 +54,11 @@ public class RogueArmor extends ClassArmor {
@Override
public void onSelect( Integer target ) {
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]) ||
Actor.findChar( target ) != null) {