Example #1
0
        public int GetSellAmount(string raidName, int bossNum)
        {
            BossInfoModel bossInfo = new BossInfoModel { Loots = GetLootDetail(raidName, bossNum) };
            int sum = 0;
            foreach (var loot in bossInfo.Loots)
            {
                sum += loot.SellPrice;
            }

            return sum;
        }
Example #2
0
        public List<BossInfoModel> InsertTempBoss()
        {
            List< BossInfoModel >result=new List<BossInfoModel>();
            BossInfoModel boss = new BossInfoModel()
            {
                BossName = "奈珊卓拉",
                BossNo = 1,
                Loots = temp2()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "艾樂瑞斯‧雷弗拉爾",
                BossNo = 2,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "「腐化之心」伊蓋諾斯",
                BossNo = 3,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "厄索克",
                BossNo = 4,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "夢魘之龍",
                BossNo = 5,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "賽納留斯",
                BossNo = 6,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            boss = new BossInfoModel()
            {
                BossName = "薩維斯",
                BossNo = 7,
                Loots = new List<LootItem>()
            };
            result.Add(boss);

            return result;
        }