Files
2026-04-09 15:10:07 +03:00

33 lines
853 B
C#

using System;
namespace Barotrauma
{
partial class GoToMission : Mission
{
public GoToMission(MissionPrefab prefab, Location[] locations, Submarine sub)
: base(prefab, locations, sub)
{
}
protected override void UpdateMissionSpecific(float deltaTime)
{
if (Level.Loaded?.Type == LevelData.LevelType.Outpost)
{
State = Math.Max(1, State);
}
}
protected override bool DetermineCompleted(CampaignMode.TransitionType transitionType)
{
if (Level.Loaded?.Type == LevelData.LevelType.Outpost)
{
return true;
}
else
{
return transitionType == CampaignMode.TransitionType.ProgressToNextLocation;
}
}
}
}