Moar techtree overhaul

This commit is contained in:
Yair Morgenstern 2017-12-21 15:31:01 +02:00
parent 14c75d7cc4
commit 5088b6a83f
6 changed files with 82 additions and 91 deletions

View File

@ -434,7 +434,7 @@
culture:5, culture:5,
isWonder:true, isWonder:true,
unique:"PolicyCostReduction", unique:"PolicyCostReduction",
requiredTech:"Plastics" requiredTech:"Flight"
}, },
{ {
name:"Broadcast Tower", name:"Broadcast Tower",

View File

@ -30,12 +30,12 @@
buildingCost:75, buildingCost:75,
wonderCost:185, wonderCost:185,
techs:[ techs:[
{ /*{
name:"Sailing", name:"Sailing",
row:1, row:1,
prerequisites:["Pottery"], prerequisites:["Pottery"],
description:"Does nothing since we have no sea tiles - In theory, Allows access to sea resources by building work boats" description:"Does nothing since we have no sea tiles - In theory, Allows access to sea resources by building work boats"
}, },*/
{ {
name:"Calendar", name:"Calendar",
row:2, row:2,
@ -81,13 +81,13 @@
buildingCost:100, buildingCost:100,
wonderCost:250, wonderCost:250,
techs:[ techs:[
{ /*{
name:"Optics", name:"Optics",
cost:95, cost:95,
row:1, row:1,
prerequisites:["Sailing"], prerequisites:["Sailing"],
description:"Does nothing since we have no sea tiles - In theory, Allows construction of lighthouses, providing more food for sea tiles" description:"Does nothing since we have no sea tiles - In theory, Allows construction of lighthouses, providing more food for sea tiles"
}, },*/
{ {
name:"Horseback Riding", name:"Horseback Riding",
row:5, row:5,
@ -175,13 +175,13 @@
buildingCost:200, buildingCost:200,
wonderCost:500, wonderCost:500,
techs:[ techs:[
{ /*{
name:"Compass", name:"Compass",
row:1, row:1,
cost:415, cost:415,
prerequisites:["Optics"], prerequisites:["Optics"],
description:"Does nothing since we have no sea tiles - In theory, allows construction of harbors" description:"Does nothing since we have no sea tiles - In theory, allows construction of harbors"
}, },*/
{ {
name:"Education", name:"Education",
row:3, row:3,
@ -218,7 +218,7 @@
{ {
name:"Astronomy", name:"Astronomy",
row:2, row:2,
prerequisites:["Compass","Education"], prerequisites:[/*"Compass",*/"Education"],
description:"Enables construction of Observatories in cities near mountains" description:"Enables construction of Observatories in cities near mountains"
}, },
{ {
@ -248,11 +248,17 @@
buildingCost:300, buildingCost:300,
wonderCost:750, wonderCost:750,
techs:[ techs:[
{ /*{
name:"Navigation", name:"Navigation",
row:2, row:2,
prerequisites:["Astronomy"], prerequisites:["Astronomy"],
description:"Does nothing since we have no sea tiles - In theory, allows construction of Frigates and Seaports" description:"Does nothing since we have no sea tiles - In theory, allows construction of Frigates and Seaports"
},*/
{
name:"Archaeology",
row:2,
prerequisites:["Astronomy"],
description:"Allows construction of Museums and the Hermitage and Louvre wonders, providing culture"
}, },
{ {
name:"Economics", name:"Economics",
@ -275,21 +281,15 @@
buildingCost:360, buildingCost:360,
wonderCost:920, wonderCost:920,
techs:[ techs:[
{
name:"Archaeology",
row:2,
prerequisites:["Navigation"],
description:"Allows construction of Museums and the Hermitage and Louvre wonders, providing culture"
},
{ {
name:"Scientific Theory", name:"Scientific Theory",
row:4, row:4,
prerequisites:["Navigation","Acoustics","Economics"], prerequisites:["Archaeology","Acoustics","Economics"],
description:"Reveals coal and allows construction of Public Schools, providing science" description:"Reveals coal and allows construction of Public Schools, providing science"
}, },
{ {
name:"Fertilizer", name:"Fertilizer",
row:9, row:7,
prerequisites:["Chemistry"], prerequisites:["Chemistry"],
description:"+1 food from Farms, Plantations and Pastures" description:"+1 food from Farms, Plantations and Pastures"
} }
@ -304,8 +304,8 @@
techs:[ techs:[
{ {
name:"Biology", name:"Biology",
row:4, row:3,
prerequisites:["Archaeology","Scientific Theory"], prerequisites:["Archaeology","Scientific Theory","Fertilizer"],
description:"Reveals oil and allows construction of oil wells, and construction of hospitals, providing a large amount of food" description:"Reveals oil and allows construction of oil wells, and construction of hospitals, providing a large amount of food"
}, },
{ {
@ -316,15 +316,9 @@
}, },
{ {
name:"Steam Power", name:"Steam Power",
row:6, row:7,
prerequisites:["Scientific Theory"], prerequisites:["Scientific Theory","Chemistry"],
description:"Enables construction of factories, boosting production, and increases produciton of lumber mills, " description:"Enables construction of factories, boosting production, and increases produciton of lumber mills, "
},
{
name:"Dynamite",
row:9,
prerequisites:["Fertilizer"],
description:"Contributes only war-relatied things - on hold until AI is introduced"
} }
] ]
}, },
@ -337,7 +331,7 @@
techs:[ techs:[
{ {
name:"Refrigeration", name:"Refrigeration",
row:2, row:4,
prerequisites:["Electricity"], prerequisites:["Electricity"],
description:"Does nothing since we have no sea tiles - In theory, allows construction of offshore platforms and submarines" description:"Does nothing since we have no sea tiles - In theory, allows construction of offshore platforms and submarines"
}, },
@ -348,15 +342,9 @@
description:"Allows construction of broadcast towers and the Eiffel Tower, increasing culture" description:"Allows construction of broadcast towers and the Eiffel Tower, increasing culture"
}, },
{ {
name:"Flight", name:"Combustion",
row:6,
prerequisites:["Steam Power"],
description:"Contributes only war-relatied things - on hold until AI is introduced - todo"
},
{
name:"Railroad",
row:8, row:8,
prerequisites:["Steam Power","Dynamite"], prerequisites:["Steam Power"],
description:"Allows construction of railroads, providing fast transport and a 25% production boost to cities" description:"Allows construction of railroads, providing fast transport and a 25% production boost to cities"
} }
] ]
@ -370,15 +358,16 @@
techs:[ techs:[
{ {
name:"Plastics", name:"Plastics",
row:2, row:3,
prerequisites:["Refrigeration"], prerequisites:["Biology"],
description:"Allows construction of Research Lab, increasing science, and the Cristo Redentor, reducing cost of new policies" description:"Allows construction of Research Lab, increasing science"
}, },
{ {
name:"Electronics", name:"Electronics",
row:5, row:5,
prerequisites:["Flight","Radio"], prerequisites:["Radio"],
description:"Contributes only war-relatied things - on hold until AI is introduced - todo" }, description:"Contributes only war-relatied things - on hold until AI is introduced - todo"
},
{ {
name:"Mass Media", name:"Mass Media",
row:6, row:6,
@ -386,34 +375,34 @@
description:"Allows construction of Stadiums and the Sydney Opera House, boosting happiness" description:"Allows construction of Stadiums and the Sydney Opera House, boosting happiness"
}, },
{ {
name:"Combustion", name:"Flight",
row:8, row:7,
prerequisites:["Railroad"], prerequisites:["Combustion"],
description:"Contributes only war-relatied things - on hold until AI is introduced - todo" description:"Allows construction of the Cristo Redentor, reducing cost of new policies"
} },
] ]
}, },
{ {
columnNumber: 13, columnNumber: 13,
era:"Atomic", era:"Information",
techCost: 7035, techCost: 7035,
buildingCost:500, buildingCost:500,
techs:[ techs:[
{ {
name:"Penicillin", name:"Penicillin",
row:1, row:3,
prerequisites:["Refrigeration"], prerequisites:["Refrigeration","Biology"],
description:"Enables construction of medical labs, alowing for greater city growth" description:"Enables construction of medical labs, alowing for greater city growth"
}, },
{ {
name:"Computers", name:"Computers",
row:4, row:5,
prerequisites:["Electronics","Mass Media"], prerequisites:["Electronics","Mass Media"],
description:"Contributes only war-relatied things - on hold until AI is introduced - todo" description:"+10% science and production in all cities"
}, },
{ {
name:"Nuclear Fission", name:"Nuclear Fission",
row:10, row:7,
prerequisites:["Combustion"], prerequisites:["Combustion"],
description:"Allows construction of Nuclear Plants, increasing production" description:"Allows construction of Nuclear Plants, increasing production"
} }
@ -421,68 +410,59 @@
}, },
{ {
columnNumber: 14, columnNumber: 14,
era:"Atomic", era:"Information",
techCost: 8465, techCost: 8465,
buildingCost:750, buildingCost:750,
techs:[ techs:[
{ {
name:"Ecology", name:"Ecology",
row:2, row:3,
prerequisites:["Penicillin","Plastics"], prerequisites:["Penicillin","Plastics","Electronics"],
description:"Enables construction of Solar Plants on cities near deserts, increasing production" description:"Enables construction of Solar Plants on cities near deserts, increasing production"
}, },
{
name:"Robotics",
row:4,
prerequisites:["Computers"],
description:"Allow construction of SS Boosters, a vital part of the spaceship, and the Spaceship Factory, which speeds the production of spaceship parts"
},
{ {
name:"Rocketry", name:"Rocketry",
row:6, row:6,
prerequisites:["Combustion","Electronics"], prerequisites:["Flight","Electronics"],
description:"Allows you to construct the Apollo Project, to find a way off of this planet!" description:"Allows you to construct the Apollo Project, to find a way off of this planet!"
} }
] ]
}, },
{ {
columnNumber: 15, columnNumber: 15,
era:"Information", era:"Future",
techCost: 9675, techCost: 9675,
buildingCost:750, buildingCost:750,
wonderCost:1250, wonderCost:1250,
techs:[ techs:[
{ {
name:"Robotics", name:"Nanotechnology",
row:4, row:3,
prerequisites:["Computers","Rocketry"], prerequisites:["Robotics","Ecology"],
description:"Allow construction of SS Boosters, a vital part of the spaceship, and the Spaceship Factory, which speeds the production of spaceship parts" description:"Allow construction of the SS Statis Chamber, a vital part of the spaceship"
}, }
{ {
name:"Satellites", name:"Satellites",
row:6, row:5,
prerequisites:["Rocketry"], prerequisites:["Rocketry","Computers","Ecology"],
description:"Allow construction of the SS Cockpit, a vital part of the spaceship" description:"Allow construction of the SS Cockpit, a vital part of the spaceship"
} }
{
name:"Particle Physics",
row:6,
prerequisites:["Ecology","Computers","Nuclear Fission"],
description:"Allow construction of the SS Engine, a vital part of the spaceship"
}
] ]
}, },
{ {
columnNumber: 16, columnNumber: 16,
era:"Information",
techCost: 9675,
buildingCost:750,
wonderCost:1250,
techs:[
{
name:"Particle Physics",
row:4,
prerequisites:["Ecology","Computers","Nuclear Fission"],
description:"Allow construction of the SS Engine, a vital part of the spaceship"
},
{
name:"Nanotechnology",
row:5,
prerequisites:["Particle Physics"],
description:"Allow construction of the SS Statis Chamber, a vital part of the spaceship"
}
]
}
{
columnNumber: 17,
era:"Future", era:"Future",
techCost: 9675, techCost: 9675,
buildingCost:750, buildingCost:750,
@ -491,7 +471,7 @@
{ {
name:"Future Tech", name:"Future Tech",
row:5, row:5,
prerequisites:["Nanotechnology","Particle Physics"], prerequisites:["Nanotechnology","Particle Physics","Satellites"],
description:"Who knows what the future holds?" description:"Who knows what the future holds?"
} }
] ]

View File

@ -1,4 +1,5 @@
[ [
// Base terrains
{ {
name:"Grassland", name:"Grassland",
type:"BaseTerrain", type:"BaseTerrain",
@ -43,7 +44,7 @@
rgb:"116,88,62" rgb:"116,88,62"
}, },
// Terrain features
{ {
name:"Forest", name:"Forest",
type:"TerrainFeature", type:"TerrainFeature",

View File

@ -34,6 +34,8 @@
improvingTech:"Economics", improvingTech:"Economics",
improvingTechStats: {gold:1} improvingTechStats: {gold:1}
}, },
// Resource-specific
{ {
name:"Camp", name:"Camp",
turnsToBuild:7, turnsToBuild:7,
@ -68,6 +70,8 @@
improvingTech:"Chemistry", improvingTech:"Chemistry",
improvingTechStats:{production:1} improvingTechStats:{production:1}
}, },
// Transportation
{ {
name:"Road", name:"Road",
turnsToBuild:4, turnsToBuild:4,
@ -76,9 +80,10 @@
{ {
name:"Railroad", name:"Railroad",
turnsToBuild:4, turnsToBuild:4,
techRequired:"Railroad" techRequired:"Combustion"
}, },
// Removals
{ {
name:"Remove Forest", name:"Remove Forest",
turnsToBuild:4, turnsToBuild:4,
@ -98,7 +103,7 @@
techRequired:"Bronze Working" techRequired:"Bronze Working"
}, },
// Great Person improvements
{ {
name:"Academy", name:"Academy",
science:8, science:8,

View File

@ -1,4 +1,5 @@
[ [
// Bonus resources
{ {
name:"Cattle", name:"Cattle",
resourceType:"Bonus", resourceType:"Bonus",
@ -54,7 +55,7 @@
building:"Stone Works" building:"Stone Works"
}, },
// Strategic resources
{ {
name:"Horses", name:"Horses",
resourceType:"Strategic", resourceType:"Strategic",
@ -112,7 +113,7 @@
improvementStats:{production:2} improvementStats:{production:2}
}, },
// Luxury resources
{ {
name:"Furs", name:"Furs",
resourceType:"Luxury", resourceType:"Luxury",

View File

@ -147,6 +147,10 @@ public class CityInfo {
if(currentConstruction instanceof Building && ((Building)currentConstruction).isWonder && if(currentConstruction instanceof Building && ((Building)currentConstruction).isWonder &&
civInfo.getCivResources().containsKey(GameBasics.TileResources.get("Marble"))) civInfo.getCivResources().containsKey(GameBasics.TileResources.get("Marble")))
statPercentBonuses.production+=15; statPercentBonuses.production+=15;
if(civInfo.tech.isResearched("Computers")){
statPercentBonuses.production+=10;
statPercentBonuses.science+=10;
}
stats.production*=1+statPercentBonuses.production/100; // So they get bonuses for production and gold/science stats.production*=1+statPercentBonuses.production/100; // So they get bonuses for production and gold/science