public CreateConstruction(UnderConstruction f, Empire e) { float modifier = 0; under = f.f; emp = e; system = emp.getHomeworldPlanet().getSystem(); InstantiateFleet fleet = new InstantiateFleet(); id = f.id; name = f.f.name + "-" + id; type = f.f.name; model = f.f.model; acceleration = f.f.acceleration; maxSpeed = f.f.maxSpeed; targetSpeed = f.f.targetSpeed; level = f.f.level; maxCrew = f.f.maxCrew; firepower = f.f.firepower * (f.f.level + 1); horsepower = f.f.horsepower; TransportCap = f.f.TransportCap * (f.f.level + 1);; maintenance = f.f.maintenance * (f.f.level + 1); if (emp.hasAttribute(32)) { float mod2 = Attributes.getAttribute(32).attrValue2; maintenance += maintenance * mod2; } cost = f.f.cost * (f.f.level + 1); maxHealth = f.f.maxHealth * (f.f.level + 1); if (emp.hasAttribute(66)) { float mod2 = Attributes.getAttribute(66).attrValue; maxHealth += Mathf.RoundToInt(maxHealth * mod2); } daysToBuild = f.f.daysToBuild; health = maxHealth; crew = maxCrew; marines = 0; army = 0; rotateModel = f.f.rotateModel; shipClass = f.f.shipClass; }
public UnderConstruction(InstantiateFleet.CreateFleet s, int i, float d) { id = i; f = s; days = d; }