Head

data/injuries/head/head.lua

Injuries("minor_brain_damage", {
    label = "Minor Brain Damage",
    category = "head",
    deadly = false,
    unique = true,
    severity = 1,

    icon = "fa-solid fa-brain",
    description = "Your patient has minor brain damage.",

    can_cure_in_field = false,
    can_stabilize_in_field = false,

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

    heal_time = {
        days = 4,
    },

    treatments = {
        {
            text = "Apply Stem Cells",
            stabilizes = true,
            time = 1000,
            items = {
                stem_cell_kit = {
                    label = "Stem Cell Kit",
                    required = 1,
                    remove = 0
                }
            }
        },
        {
            text = "Punch Head",
            causes = { "major_brain_damage" }
        },
    },

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

Injuries("major_brain_damage", {
    label = "Major Brain Damage",
    category = "head",
    deadly = true,
    unique = true,
    severity = 2,

    icon = "fa-solid fa-brain",
    description = "Your patient has major brain damage.",

    can_cure_in_field = false,
    can_stabilize_in_field = false,

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

    heal_time = {
        weeks = 1,
    },

    treatments = {
        {
            text = "Apply Stem Cells",
            stabilizes = true,
        },
        {
            text = "Punch Head",
            causes = { "major_brain_damage" }
        },
    },

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

Last updated