public static List <KeyValuePair <Item, float> > GetLootTable(LootTable type) { switch (type) { case LootTable.Potions: return(PotionLootTable); case LootTable.Weapons: return(WeaponLootTable); default: return(DefaultLootTable); } }
public static Item GetRandomLoot(LootTable type, float dropChance) { return(GetRandomLoot(GetLootTable(type), dropChance)); }