v0.6.0: increased visibility granted by light buff
This commit is contained in:
parent
4e34b98c8d
commit
94a2f27471
|
@ -30,7 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||||
public class Light extends FlavourBuff {
|
public class Light extends FlavourBuff {
|
||||||
|
|
||||||
public static final float DURATION = 250f;
|
public static final float DURATION = 250f;
|
||||||
public static final int DISTANCE = 4;
|
public static final int DISTANCE = 6;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean attachTo( Char target ) {
|
public boolean attachTo( Char target ) {
|
||||||
|
|
|
@ -117,7 +117,7 @@ public abstract class Level implements Bundlable {
|
||||||
public boolean[] visited;
|
public boolean[] visited;
|
||||||
public boolean[] mapped;
|
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!
|
//FIXME should not be static!
|
||||||
public static boolean[] fieldOfView;
|
public static boolean[] fieldOfView;
|
||||||
|
@ -232,7 +232,7 @@ public abstract class Level implements Bundlable {
|
||||||
case 3:
|
case 3:
|
||||||
feeling = Feeling.DARK;
|
feeling = Feeling.DARK;
|
||||||
addItemToSpawn(new Torch());
|
addItemToSpawn(new Torch());
|
||||||
viewDistance = (int)Math.ceil(viewDistance/3f);
|
viewDistance = Math.round(viewDistance/2f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -408,7 +408,7 @@ public abstract class Level implements Bundlable {
|
||||||
|
|
||||||
feeling = bundle.getEnum( FEELING, Feeling.class );
|
feeling = bundle.getEnum( FEELING, Feeling.class );
|
||||||
if (feeling == Feeling.DARK)
|
if (feeling == Feeling.DARK)
|
||||||
viewDistance = (int)Math.ceil(viewDistance/3f);
|
viewDistance = Math.round(viewDistance/2f);
|
||||||
|
|
||||||
buildFlagMaps();
|
buildFlagMaps();
|
||||||
cleanWalls();
|
cleanWalls();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user