Right

data/injuries/head/eyes/right.lua

Injuries("damaged_eye_right", {
    label = "Damaged Eye (R)",
    category = "eye_right",
    deadly = false,
    unique = true,
    severity = 1,

    icon = "fa-solid fa-eye",
    description = "Your patient has a damaged right eye.",

    can_treat_in_field = false,
    can_stabilize_in_field = true,

    causes = {
        [BoneCategories.EYE_RIGHT] = {
            { chance = 100, required_damage_on_hit = 100, },
        },
    },

    heal_time = {
        days = 3
    },

    treatments = {
        {
            text = "Stabilize Eye",
            stabilizes = true,
        },
        {
            text = "Poke Eye",
            causes = { "infected_eye_right" },
        },
    }
})

Injuries("infected_eye_right", {
    label = "Infected Eye (R)",
    category = "eye_right",
    deadly = false,
    unique = true,
    severity = 2,

    icon = "fa-solid fa-eye",
    description = "Your patient has an infected right eye.",

    can_treat_in_field = false,
    can_stabilize_in_field = false,

    causes = {},

    heal_time = {
        days = 3
    },

    treatments = {
        {
            text = "Disinfect Eye",
            stabilizes = true,
        },
        {
            text = "Poke Eye",
            causes = { "destroyed_right_eye" },
        },
    },

    effects = {
        {
            effect = "poor_vision_right",
            when_stabilized = true,
        },
    }
})

Injuries("destroyed_eye_right", {
    label = "Destroyed Eye (R)",
    category = "eye_right",
    deadly = false,
    unique = true,
    severity = 2,

    icon = "fa-solid fa-eye",
    description = "Your patient has a destroyed right eye.",

    can_treat_in_field = false,
    can_stabilize_in_field = false,

    [BoneCategories.EYE_RIGHT] = {
        { chance = 100, required_damage_on_hit = 200, },
    },

    heal_time = {
        weeks = 1
    },

    treatments = {},

    effects = {
        {
            effect = "no_vision_right",
            when_stabilized = true,
        },
    }
})

Last updated