mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Merge pull request #6266 from Fox-McCloud/pill-fix
Fixes Dental Pill being an internal organ
This commit is contained in:
@@ -24,14 +24,13 @@
|
||||
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.
|
||||
for(var/obj/item/weapon/reagent_containers/food/pill in target.contents) // 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)]!", "<span class='notice'>You pull \the [tool] back out of [target]'s [parse_zone(target_zone)], there wans't enough room...</span>")
|
||||
return 0
|
||||
|
||||
user.drop_item()
|
||||
target.internal_organs += tool
|
||||
tool.forceMove(target)
|
||||
|
||||
var/datum/action/item_action/hands_free/activate_pill/P = new
|
||||
|
||||
Reference in New Issue
Block a user