Ok, this mod is not even close to done, but I could use some help balancing what little I have finished.
mutX:
Add to iuse.h iuse class:
Add to item_factory.cpp to Item_Factory::Init:
Add to iuse.cpp near bottom:
void iuse::mutagen_8(game *g, player *p, item *it, bool t)
{
p->pain += 100;
p->hurtall(10);
p->mutate(g);
p->mutate(g);
p->mutate(g);
p->mutate(g);
if (one_in(5))
p->mutate(g);
if (!one_in(4))
p->mutate(g);
if (one_in(3))
p->mutate(g);
if (one_in(2))
p->mutate(g);
g->add_msg_if_player(p,"Your blood feels like it is burning!");
}
Add to itypedef.cpp:
[FOOD("mutX", "mutX", 8, 3000, c_magenta, FLESH, "null",
1, 1, 0, 0, 0, 0, -1, 0, 1, 0, &iuse::mutagen_8, ADD_NULL, "\
A syringe of mutagen that has been infused with radiation and assorted \n\
toxic chemicals. A chemistry experiment gone wrong. Good or bad, this \n\
will hurt.",0);
add to recipe.json:
{
"result": "mutX",
"category": "CC_CHEM",
"skill_pri": "cooking",
"skill_sec": "firstaid",
"difficulty": 5,
"time": 10000,
"reversible": false,
"autolearn": true,
"tools": [
[
["hotplate", 5],
["toolset", 2],
["fire", -1]
]
],
"components": [
[
["mutagen", 1]
],
[
["syringe", 1]
],
[
["sewage", 2]
],
[
["bleach",1]
]
]
},
Basically, it is an easy modification to mutagen that greatly improves its effects (which can be good or bad), but it causes immense pain and full body damage.