/// <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, ""); }
public bool WillRecruit(Character.RaceType characterRace, Player.RaceType playerRace) { if (characterRace == playerRace) { return(true); } else { return(false); } }
// 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); } }