Ejemplo n.º 1
0
        public string AnalyzeScene()
        {
            var    descriptions = CurrentScene.GetSceneDescriptions();
            string result       = "";

            if (Stats.Perception > 1)
            {
                result += $"{descriptions.GeneralDescription}";
            }

            if (Stats.Perception > 3)
            {
                result += $"{descriptions.CharacterDescription}";
            }

            if (Stats.Perception >= 5)
            {
                result += $"\n{descriptions.PropDescription}";
            }

            if (Stats.Perception >= 8)
            {
                var attitude = CurrentScene.GetAverageCharacterAttitude(this);
                switch (attitude)
                {
                case Attitude.Friendly:
                    result += "\nYou feel extremely welcomed.";
                    break;

                case Attitude.Inclined:
                    result += "\nYou feel welcomed here.";
                    break;

                case Attitude.Neutral:
                    result += "\nYou feel folks are okay with you here.";
                    break;

                case Attitude.Agitated:
                    result += "\nYou feel uneasy here.";
                    break;

                case Attitude.Hostile:
                    result += "\nThe fight is imminent.";
                    break;
                }
            }

            return(result);
        }