Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First aid kits can't heal infected body parts #24323

Closed
BrettDong opened this issue Jul 16, 2018 · 2 comments
Closed

First aid kits can't heal infected body parts #24323

BrettDong opened this issue Jul 16, 2018 · 2 comments

Comments

@BrettDong
Copy link
Member

Game version: 4e3224cfcfe1ac885ada9c31a7ac7954de7d3e1b

Expected behavior

When using a first aid kit, infected body parts should be listed in the menu.

Actual behavior

If an infected body part has full HP, it isn't shown in the first aid kit menu.

Steps to reproduce the behavior

Start a bad day scenario, get a first aid kit through debug menu, and activate it.

@BrettDong
Copy link
Member Author

In data/json/items/comestibles/med.json,

    {
        "id" : "1st_aid",
        "type" : "COMESTIBLE",
        "comestible_type" : "MED",
        "name" : "first aid kit",
        "description" : "A full medical kit, with bandages, local anesthetics, and rapid healing agents.  Used for healing large amounts of damage.",
        "weight" : 240,
        "volume" : 1,
        "price" : 3000,
        "charges" : 2,
        "stack_size" : 6,
        "material" : "plastic",
        "symbol" : "!",
        "color" : "red",
        "use_action" : {
            "type" : "heal",
            "bandages_power" : 8,
            "disinfectant_power" : 8,
            "bleed" : 0.95,
------------"infect" : 0.95,
            "bite" : 0.99,
            "move_cost" : 6000,
            "long_action" : true,
            "effects" : [ { "id" : "pkill1", "duration" : 120 } ]
        }
    },

the line "infect" : 0.95 was removed by @Vasyan2006 in #23757 . If I add it back, first aid kits will be able to heal infected body parts again. Is this intended? @Vasyan2006

@BrettDong
Copy link
Member Author

Oops. I didn't read the comments below in #23757 .

First aid kits will not cure infections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant