Exemple #1
0
        public NewCharacter(int level, User testUser)
        {
            Level  = 1;
            user   = testUser;
            UserId = testUser.UserId;

            playerStat   = new PlayerStat(1);
            playerStatId = playerStat.PlayerStatId;

            playerBG = new PlayerBG();
            playerBG.BGSelector(playerStat, playerBG);
            playerBGId = playerBG.PlayerBGId;

            playerRace = new PlayerRace();
            playerRace.RaceSelector(Level, playerStat, playerRace);
            playerRaceId = playerRace.PlayerRaceId;

            playerClass = new PlayerClass(Level, playerStat);
            playerClass.ClassSelector(Level, playerStat, playerClass);
            playerClassId = playerClass.PlayerClassId;

            playerStat.UpdatePro(playerStat);
            playerName  = "Name";
            playerNotes = "";
        }
Exemple #2
0
 public NewCharacter(int level, PlayerStat pStat, PlayerRace pRace, PlayerClass pClass, PlayerBG pBG)
 {
     Level         = level;
     playerStat    = pStat;
     playerStatId  = pStat.PlayerStatId;
     playerClassId = pClass.PlayerClassId;
     playerClass   = pClass;
     playerRaceId  = pRace.PlayerRaceId;
     playerRace    = pRace;
     playerBGId    = pBG.PlayerBGId;
     playerBG      = pBG;
     UserId        = 1;
     playerName    = "Name";
     playerNotes   = "Notes";
 }
        public PlayerStat BGSelector(PlayerStat playerStat, PlayerBG playerBG)
        {
            Random rand = new Random();
            int    num  = rand.Next(0, 1);

            switch (num)
            {
            case 0:
                playerBG.Background  = "Acolyte";    //2 Lang prof
                playerStat.InsightB  = true;
                playerStat.ReligionB = true;
                LangGenerator(2, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Shelter of the Faithful";
                return(playerStat);

            case 1:
                playerBG.Background    = "Charlatan";  // Prof in Disguise and Forgery Kit
                playerStat.DeceptionB  = true;
                playerStat.SleightB    = true;
                playerBG.Proficiencies = true;
                playerBG.Feature       = "False Identity";
                return(playerStat);

            case 2:
                playerBG.Background    = "Criminal / Spy";  //Prof in 1 gaming set, thieve's tools
                playerStat.DeceptionB  = true;
                playerStat.StealthB    = true;
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Criminal Contact";
                return(playerStat);

            case 3:
                playerBG.Background     = "Entertainer / Gladiator"; //Prof in Disguise Kit, 1 musical instrument
                playerStat.AcrobaticsB  = true;
                playerStat.PerformanceB = true;
                playerBG.Proficiencies  = true;
                playerBG.Feature        = "By Popular Demand";
                return(playerStat);

            case 4:
                playerBG.Background        = "Folk Hero"; //Artisan's Tools, 1 type of land vehicle
                playerStat.AnimalHandlingB = true;
                playerStat.SurvivalB       = true;
                playerBG.Proficiencies     = true;
                playerBG.Feature           = "Rustic Hospitality";
                return(playerStat);

            case 5:
                playerBG.Background    = "Guild Artisan / Guild Merchant";  //1 type of artisan's tools, 1 lang
                playerStat.InsightB    = true;
                playerStat.PersuasionB = true;
                LangGenerator(1, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Guild Membership";
                return(playerStat);

            case 6:
                playerBG.Background  = "Hermit";    //herbalism kit, 1 lang
                playerStat.MedicineB = true;
                playerStat.ReligionB = true;
                LangGenerator(1, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Discovery";
                return(playerStat);

            case 7:
                playerBG.Background    = "Knight";  //1 gaming set, 1 lang
                playerStat.HistoryB    = true;
                playerStat.PersuasionB = true;
                LangGenerator(1, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Retainers";
                return(playerStat);

            case 8:
                playerBG.Background    = "Noble";  //1 gaming set, 1 lang
                playerStat.HistoryB    = true;
                playerStat.PersuasionB = true;
                LangGenerator(1, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Position of Privilege";
                return(playerStat);

            case 9:
                playerBG.Background   = "Outlander";   // 1 instrument, 1 lang
                playerStat.AthleticsB = true;
                playerStat.SurvivalB  = true;
                LangGenerator(1, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Wanderer";
                return(playerStat);

            case 10:
                playerBG.Background    = "Pirate";  //Nav Tools, 1 Water Vehicle
                playerStat.AthleticsB  = true;
                playerStat.PerceptionB = true;
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Bad Reputation";
                return(playerStat);

            case 11:
                playerBG.Background = "Sage";     //2 lang
                playerStat.ArcanaB  = true;
                playerStat.HistoryB = true;
                LangGenerator(2, playerStat);
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Researcher";
                return(playerStat);

            case 12:
                playerBG.Background    = "Sailor";  //Nav Tools, 1 Water Vehicle
                playerStat.AthleticsB  = true;
                playerStat.PerceptionB = true;
                playerBG.Proficiencies = true;
                playerBG.Feature       = "Ship's Passage";
                return(playerStat);

            case 13:
                playerBG.Background      = "Soldier"; //Gaming set, land vehicles
                playerStat.AthleticsB    = true;
                playerStat.IntimidationB = true;
                playerBG.Proficiencies   = true;
                playerBG.Feature         = "Military Rank";
                return(playerStat);

            case 14:
                playerBG.Background    = "Urchin";  //disguise kit, thieve's tools
                playerStat.SleightB    = true;
                playerStat.StealthB    = true;
                playerBG.Proficiencies = true;
                playerBG.Feature       = "City Secrets";
                return(playerStat);
            }
            return(playerStat);
        }