예제 #1
0
        public static List <KeyValuePair <Item, float> > GetLootTable(LootTable type)
        {
            switch (type)
            {
            case LootTable.Potions:
                return(PotionLootTable);

            case LootTable.Weapons:
                return(WeaponLootTable);

            default:
                return(DefaultLootTable);
            }
        }
예제 #2
0
 public static Item GetRandomLoot(LootTable type, float dropChance)
 {
     return(GetRandomLoot(GetLootTable(type), dropChance));
 }