def is_collecting(self) -> bool:
        """ Combines the two properties above. """
        return self.orders and self.orders[0].ability.id in {AbilityId.HARVEST_GATHER, AbilityId.HARVEST_RETURN}
def is_collecting ( self ) -> bool : return self . orders and self . orders [ 0 ] . ability . id in { AbilityId . HARVEST_GATHER , AbilityId . HARVEST_RETURN }
Combines the two properties above.