def keep_it(self, me): thing_all = me.find_thing(self.what) for thing in thing_all: if thing.location.velocity.is_valid( ) and thing.location.velocity.square_mag() > 0.1: return Operation("talk", Entity(say=self.call)) return keep.keep_it(self, me)
def keep_it(self,me): thing_all=me.find_thing(self.what) for thing in thing_all: if thing.location.velocity.is_valid() and thing.location.velocity.square_mag() > 0.1: return Operation("talk", Entity(say=self.call)) return keep.keep_it(self,me)