Tooth brush

Someone please make this happen. This is as far as I could get in the JSONs and ripping off stuff that I wanted to mimick:

comestibles.json

{
“type” : “COMESTIBLE”,
“id” : “tooth_paste”,
“name” : “tooth paste”,
“weight” : 1,
“color” : “green”,
“addiction_type” : “none”,
“spoils_in” : 0,
“use_action” : “brush_teeth”,
“stim” : 0,
“container” : “null”,
“to_hit” : 0,
“comestible_type” : “MED”,
“symbol” : “!”,
“quench” : 0,
“heal” : 0,
“addiction_potential” : 0,
“nutrition” : 0,
“description” : “Mostly water with an abrasive agent, fluoride, and detergent. This tube advertises it can make your teeth strong enough to eat other teeth.”,
“price” : 170,
“material” : “plastic”,
“tool” : “null”,
“volume” : 1,
“cutting” : 0,
“phase” : “solid”,
“charges” : 50,
“stack_size” : 100,
“bashing” : 0,
“fun” : 10
},

iuse.cpp

int iuse::brush_teeth(game *g, player *p, item *it, bool t) {
// Requires toothbrush and something to brush with.
bool alreadyBrushed = (p->has_disease(“clean_teeth”));
bool hasBrush = (p->has_amount(“brushing_apparatus”, 1));
bool canBrush = (hasBrush || p->has_charges(“tooth_paste”, 1));
if (!canBrush) {
g->add_msg_if_player(p,(“You haven’t got anything to brush with.”));
return 0;
} else if (!hasBrush && p->has_charges(“clean_water”, 1)) {
p->use_charges_if_avail(“tooth_paste”, 1);
}
if (p->use_charges_if_avail(“clean_water”, 1)) {
p->health += 4;
p->thirst += 1;
if (!alreadyBrushed) {
g->add_msg_if_player(p,
(“You scrub the gunk off your teeth.”));
} else {
g->add_msg_if_player(p,(“You brush again and make sure to brush away from the gums.”));
}
p->add_disease(“clean_teeth”, 90);
} else {
g->add_msg_if_player(p,
(“You need some clean water to rinse with.”));
return 0;
}
return it->type->charges_to_use();
}

player.cpp

int player::amount_of(itype_id it) {
if (it == “toolset” && has_bionic(“bio_tools”)) {
return 1;
}
if (it == “apparatus”) {
if (has_amount(“crackpipe”, 1) ||
has_amount(“can_drink”, 1) ||
has_amount(“pipe_glass”, 1) ||
has_amount(“pipe_tobacco”, 1)) {
return 1;
}
}
}
if (it == “brushing_apparatus”) {
if (has_amount(“tooth_brush”, 1)) {
return 1;
}
}
int quantity = 0;

tools.json

{
“id”: “tooth_brush”,
“type”: “TOOL”,
“symbol”: “;”,
“color”: “dark_gray”,
“name”: “tooth brush”,
“description”: “A plastic handle with nylon bristles bunched up on one end. Your teeth will thank you.”,
“price”: 800,
“material”: [“plastic”],
“weight”: 100,
“volume”: 1,
“bashing”: 1,
“cutting”: 0,
“to_hit”: -4,
“max_charges”: 0,
“initial_charges”: 0,
“charges_per_use”: 0,
“turns_per_charge”: 0,
“ammo”: “NULL”,
“revert_to”: “null”,
“use_action”: “brush_teeth”
},

item groups.json

},{
“type”:“item_group”,
“id”:“softdrugs”,
“items”:[
[“tooth_brush”, 50],
[“tooth_paste”, 50],
[“bandages”, 50],
[“1st_aid”, 35],
[“vitamins”, 75],
[“aspirin”, 85],
[“caffeine”, 25],
[“pills_sleep”, 15],
[“iodine”, 5],
[“dayquil”, 70],
[“nyquil”, 70],
[“disinfectant”, 35],
[“vaccine_shot”, 10],
[“protein_powder”, 15],
[“caff_gum”, 10],
[“nic_gum”, 25]
]
},{

iuse.h

int brush_teeth (game *g, player *p, item *it, bool t);

What effects would “clean teeth” have?

Minty fresh breath for breathtaking NPC interaction.

SHARPEN THE TOOTHBRUSH

I meant it to prevent endlessly re-using the toothbrush for the health benefit. Once you have clean_teeth you can’t make them any cleaner

Even scary monsters don’t have plaque Kevin. Get with the times. Haven’t you seen the movies? EVEN IN THE APOCALYPSE EVERYONE HAS WHITE TEETH THAT COULD TAKE THE WHITE OUT OF FRESH SNOW.

OK, so brushing teeth is about as good as taking a pair of vitamins, and you can only brush so often.

Seems like a fair amount of work, and not sure I’d do it personally, but wev. No objection here.

I like the RP value of this thing even if it is not that useful for gameplay

Toothpaste has quite a few common uses in a household; it’s just not on-spot here, meaning what could it be used in Cataclysm besides cleaning yourself up after eating Bear. But then - it’s time to chew bubblegum, and we’re all out of gum. :stuck_out_tongue:

Well, you can use toothpaste if you want to remove pimples.
Seriously, but don’t rub it in too hard.

And yes, we should totally have pimples.

Too bad it’s not coded in a way so you could remove LC clones; the brush of brushes. :slight_smile:

love this. dirty teeth can lead to cavities and possible infections. This is a common issue in Africa. I saw a 60 minutes report about a ship run by a charity with doctors that docks in west africa.

http://www.mercyships.org/home/

Not posting this as a joke. I never realized how bad plaque can get. Its a real shame for these people.

before and after:

Spreading dental hygiene awareness among the zombie masters.

How about a health boost and a scent reduction until we eat again? Also, I think we need an artifact toothbrush. :wink:

“Your gums tingle.”
“Your mouth feels really grimy.”
“Your gums are bleeding. Gross!”
“Your teeth ache.”
“One of your teeth falls out. It’s rotten!”
“Your jaw feels really sore. It hurts.”
“Your teeth are all rotten! They’re all… loose. Feels disgusting.”
“You’ve lost all of your teeth!”

“Your empty mouth has gotten a bad infection. It hurts.”

“You cough and dark blood spills from your infected mouth. It really hurts!”

“Strange mushrooms rapidly grow out from your rotten gums! The pain is excruciating!”

OH GOD! Brush your teeth, kids.

[quote=“Slax, post:15, topic:4206”]“Your gums tingle.”
“Your mouth feels really grimy.”
“Your gums are bleeding. Gross!”
“Your teeth ache.”
“One of your teeth falls out. It’s rotten!”
“Your jaw feels really sore. It hurts.”
“Your teeth are all rotten! They’re all… loose. Feels disgusting.”
“You’ve lost all of your teeth!”

“Your empty mouth has gotten a bad infection. It hurts.”

“You cough and dark blood spills from your infected mouth. It really hurts!”

“Strange mushrooms rapidly grow out from your rotten gums! The pain is excruciating!”

OH GOD! Brush your teeth, kids.[/quote]

I demand the fallen teeth zombify, sprout faces, and march toward you to attack!

You should be able to obviously make a necklace out of all your teeth to wear.
DUH