The Damage Control value in the shiplist represents the
number of hits the DamCon track a ship can take, based on its SSD. Based on that number of boxes, a
DamCon Rating is calculated. This Damcon rating is usually the BASE # of repair parts.
.. for some reason, it was decided that the MAX # of repair parts would be 5x that. Don't ask me why.
Here's what I could deduce, from experimentation, of the # damcon hits on the ship converted to the DamCon rating:
Code:
int DamCon_to_SpareParts( int DamCon )
{
if (DamCon <= 2)
return 2;
if ((DamCon == 3) || (DamCon == 4))
return 3;
if ((DamCon == 5) || (DamCon == 6))
return 4;
if (DamCon == 7)
return 5;
if (DamCon == 8)
return 6;
if (DamCon == 9)
return 7;
if ((DamCon >= 10) && (DamCon <= 12))
return 8;
if ((DamCon >= 13) && (DamCon <= 15))
return 9;
if (DamCon >= 16)
return 10;
return 0;
}
This code is in no way official.
-- Luc