Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BigShipTycoon
|
||||
public bool TreatmentBoost => treatmentUntil > tick;
|
||||
public bool LaundryBoost => laundryUntil > tick;
|
||||
public int LaundryDemand { get; private set; }
|
||||
public int LaundryCapacity => Math.Min(138 + Ship.HullIndex * 140, AssignedCrew(CrewRole.Laundry) * 22)
|
||||
public int LaundryCapacity => Math.Min(138 + Ship.HullIndex * 140 + Ship.FittedLaundryCapacity, AssignedCrew(CrewRole.Laundry) * 22)
|
||||
+ (LaundryBoost ? Math.Min(58, AssignedCrew(CrewRole.Laundry) * 9) : 0);
|
||||
public int LaundryBacklog => (int)Math.Ceiling(laundryBacklog);
|
||||
public int LaundryCleaned => (int)Math.Floor(laundryCleaned);
|
||||
@@ -103,7 +103,8 @@ namespace BigShipTycoon
|
||||
if (RepairCredit > 0 || Ship.Condition >= 100 || !CanSpend(RepairCost))
|
||||
return;
|
||||
Expenses += RepairCost;
|
||||
RepairCredit = Math.Min(6, 2 + Ship.Count(Facility.Workshop) * Market.Facilities[(int)Facility.Workshop].Capacity);
|
||||
int maximum = Ship.HullIndex == Market.Mega ? 12 : 6;
|
||||
RepairCredit = Math.Min(maximum, 2 + Ship.FittedRepairCapacity);
|
||||
}
|
||||
|
||||
private void InitializeSystems()
|
||||
|
||||
Reference in New Issue
Block a user