Пример #1
0
        private bool IsValidQuestState(Kingdom kingdom1, Kingdom kingdom2)
        {
            bool    isValidQuestState = true;
            Kingdom opposingKingdom   = PlayerHelpers.GetOpposingKingdomIfPlayerKingdomProvided(kingdom1, kingdom2);

            if (opposingKingdom != null)
            {
                ThirdPhase thirdPhase = StoryMode.StoryMode.Current.MainStoryLine.ThirdPhase;
                isValidQuestState = thirdPhase == null || !thirdPhase.OppositionKingdoms.Contains(opposingKingdom);
            }
            return(isValidQuestState);
        }