public override void SpawnSetup(Map map, bool respawningAfterLoad) { base.SpawnSetup(map, respawningAfterLoad); //this.shouldDeepSave = true; this.DeepsaveTurrets = false; if (shouldSpawnTurrets) { foreach (KeyValuePair <ShipWeaponSlot, Building_ShipTurret> current in this.installedTurrets) { if (current.Value != null && !current.Value.Spawned) { IntVec3 drawLoc = this.Position + DropShipUtility.AdjustedIntVecForShip(this, current.Key.turretPosOffset); GenSpawn.Spawn(current.Value, drawLoc, this.Map); } } } this.shouldSpawnTurrets = false; if (shipState == ShipState.Incoming) { SoundDef.Named("ShipTakeoff_SuborbitalLaunch").PlayOneShotOnCamera(); } if (this.ShouldSpawnFueled) { Thing initialFuel = ThingMaker.MakeThing(ShipNamespaceDefOfs.Chemfuel); initialFuel.stackCount = 800; this.refuelableComp.Refuel(initialFuel); this.ShouldSpawnFueled = false; } DropShipUtility.InitializeDropShipSpawn(this); this.FirstSpawned = false; }