Checks work better when you actually check them.

Adds some low level logging for implanted pill use. If you want specific logging for when certain chemicals come into play, that's more a goofchem problem.

Fixes some grammer while I'm here
This commit is contained in:
Incoming
2015-11-02 01:12:48 -05:00
parent b36e26d7d2
commit 30e8a39869
+5 -4
View File
@@ -9,7 +9,7 @@
time = 16
/datum/surgery_step/insert_pill/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
user.visible_message("[user] begins to wedge [tool] in [target]'s [parse_zone(target_zone)].", "<span class='notice'>You begin to wedge [tool] in [target]'s [parse_zone(target_zone)]...</span>")
user.visible_message("[user] begins to wedge \the [tool] in [target]'s [parse_zone(target_zone)].", "<span class='notice'>You begin to wedge [tool] in [target]'s [parse_zone(target_zone)]...</span>")
/datum/surgery_step/insert_pill/success(mob/user, mob/living/carbon/target, target_zone, var/obj/item/weapon/reagent_containers/pill/tool, datum/surgery/surgery)
if(!istype(tool))
@@ -24,16 +24,17 @@
P.target = tool
P.Grant(target)
user.visible_message("[user] wedges [tool] into [target]'s [parse_zone(target_zone)]!", "<span class='notice'>You wedge [tool] into [target]'s [parse_zone(target_zone)].</span>")
user.visible_message("[user] wedges \the [tool] into [target]'s [parse_zone(target_zone)]!", "<span class='notice'>You wedge [tool] into [target]'s [parse_zone(target_zone)].</span>")
return 1
/datum/action/item_action/hands_free/activate_pill
name = "activate pill"
/datum/action/item_action/hands_free/activate_pill/Trigger()
owner << "<span class='caution'>You grit your teeth and burst the implanted [target]!</span>"
if(CheckRemoval(owner))
if(!..() || CheckRemoval(owner))
return 0
owner << "<span class='caution'>You grit your teeth and burst the implanted [target]!</span>"
add_logs(owner, null, "swallowed an implanted pill", target)
if(target.reagents.total_volume)
target.reagents.reaction(owner, INGEST)
target.reagents.trans_to(owner, target.reagents.total_volume)