def execute(self):
        if not self.args:
            self.pc.update_output("%s what?" % self.alias.capitalize())
            return
        food = self.pc.check_inv_for_keyword(self.args.lower().strip())
        if not food:
            self.pc.update_output(self.args % 'You don\'t have any %s.')
            return
        food_obj = food.item_types.get('food')
        if not food_obj:
            # Gods have a more robust digestive system -- they can afford to
            # eat objects that aren't edible to mere mortals
            if self.pc.permissions & GOD:
                self.pc.item_remove(food)
                food.destruct()
                self.pc.update_output('You consume %s.' % food.name)
                if self.pc.location:
                    self.pc.location.tell_room('%s consumed %s.' %\
                                                 (self.pc.fancy_name(),
                                                  food.name),
                                                [self.pc.name], self.pc)
                return
            else:
                self.pc.update_output('That\'s not edible!')
                return
        if 'drunk' in self.pc.effects:
            self.pc.update_output('You\'re too drunk to manage it.')
            return
        # Remove the food object
        self.world.log.debug(food_obj)
        self.pc.item_remove(food)
        food.destruct()
        # Replace it with another object, if applicable
        if food_obj.replace_obj:
            self.pc.item_add(food_obj.replace_obj.load())
        # Tell the player and the room an "eat" message
        u_tell = self.personalize(food_obj.get_actor_message(), self.pc)
        self.pc.update_output(u_tell)
        if self.pc.location:
            r_tell = self.personalize(food_obj.get_room_message(), self.pc)
            self.pc.location.tell_room(r_tell, [self.pc.name], self.pc)
        # Add this food's effects to the player
        self.world.log.debug('Adding effects.')
        self.pc.effects_add(food_obj.load_effects())
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Consume.execute/swapped operands of `%`