示例#1
0
        public static Potion GetPotion(Potion potion, List <Potion> potions)
        {
            potion = potions[RandomNumber.NumberBetween(0, 7)];

            return(potion);
        }
示例#2
0
        public static Mob GetCurrentMob(Mob mob, List <Mob> mobs)
        {
            mob = mobs[RandomNumber.NumberBetween(0, 4)];

            return(mob);
        }
示例#3
0
        //List<string> potions = new List<string>() {"Health", "Ability Boost"};

        //public string ID { get; set; }
        //public string Description { get; set; }

        public Potion(int id, string name, int damage, int ac, int hp, int xp) : base(id, name, damage, ac, hp, xp)
        {
            CurrentRoom = GameAttributes.rooms[RandomNumber.NumberBetween(0, 6)];
        }