mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-10 07:30:36 +01:00
Add breast and penis augmentation surgeries
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
/datum/surgery/breast_augmentation
|
||||
name = "Breast augmentation"
|
||||
steps = list(/datum/surgery_step/incise, /datum/surgery_step/clamp_bleeders, /datum/surgery_step/retract_skin, /datum/surgery_step/augment_breasts, /datum/surgery_step/close)
|
||||
species = list(/mob/living/carbon/human)
|
||||
possible_locs = list(BODY_ZONE_CHEST)
|
||||
|
||||
/datum/surgery_step/augment_breasts
|
||||
name = "augment breasts"
|
||||
implements = list(/obj/item/scalpel = 100, /obj/item/stack/sheet/plastic = 100, /obj/item/melee/transforming/energy/sword = 75, /obj/item/kitchen/knife = 65,
|
||||
/obj/item/shard = 45, /obj/item = 30) // 30% success with any sharp item.
|
||||
time = 32
|
||||
repeatable = TRUE
|
||||
|
||||
/datum/surgery_step/augment_breasts/tool_check(mob/user, obj/item/tool)
|
||||
if(istype(tool, /obj/item/cautery) || istype(tool, /obj/item/gun/energy/laser))
|
||||
return FALSE
|
||||
return !tool.is_hot()
|
||||
|
||||
/datum/surgery_step/augment_breasts/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
//Patient has titties
|
||||
if(target.has_breasts())
|
||||
if(tool.is_sharp())
|
||||
display_results(user, target, "<span class='notice'>You begin to cut the excess out of [target]'s breasts, bringing them down a cup size...</span>",
|
||||
"[user] begins to augment [target]'s breasts.",
|
||||
"[user] begins to augment [target]'s breasts.")
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
display_results(user, target, "<span class='notice'>You begin to mold, shape, and then add plastic to [target]'s breasts, increasing their cup size by 1...</span>",
|
||||
"[user] begins to augment [target]'s breasts.",
|
||||
"[user] begins to augment [target]'s breasts.")
|
||||
//Patient does not have titties
|
||||
else
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
display_results(user, target, "<span class='notice'>You begin to remodel [target]'s chest, creating a new pair of breasts which are barely A cups...</span>",
|
||||
"[user] begins to perform plastic surgery on [target].",
|
||||
"[user] begins to perform plastic surgery on [target].")
|
||||
|
||||
/datum/surgery_step/augment_breasts/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
var/obj/item/organ/genital/breasts/B = target.getorganslot("breasts")
|
||||
//Patient has titties
|
||||
if(B)
|
||||
//Reduce their size (you fucking monster)
|
||||
if(tool.is_sharp())
|
||||
B.cached_size = B.cached_size - 1
|
||||
B.update()
|
||||
return 1
|
||||
//Increase the size (that's more like it!)
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
var/obj/item/stack/sheet/plastic/pS = tool
|
||||
pS.amount = pS.amount - 1
|
||||
if(pS.amount < 1)
|
||||
pS.Destroy()
|
||||
|
||||
B.cached_size = B.cached_size + 1
|
||||
B.update()
|
||||
return 1
|
||||
//Patient does not have titties
|
||||
else
|
||||
//Give 'em titties
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
//Makes it so no one has any weird coloured tits
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(H.dna.species.use_skintones)
|
||||
H.dna.features["breasts_color"] = skintone2hex(H.skin_tone)
|
||||
else
|
||||
H.dna.features["breasts_color"] = H.dna.features["mcolor"]
|
||||
|
||||
var/obj/item/stack/sheet/plastic/pS = tool
|
||||
pS.amount = pS.amount - 1
|
||||
if(pS.amount < 1)
|
||||
pS.Destroy()
|
||||
|
||||
var/obj/item/organ/genital/breasts/nB = new
|
||||
nB.size = "flat"
|
||||
nB.cached_size = 0
|
||||
nB.prev_size = 0
|
||||
nB.Insert(target)
|
||||
nB.update()
|
||||
return 1
|
||||
@@ -0,0 +1,78 @@
|
||||
/datum/surgery/penis_augmentation
|
||||
name = "Penis augmentation"
|
||||
steps = list(/datum/surgery_step/incise, /datum/surgery_step/clamp_bleeders, /datum/surgery_step/retract_skin, /datum/surgery_step/augment_penis, /datum/surgery_step/close)
|
||||
species = list(/mob/living/carbon/human)
|
||||
possible_locs = list(BODY_ZONE_PRECISE_GROIN)
|
||||
|
||||
/datum/surgery_step/augment_penis
|
||||
name = "augment penis"
|
||||
implements = list(/obj/item/scalpel = 100, /obj/item/stack/sheet/plastic = 100, /obj/item/melee/transforming/energy/sword = 75, /obj/item/kitchen/knife = 65,
|
||||
/obj/item/shard = 45, /obj/item = 30) // 30% success with any sharp item.
|
||||
time = 32
|
||||
repeatable = TRUE
|
||||
|
||||
/datum/surgery_step/augment_penis/tool_check(mob/user, obj/item/tool)
|
||||
if(istype(tool, /obj/item/cautery) || istype(tool, /obj/item/gun/energy/laser))
|
||||
return FALSE
|
||||
return !tool.is_hot()
|
||||
|
||||
/datum/surgery_step/augment_penis/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
//Patient has a cock
|
||||
if(target.has_penis())
|
||||
if(tool.is_sharp())
|
||||
display_results(user, target, "<span class='notice'>You begin to reshape [target]'s penis, decreasing it's length by an inch...</span>",
|
||||
"[user] begins to augment [target]'s penis.",
|
||||
"[user] begins to augment [target]'s penis.")
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
display_results(user, target, "<span class='notice'>You begin to mold, shape, and then add plastic to [target]'s penis, making it one inch bigger...</span>",
|
||||
"[user] begins to augment [target]'s penis.",
|
||||
"[user] begins to augment [target]'s penis.")
|
||||
//Patient does not have a cock
|
||||
else
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
display_results(user, target, "<span class='notice'>You begin to remodel [target]'s groin, creating a new penis of length 1 inch...</span>",
|
||||
"[user] begins to perform plastic surgery on [target].",
|
||||
"[user] begins to perform plastic surgery on [target].")
|
||||
|
||||
/datum/surgery_step/augment_penis/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
var/obj/item/organ/genital/penis/P = target.getorganslot("penis")
|
||||
//Patient has a cock
|
||||
if(P)
|
||||
//Reduce their size
|
||||
if(tool.is_sharp())
|
||||
P.cached_length = P.cached_length - 1
|
||||
P.update()
|
||||
return 1
|
||||
//Increase the size
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
var/obj/item/stack/sheet/plastic/pS = tool
|
||||
pS.amount = pS.amount - 1
|
||||
if(pS.amount < 1)
|
||||
pS.Destroy()
|
||||
|
||||
P.cached_length = P.cached_length + 1
|
||||
P.update()
|
||||
return 1
|
||||
//Patient does not have a cock
|
||||
else
|
||||
//Give 'em a cock
|
||||
if(istype(tool, /obj/item/stack/sheet/plastic))
|
||||
//Makes it so no one has a weird coloured dick
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(H.dna.species.use_skintones)
|
||||
H.dna.features["penis_color"] = skintone2hex(H.skin_tone)
|
||||
else
|
||||
H.dna.features["penis_color"] = H.dna.features["mcolor"]
|
||||
|
||||
var/obj/item/stack/sheet/plastic/pS = tool
|
||||
pS.amount = pS.amount - 1
|
||||
if(pS.amount < 1)
|
||||
pS.Destroy()
|
||||
|
||||
var/obj/item/organ/genital/penis/nP = new
|
||||
nP.length = 1
|
||||
nP.cached_length = 1
|
||||
nP.prev_length = 0
|
||||
nP.Insert(target)
|
||||
nP.update()
|
||||
return 1
|
||||
Reference in New Issue
Block a user