Example #1
0
        public override bool processSelectedItem(string selection, Player playerObject)
        {
            string Name = selection.Substring(0, selection.IndexOf("-") - 1);
            bool success = false;

            if (Name == "Drug Dealers")
            {
                success = playerObject.unlockNPC(Player.NPCType.drug);
            }
            else if (Name == "Gun Runners")
            {
                success = playerObject.unlockNPC(Player.NPCType.guns);
            }
            else if (Name == "Muscle")
            {
                success = playerObject.unlockNPC(Player.NPCType.muscle);
            }
            else if (Name == "Specialists")
            {
                success = playerObject.unlockNPC(Player.NPCType.specialists);
            }
            else if (Name == "Hookers")
            {
                success = playerObject.unlockNPC(Player.NPCType.hookers);
            }
            else if (Name == "Job Seeker")
            {
                success = playerObject.unlockNPC(Player.NPCType.jobs);
            }

            updateMenuOptions(playerObject.getNPCs());

            return success;
        }