def inflict_damage(value, target):
    """
    Deal damage

    :param value: How much damage to do to target
    :param target: The character being damaged

    :return: Updated target
    """
    target.hit_points -= value

    return target