Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign Relations balance #43

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ dojo.declare("com.nuclearunicorn.game.EffectsManager", null, {
},
"zigguratTempleEffectPolicy":{
title: $I("effectsMgr.statics.zigguratTempleEffectPolicy.title"),
type: "hidden"
type: "ratio"
},
"refinePolicyRatio":{
title: $I("effectsMgr.statics.refinePolicyRatio.title"),
Expand Down
42 changes: 21 additions & 21 deletions js/science.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 2100}
],
effects:{
"cathPollutionRatio" : -0.1,
"cathPollutionRatio" : -0.05,
"solarFarmRatio" : 0,
"hydroPlantRatio": 0
},
Expand All @@ -1342,8 +1342,8 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
blocks:["lizardRelationsPriests", "lizardRelationsDiplomats"],
calculateEffects: function(self,game){
var cathPollution = Math.floor(game.bld.cathPollution);
if (cathPollution < 1e8) {
var boostRatio = Math.round(((1e8 - cathPollution) * 5 / 1e9) * 1e2) / 1e2;
if (cathPollution < 0.5e9) {
var boostRatio = Math.round(((0.5e9 - cathPollution) * 2 / 0.5e10) * 1e2) / 1e2;
self.effects["solarFarmRatio"] = boostRatio;
self.effects["hydroPlantRatio"] = boostRatio;
} else {
Expand Down Expand Up @@ -1398,7 +1398,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
embassyCount += raceList[i].embassyLevel;
}
}
self.effects["culturePolicyRatio"] = game.getLimitedDR(0.05 + 0.001 * embassyCount, 0.3);
self.effects["culturePolicyRatio"] = Math.min(0.0004 * embassyCount, 0.15);
},
evaluateLocks: function(game){
return game.science.checkRelation("lizards", 20);
Expand All @@ -1411,9 +1411,9 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 2200}
],
effects:{
"parchmentTradeChanceIncrease" : 0.5,
"manuscriptTradeChanceIncrease" : 0.3,
"ironBuyRatioIncrease": 1
"parchmentTradeChanceIncrease" : 0.25,
"manuscriptTradeChanceIncrease" : 0.15,
"ironBuyRatioIncrease": 0.5
},
unlocked: false,
blocked: false,
Expand Down Expand Up @@ -1468,7 +1468,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
blocks:["sharkRelationsScribes", "sharkRelationsBotanists"],
calculateEffects: function(self, game) {
var trades = game.stats.getStatCurrent("totalTrades").val;
self.effects["tradeRatio"] = Math.min(Math.floor(Math.log10(Math.max(trades, 100)) - 1) * 0.05, 0.5);
self.effects["tradeRatio"] = Math.min(Math.floor(Math.log10(Math.max(trades, 100)) - 1) * 0.03, 0.3);
},
evaluateLocks: function(game){
return game.science.checkRelation("sharks", 20);
Expand Down Expand Up @@ -1514,7 +1514,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 16000}
],
effects:{
"calcinerSteelRatioBonus": 0.25,
"calcinerSteelRatioBonus": 0.15,
},
unlocked: false,
blocked: false,
Expand All @@ -1531,7 +1531,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 16000}
],
effects:{
"hunterRatio" : 1
"hunterRatio" : 0.5
},
unlocked: false,
blocked: false,
Expand All @@ -1548,7 +1548,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 16000}
],
effects:{
"magnetoBoostBonusPolicy" : 0.01
"magnetoBoostBonusPolicy" : 0.005
},
unlocked: false,
blocked: false,
Expand All @@ -1568,7 +1568,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 8000}
],
effects:{
"quarrySlabCraftBonus" : 0.05
"quarrySlabCraftBonus" : 0.025
},
unlocked: false,
blocked: false,
Expand All @@ -1588,7 +1588,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 8000}
],
effects:{
"zigguratTempleEffectPolicy" : 0.2
"zigguratTempleEffectPolicy" : 0.1
},
unlocked: false,
blocked: false,
Expand Down Expand Up @@ -1617,9 +1617,9 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
blocks:["nagaRelationsMasons", "nagaRelationsCultists"],
calculateEffects: function(self, game) {
var nagaEmbassies = game.diplomacy.get("nagas").embassyLevel;
self.effects["nagaBlueprintTradeChance"] = Math.min(nagaEmbassies * 0.005, 0.2);
self.effects["nagaBlueprintTradeChance"] = Math.min(nagaEmbassies * 0.0025, 0.1);
if (nagaEmbassies > 40) {
self.effects["blueprintCraftRatio"] = (nagaEmbassies - 40) * 0.05;
self.effects["blueprintCraftRatio"] = (nagaEmbassies - 40) * 0.02;
} else {
self.effects["blueprintCraftRatio"] = 0;
}
Expand Down Expand Up @@ -1648,7 +1648,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
},
calculateEffects: function(self, game) {
var spiderEmbassies = game.diplomacy.get("spiders").embassyLevel;
var bonus = game.getLimitedDR(0.06 + 0.004 * spiderEmbassies, 0.3);
var bonus = Math.min(0.002 * spiderEmbassies, 0.15);
for (var effect in self.effects) {
self.effects[effect] = bonus;
}
Expand Down Expand Up @@ -1691,7 +1691,7 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 20000}
],
effects:{
"mintIvoryRatio" : 0.25,
"mintIvoryRatio" : 0.15,
"oilPolicyRatio" : 0.1
},
unlocked: false,
Expand Down Expand Up @@ -1730,17 +1730,17 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
{name : "culture", val: 30000}
],
effects:{
"starEventChance": 0.006,
"starchartPolicyRatio": 0.05
"starEventChance": 0.004,
"starchartPolicyRatio": 0.03
},
unlocked: false,
blocked: false,
isRelation: true,
blocks:["dragonRelationsPhysicists"],
calculateEffects: function(self, game) {
var cycle = game.calendar.cycleYear + 1;
self.effects["starEventChance"] = cycle * 0.006;
self.effects["starchartPolicyRatio"] = cycle * 0.05;
self.effects["starEventChance"] = cycle * 0.004;
self.effects["starchartPolicyRatio"] = cycle * 0.03;
},
evaluateLocks: function(game){
return game.science.checkRelation("dragons", 10);
Expand Down
8 changes: 4 additions & 4 deletions res/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -812,15 +812,15 @@
"policy.mysticism.label" : "Mysticism",
"policy.mysticism.desc" : "Accept the view that there are forces beyond the comprehension of kittens. Gain a small bonus to culture and faith production, though you might look silly for a while.",
"policy.nagaRelationsArchitects.label" : "Naga Relations: Architects",
"policy.nagaRelationsArchitects.desc" : "Naga architects know some unique building techniques we do not possess, come to a trade agreement with them to obtain blueprints and study them.<br><br>Building embassies will increase the chance to get blueprints from Nagas. Once a sufficient number of embassies are built, they will improve the blueprint crafting ratio",
"policy.nagaRelationsArchitects.desc" : "Naga architects know some unique building techniques we do not possess, come to a trade agreement with them to obtain blueprints and study them.<br><br>Building Naga embassies will increase the chance to get blueprints from nagas by 0.25%, by up to 10%. Once the maximum bonus is achieved, they will improve the blueprint crafting ratio instead",
"policy.nagaRelationsMasons.label" : "Naga Relations: Masons",
"policy.nagaRelationsMasons.desc" : "Nagas almost exclusively use minerals as building materials, so they have a lot of experience extracting and processing it. They can show us the secrets of efficiently crafting slabs using quarries.",
"policy.nagaRelationsCultists.label" : "Naga Relations: Cultists",
"policy.nagaRelationsCultists.desc" : "Nagas have very different religious traditions. We can study naga cultist rituals and employ them during our own religious services.<br>Monuments will now be slightly affected by Order of the Sun upgrades.",
"policy.nagaRelationsCultists.desc" : "Nagas have very different religious traditions. We can study naga cultist rituals and employ them during our own religious services.<br>Ziggurats will now be slightly affected by Order of the Sun upgrades.",
"policy.necrocracy.label" : "Necrocracy",
"policy.necrocracy.desc" : "Your society offers itself to the elders, they will take over and bring dark times, but you will get a production bonus from BLS.",
"policy.lizardRelationsDiplomats.label" : "Lizard Relations: Diplomats",
"policy.lizardRelationsDiplomats.desc" : "Lizards are a peaceful race. If we want to befriend the races of Cath, they are more than willing to contribute.",
"policy.lizardRelationsDiplomats.desc" : "Lizards are a peaceful race. If we want to befriend the races of Cath, they are more than willing to contribute.<br>Each embassy with any race will now grant a 0.04% culture bonus, up to 15%.",
"policy.lizardRelationsEcologists.label" : "Lizard Relations: Ecologists",
"policy.lizardRelationsEcologists.desc" : "The lizards love nature and want to protect it. Their ecologists are experts on preventing pollution and at low pollution levels they can tune some of our green energy buildings, increasing their effectiveness.",
"policy.lizardRelationsPriests.label" : "Lizard Relations: Priests",
Expand Down Expand Up @@ -852,7 +852,7 @@
"policy.spaceBasedTerraforming.label" : "Space-based terraforming",
"policy.spaceBasedTerraforming.desc" : "Put giant mirrors in the sky, boosting solar farms consistency. Unlocks Space Mirrors.",
"policy.spiderRelationsGeologists.label" : "Spider Relations: Geologists",
"policy.spiderRelationsGeologists.desc" : "The spiders are willing to help us find and exploit good mineral deposits in exchange for our continued partnership.<br>The more embassies we have with spiders, the more it will benefit our mining industry",
"policy.spiderRelationsGeologists.desc" : "The spiders are willing to help us find and exploit good mineral deposits in exchange for our continued partnership.<br>Each embassy we have with spiders will improve our mining industry by 0.2%, up to a maximum of 15%",
"policy.spiderRelationsChemists.label" : "Spider Relations: Chemists",
"policy.spiderRelationsChemists.desc" : "While spiders have abundant oil, they do not have the means to create kerosene yet. Our chemists can help them study chemical processes.<br><br> Spiders will now sell kerosene",
"policy.spiderRelationsPaleontologists.label" : "Spider Relations: Paleontologists",
Expand Down