Add MEGA Ocean Liner, split decks, and detailed ship materials

This commit is contained in:
josh
2026-11-28 21:02:42 -05:00
parent ce0d38c8de
commit 46624bf5ba
47 changed files with 2042 additions and 382 deletions

View File

@@ -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()