public static void setup(ExtendedEntityType mob, ValueChance<Ability> abilityChances, List<Object> optList)
	{
		Iterator<Object> it = optList.iterator();
		
		while (it.hasNext())
		{
			Map<String, Object> optMap = MiscUtil.getConfigMap(it.next());
			
			if (optMap == null)
				continue;
			
			int chance = MiscUtil.getInteger(optMap.get("CHANCE"));
			
			if (chance <= 0)
				continue;
			
			String setName = MiscUtil.getMapValue(optMap, "SETNAME", mob.toString(), String.class);
			
			if (setName == null)
				continue;
			
			AbilitySet set = getAbilitySet(setName);
			
			if (set == null)
			{
				MMComponent.getAbilities().warning("Missing SetName " + setName + " for " + mob);
				continue;
			}
			
			abilityChances.addChance(chance, set);
		}
	}