v0.7.5: cleaned up some todos

This commit is contained in:
Evan Debenham 2019-09-25 14:12:15 -04:00
parent f309f249e0
commit f2f976c36b
7 changed files with 6 additions and 12 deletions

View File

@ -77,8 +77,7 @@ public class Electricity extends Blob {
ch.damage(Math.round(Random.Float(2 + Dungeon.depth / 5f)), this);
if (!ch.isAlive() && ch == Dungeon.hero){
Dungeon.fail( getClass() );
//FIXME add other languages in next update
if (SPDSettings.language() == Languages.ENGLISH) GLog.n( Messages.get(this, "ondeath") );
GLog.n( Messages.get(this, "ondeath") );
}
}
}

View File

@ -1306,9 +1306,11 @@ public class Hero extends Char {
if (levelUp) {
GLog.p( Messages.get(this, "new_level"), lvl );
sprite.showStatus( CharSprite.POSITIVE, Messages.get(Hero.class, "level_up") );
Sample.INSTANCE.play( Assets.SND_LEVELUP );
if (sprite != null) {
GLog.p( Messages.get(this, "new_level"), lvl );
sprite.showStatus( CharSprite.POSITIVE, Messages.get(Hero.class, "level_up") );
Sample.INSTANCE.play( Assets.SND_LEVELUP );
}
Item.updateQuickslot();

View File

@ -104,7 +104,6 @@ public abstract class Recipe {
int[] needed = inQuantity.clone();
//TODO is this right?
for (Item ingredient : ingredients){
if (!ingredient.isIdentified()) return false;
for (int i = 0; i < inputs.length; i++){

View File

@ -69,7 +69,6 @@ public class RingOfElements extends Ring {
return new Resistance();
}
//FIXME probably should add wands here
public static final HashSet<Class> RESISTS = new HashSet<>();
static {
RESISTS.add( Burning.class );

View File

@ -55,7 +55,6 @@ public class SewerBossLevel extends SewerLevel {
protected ArrayList<Room> initRooms() {
ArrayList<Room> initRooms = new ArrayList<>();
//TODO it would be nice for these rooms to have some custom tile visuals
initRooms.add( roomEntrance = new SewerBossEntranceRoom() );
initRooms.add( roomExit = new SewerBossExitRoom() );
@ -67,7 +66,6 @@ public class SewerBossLevel extends SewerLevel {
initRooms.add(s);
}
//TODO need to improve the visual appearance of goo's nest
GooBossRoom gooRoom = GooBossRoom.randomGooRoom();
initRooms.add(gooRoom);
((FigureEightBuilder)builder).setLandmarkRoom(gooRoom);

View File

@ -57,7 +57,6 @@ public abstract class GooBossRoom extends StandardRoom {
level.customTiles.add(nest);
}
//TODO no texturing on this atm
public static class GooNest extends CustomTilemap {
{

View File

@ -74,8 +74,6 @@ public final class ShadowCaster {
}
//TODO this is slightly less permissive that the previous algorithm, decide if that's okay
//scans a single 45 degree octant of the FOV.
//This can add up to a whole FOV by mirroring in X(mX), Y(mY), and X=Y(mXY)
private static void scanOctant(int distance, boolean[] fov, boolean[] blocking, int row,