コード例 #1
0
ファイル: Combat.cs プロジェクト: colemank0259/CSC-253_Group4
        public static Potion GetPotion(Potion potion, List <Potion> potions)
        {
            potion = potions[RandomNumber.NumberBetween(0, 7)];

            return(potion);
        }
コード例 #2
0
ファイル: Combat.cs プロジェクト: colemank0259/CSC-253_Group4
        public static Mob GetCurrentMob(Mob mob, List <Mob> mobs)
        {
            mob = mobs[RandomNumber.NumberBetween(0, 4)];

            return(mob);
        }
コード例 #3
0
ファイル: Potion.cs プロジェクト: colemank0259/CSC-253_Group4
        //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)];
        }