예제 #1
0
        /// <summary>
        /// update the player character's age
        /// </summary>
        public void DisplayUpdatePlayerRace()
        {
            Location currentLocation = _gameUniverse.GetLocationById(_gamePlayer.LocationID);

            DisplayGamePlayScreen("Quest Preparation - Race", Text.InitializeQuestGetPlayerRace(_gamePlayer), ActionMenu.PlayerSetup, "");
            DisplayInputBoxPrompt($"Enter your race {_gamePlayer.Name}: ");
            Character.RaceType raceType = GetRace();
            _gamePlayer.Race = (raceType == Character.RaceType.None ? _gamePlayer.Race : raceType);
            DisplayGamePlayScreen("Current Location", Text.CurrentLocationInfo(currentLocation), ActionMenu.PlayerSetup, "");
        }
예제 #2
0
 public bool WillRecruit(Character.RaceType characterRace, Player.RaceType playerRace)
 {
     if (characterRace == playerRace)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
        // Valid primary augment constructor
        public Augment(string name, string description,
                       Character.BodyPartSlot.SlotType slot, Character.RaceType race, Character.GenderType gender,
                       Dictionary <string, string> customParams = null)
            : base(name, slot, string.Empty, description)
        {
            CustomParameters = customParams ?? new Dictionary <string, string>();
            Visible          = true;

            Race   = race;
            Gender = gender;

            if (CustomParameters.Count > 0 && CustomParameters.Keys.Contains("Полная замена"))
            {
                ImagePath = Character.BodyPartSlot.GetSlotPicture(slot, race, gender, 2);
            }
            else
            {
                ImagePath = Character.BodyPartSlot.GetSlotPicture(slot, race, gender, 1);
            }
        }