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

Fixes radiation protection/treatment pills. #14736

Merged
merged 4 commits into from Jan 10, 2016

Conversation

Projects
None yet
4 participants
@Rivet-the-Zombie
Copy link
Member

commented Jan 6, 2016

It's bugged me for a long time that our 'iodine tablets' are all wrong.


Makes potassium iodide tablets protect against radiation exposure (reduces uptake to 33%) instead of being used to treat radiation poisoning post-exposure.

Adds Prussian blue tablets (and recipe) that work the same as the old 'iodine tablets' did.

Fixes radiation protection/treatment pills.
Makes potassium iodide tablets protect against radiation exposure
(reduces uptake to 33%) instead of being used to treat radiation
poisoning post-exposure. Adds Prussian blue tablets (and recipe) that
work the same as the old 'iodine tablets' did.
src/enums.h Outdated
@@ -92,7 +92,8 @@ enum art_effect_passive : int {
AEP_INT_UP, // Intelligence + 4
AEP_ALL_UP, // All stats + 2
AEP_SPEED_UP, // +20 speed
AEP_IODINE, // Reduces radiation
AEP_PBLUE, // Reduces radiation
AEP_IODINE, // Resist half radiation

This comment has been minimized.

Copy link
@Coolthulhu

Coolthulhu Jan 6, 2016

Contributor

Adding artifact effects like that could break things (as in, saves).
Just renaming the AEP_IODINE to AEP_PBLUE would be safer. Especially considering you didn't implement it anywhere.

@@ -951,9 +951,16 @@ int iuse::sleep(player *p, item *it, bool, const tripoint& )
return it->type->charges_to_use();
}

int iuse::pblue(player *p, item *it, bool, const tripoint& )

This comment has been minimized.

Copy link
@Coolthulhu

Coolthulhu Jan 6, 2016

Contributor

This function could be implemented using consume_drug actor. Same for iodine below. Like this:

"use_action" : {
            "type" : "consume_drug",
            "activation_message" : "You take some [drugname].",
            "effects" : [
                {
                    "id": "[drug effect id here]",
                    "duration": [duration here]
                }
            ]
        },

This would make maintenance easier.

@@ -8326,6 +8326,8 @@ void player::suffer()
rads = localRadiation / 200.0f + selfRadiation / 10.0f;
} else {
rads = localRadiation / 32.0f + selfRadiation / 3.0f;
} if (has_effect("iodine")) {

This comment has been minimized.

Copy link
@Coolthulhu

Coolthulhu Jan 6, 2016

Contributor

That formatting makes it look misleading, as if it was an if/else

"id": "pblue",
"duration": 1200
}
],

This comment has been minimized.

Copy link
@Cyrano7

Cyrano7 Jan 6, 2016

Member

You need a ] }, here I think.

@Coolthulhu Coolthulhu self-assigned this Jan 10, 2016

Coolthulhu added a commit that referenced this pull request Jan 10, 2016

Merge pull request #14736 from Rivet-the-Zombie/prussian-blue
Fixes radiation protection/treatment pills.

@Coolthulhu Coolthulhu merged commit 3e3dbbf into CleverRaven:master Jan 10, 2016

1 check passed

default This has been rescheduled for testing as the 'master' branch has been updated.

@Rivet-the-Zombie Rivet-the-Zombie deleted the Rivet-the-Zombie:prussian-blue branch Jan 13, 2016

@chaosvolt

This comment has been minimized.

Copy link
Contributor

commented Jan 22, 2016

Ooh, I missed this it seems. Interesting to see this. So essentially we now have Rad-X and Radaway. XP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.