v0.6.0: increased visibility granted by light buff

This commit is contained in:
Evan Debenham 2017-05-12 14:32:24 -04:00
parent 4e34b98c8d
commit 94a2f27471
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
public class Light extends FlavourBuff {
public static final float DURATION = 250f;
public static final int DISTANCE = 4;
public static final int DISTANCE = 6;
@Override
public boolean attachTo( Char target ) {

View File

@ -117,7 +117,7 @@ public abstract class Level implements Bundlable {
public boolean[] visited;
public boolean[] mapped;
public int viewDistance = Dungeon.isChallenged( Challenges.DARKNESS ) ? 3: 8;
public int viewDistance = Dungeon.isChallenged( Challenges.DARKNESS ) ? 4 : 8;
//FIXME should not be static!
public static boolean[] fieldOfView;
@ -232,7 +232,7 @@ public abstract class Level implements Bundlable {
case 3:
feeling = Feeling.DARK;
addItemToSpawn(new Torch());
viewDistance = (int)Math.ceil(viewDistance/3f);
viewDistance = Math.round(viewDistance/2f);
break;
}
}
@ -408,7 +408,7 @@ public abstract class Level implements Bundlable {
feeling = bundle.getEnum( FEELING, Feeling.class );
if (feeling == Feeling.DARK)
viewDistance = (int)Math.ceil(viewDistance/3f);
viewDistance = Math.round(viewDistance/2f);
buildFlagMaps();
cleanWalls();