Ticket: CBA-395-54776
While I was testing out my custom race, I discovered that the resistance tech wasn't increasing resistance. Then I discovered that almost none of the resistance techs worked. The reason for this turned out to be the fact that most Resistance techs do this:
<Stats>
<EffectType>ResistanceBonus</EffectType>
<Target>
<TargetType>Faction</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>0.2</Value>
</Stats>
However, unlike Soldiering, ResistanceBonus and PlanetaryDefense are not Faction stats, they are Colony stats, so it started working once I changed it to this:
<Stats>
<EffectType>ResistanceBonus</EffectType>
<Scope>Global</Scope>
<Target>
<TargetType>Colony</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>0.2</Value>
</Stats>
Interestingly, there actually WAS one Resistance-boosting tech in the default tech tree that had this set correctly, but all the others incorrectly set their scope to Faction.