v2.2.0: removed redundant rendering of grass from terrain features
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 11 KiB |
-14
@@ -23,8 +23,6 @@ package com.shatteredpixel.shatteredpixeldungeon.tiles;
|
|||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.LastShopLevel;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.Trap;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.Trap;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
||||||
import com.watabou.noosa.Image;
|
import com.watabou.noosa.Image;
|
||||||
@@ -64,18 +62,6 @@ public class TerrainFeaturesTilemap extends DungeonTilemap {
|
|||||||
return plants.get(pos).image + 7*16;
|
return plants.get(pos).image + 7*16;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stage = (Dungeon.depth-1)/5;
|
|
||||||
if (Dungeon.depth == 21 && Dungeon.level instanceof LastShopLevel) stage--;
|
|
||||||
if (tile == Terrain.HIGH_GRASS){
|
|
||||||
return 9 + 16*stage + (DungeonTileSheet.tileVariance[pos] >= 50 ? 1 : 0);
|
|
||||||
} else if (tile == Terrain.FURROWED_GRASS){
|
|
||||||
return 11 + 16*stage + (DungeonTileSheet.tileVariance[pos] >= 50 ? 1 : 0);
|
|
||||||
} else if (tile == Terrain.GRASS) {
|
|
||||||
return 13 + 16*stage + (DungeonTileSheet.tileVariance[pos] >= 50 ? 1 : 0);
|
|
||||||
} else if (tile == Terrain.EMBERS) {
|
|
||||||
return 9 * (16*5) + (DungeonTileSheet.tileVariance[pos] >= 50 ? 1 : 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user