Fix port cinematics and expand ship attractions

This commit is contained in:
josh
2026-11-28 18:39:32 -05:00
parent 2c85a5ba00
commit 56fafba6d9
37 changed files with 936 additions and 101 deletions

View File

@@ -6,7 +6,7 @@ namespace Soundings
internal sealed class OnboardSessionSnapshot
{
public int Tick, NextEvent, OpenedAt, EventBenefitUntil, FeaturedService, AdditionalCapacity, Decisions;
public int Revenue, Expenses;
public int Revenue, Expenses, CasinoPayouts;
public int[] Prices, ServiceRevenue, SaleUntil, StationReadyAt, StationBoostUntil;
public ServiceSampleSnapshot[] Samples;
public double Satisfaction, Provisions, Water, Waste, FuelIntegrated, Health, Hydration;
@@ -39,7 +39,7 @@ namespace Soundings
{
Tick = tick, NextEvent = nextEvent, OpenedAt = openedAt, EventBenefitUntil = eventBenefitUntil,
FeaturedService = featuredService, AdditionalCapacity = additionalCapacity, Decisions = decisions,
Satisfaction = satisfaction, Revenue = Revenue, Expenses = Expenses, EventResult = EventResult,
Satisfaction = satisfaction, Revenue = Revenue, Expenses = Expenses, CasinoPayouts = CasinoPayouts, EventResult = EventResult,
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,
@@ -67,6 +67,7 @@ namespace Soundings
satisfaction = state.Satisfaction;
Revenue = state.Revenue;
Expenses = state.Expenses;
CasinoPayouts = state.CasinoPayouts;
EventResult = state.EventResult;
Array.Copy(state.Prices, prices, state.Prices.Length);
Array.Copy(state.ServiceRevenue, revenue, state.ServiceRevenue.Length);
@@ -121,7 +122,8 @@ namespace Soundings
|| state.OpenedAt < -1 || state.OpenedAt > state.Tick || (state.OpenedAt >= 0 && state.NextEvent >= offerCount)
|| state.FeaturedService < -1 || state.FeaturedService >= state.Prices.Length || state.AdditionalCapacity < 0
|| state.EventBenefitUntil < 0 || state.Decisions < 0 || state.Decisions > offerCount
|| state.Revenue < 0 || state.Expenses < 0 || state.EngineMode < 0 || state.EngineMode >= FuelRates.Length
|| state.Revenue < 0 || state.Expenses < 0 || state.CasinoPayouts < 0 || state.CasinoPayouts > state.Expenses
|| 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