code: def is_carrying_minerals(self) -> bool:
          
          return any(
              buff.value in self._proto.buff_ids
              for buff in {BuffId.CARRYMINERALFIELDMINERALS, BuffId.CARRYHIGHYIELDMINERALFIELDMINERALS}
          )
docs: Checks if a worker or MULE is carrying (gold-)minerals.