I am in error, as it appears that some enemies can actually crit. Anyway, here's what Fortification does not do, i.e. affect crit chance (from SourceTiTS/classes/Engine/Combat/calculateDamage.as):
As to what Fortification does do (from SourceTiTS/classes/Creature.as, lines 2342-2350):
The only enemies who have the aforementioned perk seem to be the myr deserters. The above line is also only in reference to melee attacks, it seems NPC ranged attacks can't crit no matter what. It should also be noted that vanae have their own crit-like thing coded as part of their combat actions.Quote said:if(attacker.critBonus(true) >= rand(100) + 1 && (attacker is PlayerCharacter || attacker.hasPerk("Can Crit")))
As to what Fortification does do (from SourceTiTS/classes/Creature.as, lines 2342-2350):
If Fortification does anything else, I've completely missed it, both in code and in-game (which is definitely possible).Quote said:public function HPMax(): Number { var bonus:int = 0; bonus = fortification(); var hitPoints: Number = 15 + (level - 1) * 15 + HPMod + bonus; if (characterClass == GLOBAL.CLASS_MERCENARY) hitPoints += level * 5; if (characterClass == GLOBAL.CLASS_ENGINEER) hitPoints -= level * 5; return hitPoints; }