Right

data/injuries/legs/right.lua

Injuries("fractured_leg_right", {
    label = "Fractured Leg (R)",
    category = "leg_right",
    deadly = false,
    severity = 1,

    icon = "fa-solid fa-socks",
    description = "Your patient has a fractured right leg.",

    can_cure_in_field = false,
    can_stabilize_in_field = true,

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

    heal_time = {
        days = 4,
    },

    treatments = {
        {
            text = "Splint Leg",
            stabilizes = true,
        },
        {
            text = "Punch Leg",
            causes = { "broken_leg_right" }
        },
    },

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

Injuries("broken_leg_right", {
    label = "Broken Leg (R)",
    category = "leg_right",
    deadly = false,
    severity = 2,

    icon = "fa-solid fa-socks",
    description = "Your patient has a broken right leg.",

    can_cure_in_field = false,
    can_stabilize_in_field = false,

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

    heal_time = {
        weeks = 1,
    },

    treatments = {
        {
            text = "Splint Leg",
            stabilizes = true,
        },
        {
            text = "Punch Leg",
            causes = { "destroyed_leg_right" }
        },
    },

    effects = {
        {
            effect = "very_slow",
            when_stabilized = false
        },
        {
            effect = "slow",
            when_stabilized = true
        }
    }
})

Injuries("destroyed_leg_right", {
    label = "Destroyed Leg (R)",
    category = "leg_right",
    deadly = false,
    unique = true,
    severity = 3,

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

    can_cure_in_field = false,
    can_stabilize_in_field = false,

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

    heal_time = {
        weeks = 1,
    },

    treatments = {},

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

Last updated