show context menu entry only if roads are researched
This commit is contained in:
parent
73c273985f
commit
c31f6bc7dd
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ package com.unciv.logic.map.action
|
|||
import com.badlogic.gdx.graphics.Color
|
||||
import com.unciv.logic.map.BFS
|
||||
import com.unciv.logic.map.MapUnit
|
||||
import com.unciv.logic.map.RoadStatus
|
||||
import com.unciv.logic.map.TileInfo
|
||||
|
||||
class BuildLongRoadAction(
|
||||
|
@ -17,6 +18,7 @@ class BuildLongRoadAction(
|
|||
override fun isAvailable(): Boolean
|
||||
= unit.hasUnique("Can build improvements on tiles")
|
||||
&& getPath(target).isNotEmpty()
|
||||
&& unit.civInfo.tech.getBestRoadAvailable() != RoadStatus.None
|
||||
|
||||
override fun doPreTurnAction() {
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class DesktopLauncher {
|
|||
// This is so they don't look all pixelated
|
||||
settings.filterMag = Texture.TextureFilter.MipMapLinearLinear;
|
||||
settings.filterMin = Texture.TextureFilter.MipMapLinearLinear;
|
||||
TexturePacker.process(settings, "../images", ".", "game");
|
||||
TexturePacker.process(settings, "../Images", ".", "game");
|
||||
|
||||
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
||||
new LwjglApplication(new UnCivGame("Desktop"), config);
|
||||
|
|
Loading…
Reference in a new issue