Observatory now available with astronomy
Wealth and science production fixed to 4:1 Wonder bug fixed
This commit is contained in:
parent
0715f4b855
commit
761b62038f
5 changed files with 7 additions and 14 deletions
|
@ -226,7 +226,7 @@
|
|||
hurryCostModifier:25,
|
||||
percentStatBonus:{science:50},
|
||||
requiredBuilding:"Library",
|
||||
requiredTech:"Metal Casting"
|
||||
requiredTech:"Astronomy"
|
||||
},
|
||||
{
|
||||
name:"Opera House",
|
||||
|
|
|
@ -21,7 +21,7 @@ android {
|
|||
applicationId "com.unciv.game"
|
||||
minSdkVersion 9
|
||||
targetSdkVersion 25
|
||||
versionCode 9
|
||||
versionCode 10
|
||||
versionName "0.9"
|
||||
}
|
||||
buildTypes {
|
||||
|
|
|
@ -33,7 +33,7 @@ public class CityBuildings
|
|||
|
||||
public CityInfo getCity(){return UnCivGame.Current.civInfo.tileMap.get(cityLocation).getCity(); }
|
||||
public boolean isBuilt(String buildingName) { return builtBuildings.contains(buildingName); }
|
||||
public boolean isBuilding(String buildingName) { return currentBuilding.equals(buildingName); }
|
||||
public boolean isBuilding(String buildingName) { return currentBuilding!=null && currentBuilding.equals(buildingName); }
|
||||
|
||||
Building getGameBuilding(String buildingName) { return GameBasics.Buildings.get(buildingName); }
|
||||
public LinqCollection<Building> getBuiltBuildings(){ return builtBuildings.select(new LinqCollection.Func<String, Building>() {
|
||||
|
@ -46,8 +46,8 @@ public class CityBuildings
|
|||
public void nextTurn(FullStats cityStats)
|
||||
{
|
||||
if (currentBuilding == null) return;
|
||||
if(currentBuilding.equals("Gold")) {cityStats.gold+=cityStats.production/3; return;}
|
||||
if(currentBuilding.equals("Science")) {cityStats.science+=cityStats.production/3; return;}
|
||||
if(currentBuilding.equals("Gold")) {cityStats.gold+=cityStats.production/4; return;}
|
||||
if(currentBuilding.equals("Science")) {cityStats.science+=cityStats.production/4; return;}
|
||||
|
||||
|
||||
Building gameBuilding = getGameBuilding(currentBuilding);
|
||||
|
|
|
@ -462,9 +462,6 @@ public class WorldScreen extends com.unciv.game.utils.CameraStageBaseScreen {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void setCenterPosition(final Vector2 vector){
|
||||
TileGroup TG = tileGroups.linqValues().first(new Predicate<WorldTileGroup>() {
|
||||
@Override
|
||||
|
@ -480,10 +477,6 @@ public class WorldScreen extends com.unciv.game.utils.CameraStageBaseScreen {
|
|||
scrollPane.updateVisualScroll();
|
||||
}
|
||||
|
||||
float round(float value, int scale){
|
||||
return (float) (Math.round(value * Math.pow(10, scale)) / Math.pow(10, scale));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,11 +72,11 @@ public class BuildingPickerScreen extends PickerScreen {
|
|||
|
||||
if(game.civInfo.tech.isResearched("Education"))
|
||||
specials.addActor(getProductionButton("Science","Produce Science",
|
||||
"Convert production to science at a rate of 3 to 1", "Produce Science"));
|
||||
"Convert production to science at a rate of 4 to 1", "Produce Science"));
|
||||
|
||||
if(game.civInfo.tech.isResearched("Currency"))
|
||||
specials.addActor(getProductionButton("Gold","Produce Gold",
|
||||
"Convert production to gold at a rate of 3 to 1", "Produce Gold"));
|
||||
"Convert production to gold at a rate of 4 to 1", "Produce Gold"));
|
||||
|
||||
topTable.add(regularBuildings);
|
||||
topTable.add(wonders);
|
||||
|
|
Loading…
Reference in a new issue