@log_debug
    def check_dying(self, character):
        if not character.level:
            return

        if character.hit_points <= 0:
            for item in character.inventory:
                character.inventory.remove(item)
                add_item(character.level, character.location, item)
                character.raise_event(new_drop_event(character,
                                                     item))

            if character.inventory.weapon is not None:
                add_item(character.level,
                         character.location,
                         character.inventory.weapon)
                character.raise_event(new_drop_event(character,
                                                     item))
                character.inventory.weapon = None

            if character == character.model.player:
                character.model.end_condition = DIED_IN_DUNGEON

            character.raise_event(
                new_death_event(deceased=character))
            remove_character(character.level, character)
Returns the _plist property encoded in utf-8.
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/rules/ending.py/Dying.check_dying--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/models/base.py/BasePlistModel._GetPlist