https://hoi2.paradoxwikis.com/index.php?title=Technology_Formula&feed=atom&action=history Technology Formula - Revision history 2020-09-18T20:26:05Z Revision history for this page on the wiki MediaWiki 1.32.0 https://hoi2.paradoxwikis.com/index.php?title=Technology_Formula&diff=1368&oldid=prev Meneth: 1 revision imported: Import from HoI2 Wiki 2017-03-18T11:52:58Z <p>1 revision imported: Import from HoI2 Wiki</p> <table class="diff diff-contentalign-left" data-mw="interface"> <tr class="diff-title" lang="en"> <td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td> <td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 11:52, 18 March 2017</td> </tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div> </td></tr></table> Meneth https://hoi2.paradoxwikis.com/index.php?title=Technology_Formula&diff=1367&oldid=prev Musides at 22:55, 3 April 2008 2008-04-03T22:55:40Z <p></p> <p><b>New page</b></p><div>The formula to calculate the number of days required is calculated using the following logic:<br /> <br /> *Each component is given a progress bar, with the percent completed at zero percent, and the total percent of the component as 100%. For Double-timed components, the total percent is doubled (to 200%).<br /> <br /> *Rocketry components are given a bonus from the size of the rocket site in the country (there should be only one such site). This bonus is calculated with the formula:<br /> <br /> Component_Bonus = Rocket_Site_Size * 5<br /> <br /> *Nuclear components are given a bonus from the size of the nuclear reactor in the country (there should be only one such reactor). This bonus is calculated with the formula:<br /> <br /> Component_Bonus = Nuclear_Reactor_Size * 5<br /> <br /> *Each component is then compared with the tech team researching it, to see if the tech team has specialties that match the component type. The formula used to determine this is:<br /> <br /> &lt;pre&gt;<br /> If Component_Match(Current_Component, Tech_Team_Index) Then<br /> Daily_Increase = (Base_Increase_Matched / ((2 + Min(TECHS(Current_Component).Difficulty, 3)) * 10)) + ((3 * (TECH_TEAMS(Tech_Team_Index).Skill + Bonus_Level - 1)) / (2 + Min(TECHS(Current_Component).Difficulty, 3)))<br /> Else<br /> Daily_Increase = ((Base_Increase_Unmatched / ((2 + Min(TECHS(Current_Component).Difficulty, 3)) * 10)) + ((3 * (TECH_TEAMS(Tech_Team_Index).Skill + Bonus_Level * 2 - 1)) / (2 + Min(TECHS(Current_Component).Difficulty, 3)))) / 2<br /> End If<br /> <br /> Early_Research_Penalty = 0<br /> Do Until Percent_Complete &gt;= Percent_Total<br /> If Start_Year &lt; TECHS(Tech_Application_Index).Historical_Year Then<br /> Early_Research_Penalty = Min(Early_Research_Mod * Min((Time_Difference(Start_Day, Start_Month, Start_Year, 1, 1, TECHS(Tech_Application_Index).Historical_Year) - Total_Days - 1), 0), Max_Early_Research_Penalty)<br /> End If<br /> <br /> If Not Have_Blueprint Then<br /> Percent_Complete = Percent_Complete + Daily_Increase * (1 + Early_Research_Penalty) * Research_Mod * (1 + Difficulty_Mod)<br /> Else<br /> Percent_Complete = Percent_Complete + Daily_Increase * (1 + Early_Research_Penalty) * Research_Mod * (1 + Difficulty_Mod) * Blueprint_Bonus<br /> End If<br /> <br /> Total_Days = Total_Days + 1<br /> <br /> If Total_Days &gt; 9999 Then Exit For 'To avoid infinite loops<br /> Loop <br /> Next Current_Component<br /> <br /> Calculate_Research_Time = Total_Days<br /> End Function<br /> &lt;/pre&gt;<br /> The values for the parameters can be found in the misc.txt file in the db directory. Default in HoI2 1.3 the value for Max_Early_Research_Penalty is 0.9, Early_Research_Mod is 0.0015<br /> <br /> [[Category: Reference]]</div> Musides