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); ch.damage(Math.round(Random.Float(2 + Dungeon.depth / 5f)), this);
if (!ch.isAlive() && ch == Dungeon.hero){ if (!ch.isAlive() && ch == Dungeon.hero){
Dungeon.fail( getClass() ); Dungeon.fail( getClass() );
//FIXME add other languages in next update GLog.n( Messages.get(this, "ondeath") );
if (SPDSettings.language() == Languages.ENGLISH) GLog.n( Messages.get(this, "ondeath") );
} }
} }
} }

View File

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

View File

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

View File

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

View File

@ -55,7 +55,6 @@ public class SewerBossLevel extends SewerLevel {
protected ArrayList<Room> initRooms() { protected ArrayList<Room> initRooms() {
ArrayList<Room> initRooms = new ArrayList<>(); 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( roomEntrance = new SewerBossEntranceRoom() );
initRooms.add( roomExit = new SewerBossExitRoom() ); initRooms.add( roomExit = new SewerBossExitRoom() );
@ -67,7 +66,6 @@ public class SewerBossLevel extends SewerLevel {
initRooms.add(s); initRooms.add(s);
} }
//TODO need to improve the visual appearance of goo's nest
GooBossRoom gooRoom = GooBossRoom.randomGooRoom(); GooBossRoom gooRoom = GooBossRoom.randomGooRoom();
initRooms.add(gooRoom); initRooms.add(gooRoom);
((FigureEightBuilder)builder).setLandmarkRoom(gooRoom); ((FigureEightBuilder)builder).setLandmarkRoom(gooRoom);

View File

@ -57,7 +57,6 @@ public abstract class GooBossRoom extends StandardRoom {
level.customTiles.add(nest); level.customTiles.add(nest);
} }
//TODO no texturing on this atm
public static class GooNest extends CustomTilemap { 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. //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) //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, private static void scanOctant(int distance, boolean[] fov, boolean[] blocking, int row,