Thanks, here ya go. Using v24.
This is actually quite interesting. The reason for the difference is two-fold, part (IMO) bug, and part inconsistency in the definition of the techs.
The key thing to understand is that if a tech has OR tech pre-reqs then each one you know amplifies your research modifer for researching the tech in question.
Now TECH_PAPER has these pre-reqs:
Code:
<OrPreReqs>
<PrereqTech>TECH_GUILDS</PrereqTech>
</OrPreReqs>
<AndPreReqs>
<PrereqTech>TECH_THEOLOGY</PrereqTech>
<PrereqTech>TECH_CIVIL_SERVICE</PrereqTech>
</AndPreReqs>
whereas TECH_USURY has:
Code:
<OrPreReqs/>
<AndPreReqs>
<PrereqTech>TECH_CIVIL_SERVICE</PrereqTech>
</AndPreReqs>
So the (single) OR pre-req on TECH_PAPER gives you a research boost. However, it should be only a 50% boost in this case, yet you are seeing a 4-fold difference....that brings us to the (IMO) bug:
There is also an era modifier, and for that era it's a 75% reduction in tech rate, as well as a global one (not sure what that's there for, but it is) of 10%. However, the two modifiers are combined additively not multiplicatively. So for ursury you have:
100% (base) - 75% (era) - 10% (global) = 15%
Whereas for paper you have:
100% (base) -75% (era) + 50% (OR prereqs) - 10% = 65%
the difference between 15% of your total science oputput and 65% is what gives rise to the 4 fold difference in research time.
So what should we do. Here are my opinions:
1) [@Hydro/ls612/Volkarya] Is it deliberate that TECH_PAPER is specified with a single OR pre-req instead of just making it a 3rd AND? In general, although the net effective requirements are the same, this changes the costs as discussed above, and MANY techs have single ORs, which may or may not be deliberate - someone needs to decide (ideally with a full pass through the tech tree to ratioanlize it). ALTERNATIVELY, I **COULD** change the code to ignore ORs that only have one branch (and are therefore effectively ANDs) and not provide any modifier in that case.
2) I think the modifiers should combine multiplicatively and additively (in which case you'd see 2:1 instead fo 4:1 for the 50% OR pre-req boost if that were to stay)
Opinions..?