Restore Continue stat grids from typed state

This commit is contained in:
Meta Vens 2026-06-16 07:18:14 +01:00
commit 75d3f05fd9
6 changed files with 80 additions and 3 deletions

View file

@ -847,6 +847,7 @@ static void RequireMainMenuContinueRunState(string root)
"CreateEntityConstructionBlueprint(entitySnapshot, true)",
"BindToEntity(entity)",
"RestoreActiveConsumablesFromTypedEntitySnapshot(entity, entitySnapshot)",
"entity.RestoreStatGrids(entitySnapshot.StatGrids)",
"RestoreThermalExposure((float)entitySnapshot.Heatstroke, (float)entitySnapshot.Hypothermia)",
"entity.HeatsinksEnabled = entitySnapshot.HeatsinksEnabled",
"ContinueRunState = null",
@ -891,6 +892,8 @@ static void RequireMainMenuContinueRunState(string root)
{
"RestoreThermalExposure",
"RestoreActiveConsumable",
"RestoreStatGrids",
"RestoreHullConductivityGrid",
"new ConsumableItemEffect(item, this, remainingDuration, duration)"
};
var missingEntityRestoreSymbols = requiredEntityRestoreSymbols