Rebrand as Big Ship Tycoon and add crew operations

This commit is contained in:
josh
2026-11-28 17:49:48 -05:00
parent a54f66cec9
commit 2c85a5ba00
68 changed files with 1642 additions and 98 deletions

View File

@@ -10,7 +10,8 @@ namespace Soundings
public int[] Prices, ServiceRevenue, SaleUntil, StationReadyAt, StationBoostUntil;
public ServiceSampleSnapshot[] Samples;
public double Satisfaction, Provisions, Water, Waste, FuelIntegrated, Health, Hydration;
public int GalleyUntil, PumpsUntil, TreatmentUntil, EngineMode, RepairCredit;
public double LaundryBacklog, LaundryCleaned;
public int GalleyUntil, PumpsUntil, TreatmentUntil, LaundryUntil, EngineMode, RepairCredit;
public bool Assisted, StoresOpened;
public int NextCrewCall, CrewCallDeadline, CrewCall, CrewRequestsCompleted, PerformanceStarted;
public string EventResult;
@@ -42,6 +43,7 @@ namespace Soundings
Prices = (int[])prices.Clone(), ServiceRevenue = (int[])revenue.Clone(), SaleUntil = (int[])saleUntil.Clone(),
Samples = samples, Provisions = provisions, Water = water, Waste = waste, FuelIntegrated = fuelIntegrated,
Health = health, Hydration = hydration, GalleyUntil = galleyUntil, PumpsUntil = pumpsUntil,
LaundryBacklog = laundryBacklog, LaundryCleaned = laundryCleaned, LaundryUntil = laundryUntil,
TreatmentUntil = treatmentUntil, Assisted = Assisted, EngineMode = EngineMode, RepairCredit = RepairCredit,
StoresOpened = StoresOpened, StationReadyAt = (int[])stationReadyAt.Clone(), StationBoostUntil = (int[])stationBoostUntil.Clone(),
NextCrewCall = nextCrewCall, CrewCallDeadline = crewCallDeadline,
@@ -75,9 +77,12 @@ namespace Soundings
fuelIntegrated = state.FuelIntegrated;
health = state.Health;
hydration = state.Hydration;
laundryBacklog = state.LaundryBacklog;
laundryCleaned = state.LaundryCleaned;
galleyUntil = state.GalleyUntil;
pumpsUntil = state.PumpsUntil;
treatmentUntil = state.TreatmentUntil;
laundryUntil = state.LaundryUntil;
Assisted = state.Assisted;
EngineMode = state.EngineMode;
RepairCredit = state.RepairCredit;
@@ -118,6 +123,7 @@ namespace Soundings
|| state.EventBenefitUntil < 0 || state.Decisions < 0 || state.Decisions > offerCount
|| state.Revenue < 0 || state.Expenses < 0 || state.EngineMode < 0 || state.EngineMode >= FuelRates.Length
|| state.RepairCredit < 0 || state.RepairCredit > 6 || state.GalleyUntil < 0 || state.PumpsUntil < 0
|| state.LaundryUntil < 0 || state.LaundryUntil > ticks + 7
|| state.TreatmentUntil < 0 || state.NextCrewCall < 0 || state.NextCrewCall > CrewCallSchedule.Length
|| state.CrewCall < -1 || state.CrewCall >= state.StationReadyAt.Length || state.CrewCallDeadline < 0
|| state.CrewCallDeadline > ticks || state.CrewRequestsCompleted < 0
@@ -127,7 +133,10 @@ namespace Soundings
if (!AmountInRange(state.Satisfaction, 100) || !AmountInRange(state.Health, 100) || !AmountInRange(state.Hydration, 1)
|| !AmountInRange(state.Provisions, Ship.FoodCapacity) || !AmountInRange(state.Water, Ship.WaterCapacity)
|| !AmountInRange(state.Waste, Ship.WasteCapacity * 1.3) || !AmountInRange(state.FuelIntegrated, ticks * 1.23))
|| !AmountInRange(state.Waste, Ship.WasteCapacity * 1.3) || !AmountInRange(state.FuelIntegrated, ticks * 1.23)
|| !AmountInRange(state.LaundryBacklog + state.LaundryCleaned, (double)LaundryDemand * Quote.Days)
|| !AmountInRange(state.LaundryBacklog, (double)LaundryDemand * Quote.Days)
|| !AmountInRange(state.LaundryCleaned, (double)LaundryDemand * Quote.Days))
return false;
for (int i = 0; i < state.Prices.Length; i++)