WIP: all ship tests are complete - battle types as well - pre-system test.

This commit is contained in:
Cekis
2018-03-11 02:02:10 +00:00
parent d0b0fad2d0
commit d5eba026a8
14 changed files with 743 additions and 571 deletions
@@ -4122,13 +4122,14 @@ public class space_combat extends script.base_script
float[] fltRefire = dataTableGetFloatColumn(strFileName, "fltRefire");
float[] fltDrain = dataTableGetFloatColumn(strFileName, "fltDrain");
float[] fltShieldEfficiency = dataTableGetFloatColumn(strFileName, "fltShieldEfficiency");
boolean targetable = !strDefinition.equals("imperial_lancer") && !strDefinition.equals("nebulon_frigate");
for (int intI = 0; intI < strSlots.length; intI++)
{
if (intComponents[intI] != 0)
{
int intSlot = space_crafting.getComponentSlotInt(strSlots[intI]);
if (shipPseudoInstallComponent(objShip, intSlot, intComponents[intI])) {
setShipSlotTargetable(objShip, intSlot, true);
setShipSlotTargetable(objShip, intSlot, targetable);
setShipComponentArmorHitpointsMaximum(objShip, intSlot, fltArmorHitpoints[intI]);
setShipComponentArmorHitpointsCurrent(objShip, intSlot, fltArmorHitpoints[intI]);
setShipComponentHitpointsMaximum(objShip, intSlot, fltComponentHitpoints[intI]);