Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español – España (spanska – Spanien)
Español – Latinoamérica (spanska – Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (portugisiska – Portugal)
Português – Brasil (portugisiska – Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (ukrainska)
Rapportera problem med översättningen
The equation was moved to the getter a long time ago, I didn't know how to use harmony on getter back then :P
@Cardinal_Z if your want my code, I'd be happy to give it to you.
{
double num = 4.49788037409348;
return Mathd.Max(Mathd.Clamp(num + Mathd.Max(-num, -0.418190741 * (double)this.nation.education) + -0.0624798523403752 * (double)this.nation.cohesion + 9.80843732089162E-06 * (double)Mathf.Min(180000f, this.nation.perCapitaGDP) + -0.115739931206548 * (double)Mathf.Sqrt(Mathf.Abs(this.latitude)) + (double)((this.annualPopGrowthModifier + this.nation.template.popGrowthModifier) * Mathf.Max(0f, (25f - TITimeState.CampaignDuration_years_Exact()) / 25f)) - (double)(this.xenoforming.xenoformingLevel / 200f) - (double)(this.nuclearDetonations * 4), -10.0, 10.0) - (double)(Math.Max(0f, Mathf.Abs(GameStateManager.GlobalValues().temperatureAnomaly_C) - 8f) * ((this.template.environment == EnvironmentType.Beneficiary) ? 0.5f : ((this.template.environment == EnvironmentType.Vulnerable) ? 2f : 1f))), -100.0) * 0.01;
}
also some stuff was added to the equation
The equation where the pop growth modifier is calculated has been moved to a variable with a getter function. The part where the Education modifier is calculated is done in a Mathd.Max(). You should be able to set the desired maximum by reducing the first parameter's value from:
[0 - 4.49788037409348]
to something else.
---
For the mod author. It appears that ModifyGDP() has been renamed, removed, or its parameters changed:
MissingMethodException: void PavonisInteractive.TerraInvicta.TINationState.ModifyGDP(double)
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.PavonisInteractive.TerraInvicta.TIRegionState.GrowPopulationByMonth_Patch1(PavonisInteractive.TerraInvicta.TIRegionState)
at PavonisInteractive.TerraInvicta.TINationState.MonthlyNationUpdate (System.Single eyes) [0x00261] in <fc64ee07b6424672ad1bcb59c1f0c3e5>:0
at