Esempio n. 1
0
        public PgCreator()
        {
            Name  = RandomName();
            Stats = new Stats(StatsBuilder.RandomStats());
            var toughMod = Stats[StatsType.Toughness].ModifierOfStat();

            Level           = Pg.Level.Novice;
            CurrentXp       = Pg.XpForLevel(Level);
            NextXp          = Pg.XpForLevel(Level.Next());
            CurrentPf       = Pg.healthDice.Max + toughMod;
            MaxPf           = Pg.healthDice.Max + toughMod;
            Hunger          = Pg.hungerDice.Max * Math.Max(1, toughMod);
            Armor           = null;
            Shield          = null;
            Weapon          = null;
            Backpack        = new Backpack();
            Spellbook       = new Spellbook();
            Symbol          = "@";
            Color           = Color.White;
            God             = null;
            Unblockable     = false;
            PerceptionRange = 10;
        }
Esempio n. 2
0
 private void LevelUp()
 {
     currentLevel = currentLevel.Next();
     CharacterSheets.ForEach((sheet) => sheet.NotifyLevel(currentLevel, God));
     NextXP = Pg.XpForLevel(currentLevel.Next());
 }