code: function loadAbilities(unit, abilities = {}) {
    Object.entries(abilities).forEach(([abilityName, abilityCreator]) => {
      const ability = abilityCreator(unit);
      unit.addAbility(abilityName, ability);
    });
  }
docs: Loads the abilities onto the unit.
  
  @param {Unit} unit The unit.
  @param {Object} abilities The abilities to load.