Here's what I'm trying to do. I don't like how Dodge becomes meaningless when the Training Techs are researched huge numbers of times. Even on super high difficulties I think it's too much that a stat, like Dodge may as well not be there if a computer side goes overboard on Refined Training. So I decided to make it so that sides can research two different once-only techs of +20% Accuracy each, and the second one costs 50% more than the first. This allows high dodge to still be relevant, and also allow spells like Blindness still to be meaningful. Note there is a bug in the current game when casting Blindness on a unit with huge accuracy bonuses gives the unit a large negative accuracy - basically meaning the minimum 3% chance to hit would apply.
This is my current code. However testing seems to indicate that techs only merge - it doesn't say you can overwrite techs in the patch notes. I could provide a negative multiplier to offset the core bonus, but 1. it would look messy, 2, I'm not sure if infinite is turned off, and 3. it's easier and cleaner to just overwrite the core XML code if there's no way to edit it from the mods directory.
Also, do I need to edit the listing which mentions all the techs? The second tech didn't show up when I tried running the mod from the mods directory.
Code: xml
- <Techs>
- <TechDef InternalName="Refined_Training">
- <DisplayName>Expert Training</DisplayName>
- <Description>Learning this skill will increase the efficiency of your armies, boosting their Accuracy by 20%; this training can be researched once, and is based on protocols laid out by Themisto, Strategor of Hallas. </Description>
- <AdviceText>By refining our training techniques we can make significant, though not infinite, improvements to the accuracy values of all of our units.</AdviceText>
- <Image>Barracks_Medallion.png</Image>
- <Color>182,7,3</Color>
- <HotColor>255,48,0</HotColor>
- <Cost>492</Cost>
- <Rarity>100</Rarity>
- <Category>Warfare</Category>
- <Infinite>0</Infinite>
- <AppearanceChance>100</AppearanceChance>
- <GameModifier>
- <ModType>Player</ModType>
- <Attribute>AbilityBonus</Attribute>
- <StrVal>A_UnitStat_Accuracy</StrVal>
- <Value>20</Value>
- <Icon>Stat_Accuracy_Icon.png</Icon>
- <Provides>+20% Accuracy</Provides>
- </GameModifier>
- <Prereq>
- <Type>Tech</Type>
- <Attribute>War_Colleges</Attribute>
- </Prereq>
- <AIData AIPersonality="AI_General">
- <AIPriority>10</AIPriority>
- <AITradeToGetValue>75</AITradeToGetValue>
- <AITradeOutValue>90</AITradeOutValue>
- <AIAtWarMultiplier>1</AIAtWarMultiplier>
- <AIEarlyBuildUpMultiplier>1</AIEarlyBuildUpMultiplier>
- </AIData>
- </TechDef>
-
- <TechDef InternalName="Master_Training">
- <DisplayName>Master Training</DisplayName>
- <Description>Learning this skill will increase the efficiency of your armies, boosting their Accuracy by a further 20%; this training can be researched once only, and is based on protocols laid out by Themisto, Strategor of Hallas. </Description>
- <AdviceText>By refining our training techniques we can make significant, though not infinite, improvements to the accuracy values of all of our units. This technology requires more research to obtain than Expert Training.</AdviceText>
- <Image>Barracks_Medallion.png</Image>
- <Color>182,7,3</Color>
- <HotColor>255,48,0</HotColor>
- <Cost>638</Cost>
- <Rarity>100</Rarity>
- <Category>Warfare</Category>
- <Infinite>0</Infinite>
- <AppearanceChance>100</AppearanceChance>
- <GameModifier>
- <ModType>Player</ModType>
- <Attribute>AbilityBonus</Attribute>
- <StrVal>A_UnitStat_Accuracy</StrVal>
- <Value>20</Value>
- <Icon>Stat_Accuracy_Icon.png</Icon>
- <Provides>+20% Accuracy</Provides>
- </GameModifier>
- <Prereq>
- <Type>Tech</Type>
- <Attribute>Refined_Training</Attribute>
- </Prereq>
- <AIData AIPersonality="AI_General">
- <AIPriority>10</AIPriority>
- <AITradeToGetValue>75</AITradeToGetValue>
- <AITradeOutValue>90</AITradeOutValue>
- <AIAtWarMultiplier>1</AIAtWarMultiplier>
- <AIEarlyBuildUpMultiplier>1</AIEarlyBuildUpMultiplier>
- </AIData>
- </TechDef>
- </Techs>