Adds dental implant surgery.

While targeting the mouth drill a hole in a tooth then stick a pill in there for hands free later use.
This commit is contained in:
Incoming
2015-10-28 17:30:28 -04:00
parent 2efe2eb577
commit 7dfdb50919
4 changed files with 62 additions and 1 deletions
+41
View File
@@ -0,0 +1,41 @@
/datum/surgery/dental_implant
name = "dental implant"
steps = list(/datum/surgery_step/drill, /datum/surgery_step/insert_pill)
possible_locs = list("mouth")
/datum/surgery_step/insert_pill
name = "insert pill"
implements = list(/obj/item/weapon/reagent_containers/pill = 100)
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>")
/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))
return 0
user.drop_item()
target.internal_organs += tool
tool.loc = target
var/datum/action/item_action/hands_free/activate_pill/P = new
P.button_icon_state = tool.icon_state
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>")
return 1
/datum/action/item_action/hands_free/activate_pill
name = "activate pill"
/datum/action/item_action/hands_free/activate_pill/Trigger()
user << "<span class='caution'>You grit your teeth and burst the implanted [target]!</span>
if(CheckRemoval(owner))
return 0
if(target.reagents.total_volume)
target.reagents.reaction(owner, INGEST)
target.reagents.trans_to(owner, target.reagents.total_volume)
qdel(target)
return 1
+14 -1
View File
@@ -86,4 +86,17 @@
H.apply_damage(50,"brute","[target_zone]")
user.visible_message("[user] saws [target]'s [parse_zone(target_zone)] open!", "<span class='notice'>You saw [target]'s [parse_zone(target_zone)] open.</span>")
return 1
return 1
//drill bone
/datum/surgery_step/drill
name = "drill bone"
implements = list(/obj/item/weapon/surgicaldrill = 100, /obj/item/weapon/pickaxe/drill = 60, /obj/item/mecha_parts/mecha_equipment/drill = 60, /obj/item/weapon/screwdriver = 20)
time = 30
/datum/surgery_step/drill/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
user.visible_message("[user] begins to drill into the bone in [target]'s [parse_zone(target_zone)].", "<span class='notice'>You begin to drill into the bone in [target]'s [parse_zone(target_zone)]...</span>")
/datum/surgery_step/drill/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
user.visible_message("[user] drills into [target]'s [parse_zone(target_zone)]!", "<span class='notice'>You drill into [target]'s [parse_zone(target_zone)].</span>")
return 1
@@ -0,0 +1,6 @@
author: Incoming5643
delete-after: True
changes:
- rscadd: "Added dental implant surgery. While targeting the mouth drill a hole in a tooth then stick a pill in there for hands free later use."
+1
View File
@@ -1513,6 +1513,7 @@
#include "code\modules\space transition\space_transition.dm"
#include "code\modules\surgery\cavity_implant.dm"
#include "code\modules\surgery\core_removal.dm"
#include "code\modules\surgery\dental_implant.dm"
#include "code\modules\surgery\dethrall.dm"
#include "code\modules\surgery\eye_surgery.dm"
#include "code\modules\surgery\gender_reassignment.dm"