From 900211db2f63e3e7a13365ae67eb12946e397099 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sat, 26 Mar 2016 01:03:24 -0400 Subject: [PATCH] pill limit --- code/modules/surgery/dental_implant.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/surgery/dental_implant.dm b/code/modules/surgery/dental_implant.dm index 63425cb6986..5fbe6a5486c 100644 --- a/code/modules/surgery/dental_implant.dm +++ b/code/modules/surgery/dental_implant.dm @@ -23,6 +23,13 @@ if(!istype(tool)) return 0 + var/dental_implants = 0 + for(var/obj/item/weapon/reagent_containers/food/pill in target.internal_organs) // Can't give them more than 4 dental implants. + dental_implants++ + if(dental_implants >= 4) + user.visible_message("[user] pulls \the [tool] back out of [target]'s [parse_zone(target_zone)]!", "You pull \the [tool] back out of [target]'s [parse_zone(target_zone)], there wans't enough room...") + return 0 + user.drop_item() target.internal_organs += tool tool.forceMove(target)