mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 20:53:34 +00:00
* fuck it * these too * ooops * i did it again * moved some vars around * updates generics * rematch * oh shit i think this needs a break * agh * wall * updates comment * compile after 2 years * this might break things * typo fix * restores surgery sound to default * Misplaced thingy * support for some new ghetto surgery changes * organ2 * Update code/modules/surgery/bones.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> * Update code/modules/surgery/surgery.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> * review change --------- Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com> Co-authored-by: Bmon <no@email.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
79 lines
3.8 KiB
Plaintext
79 lines
3.8 KiB
Plaintext
/datum/surgery/core_removal
|
|
name = "core removal"
|
|
steps = list(/datum/surgery_step/slime/cut_flesh, /datum/surgery_step/slime/extract_core)
|
|
target_mobtypes = list(/mob/living/simple_animal/slime)
|
|
requires_bodypart = FALSE
|
|
possible_locs = list(BODY_ZONE_CHEST, BODY_ZONE_HEAD, BODY_ZONE_L_ARM, BODY_ZONE_PRECISE_L_HAND, BODY_ZONE_R_ARM, BODY_ZONE_PRECISE_R_HAND, BODY_ZONE_R_LEG, BODY_ZONE_PRECISE_R_FOOT, BODY_ZONE_L_LEG, BODY_ZONE_PRECISE_L_FOOT, BODY_ZONE_PRECISE_GROIN)
|
|
|
|
/datum/surgery/core_removal/can_start(mob/user, mob/living/carbon/target)
|
|
. = ..()
|
|
return . && target.stat == DEAD
|
|
|
|
|
|
/datum/surgery_step/slime
|
|
|
|
/datum/surgery_step/slime/cut_flesh
|
|
allowed_tools = list(
|
|
TOOL_SCALPEL = 100,
|
|
/obj/item/melee/energy/sword = 75,
|
|
/obj/item/kitchen/knife = 65,
|
|
/obj/item/shard = 45
|
|
)
|
|
|
|
preop_sound = 'sound/surgery/scalpel1.ogg'
|
|
success_sound = 'sound/surgery/scalpel2.ogg'
|
|
failure_sound = 'sound/surgery/organ2.ogg'
|
|
time = 1.6 SECONDS
|
|
|
|
/datum/surgery_step/slime/cut_flesh/begin_step(mob/user, mob/living/simple_animal/slime/target, target_zone, obj/item/tool)
|
|
user.visible_message("[user] starts cutting through [target]'s flesh with \the [tool].", "You start cutting through [target]'s flesh with \the [tool].", chat_message_type = MESSAGE_TYPE_COMBAT)
|
|
return ..()
|
|
|
|
/datum/surgery_step/slime/cut_flesh/end_step(mob/living/user, mob/living/simple_animal/slime/target, target_zone, obj/item/tool)
|
|
user.visible_message("<span class='notice'>[user] cuts through [target]'s flesh with \the [tool].</span>",
|
|
"<span class='notice'>You cut through [target]'s flesh with \the [tool], revealing its silky innards.</span>", chat_message_type = MESSAGE_TYPE_COMBAT)
|
|
return SURGERY_STEP_CONTINUE
|
|
|
|
/datum/surgery_step/slime/cut_flesh/fail_step(mob/living/user, mob/living/simple_animal/slime/target, target_zone, obj/item/tool)
|
|
user.visible_message("<span class='warning'>[user]'s hand slips, tearing [target]'s flesh with \the [tool]!</span>", \
|
|
"<span class='warning'>Your hand slips, tearing [target]'s flesh with \the [tool]!</span>", chat_message_type = MESSAGE_TYPE_COMBAT)
|
|
return SURGERY_STEP_RETRY
|
|
|
|
/datum/surgery_step/slime/extract_core
|
|
name = "extract core"
|
|
allowed_tools = list(TOOL_HEMOSTAT = 100, TOOL_CROWBAR = 100)
|
|
preop_sound = 'sound/surgery/organ1.ogg'
|
|
success_sound = 'sound/surgery/organ2.ogg'
|
|
time = 1.6 SECONDS
|
|
|
|
/datum/surgery_step/slime/extract_core/begin_step(mob/user, mob/living/simple_animal/slime/target, target_zone, obj/item/tool)
|
|
user.visible_message(
|
|
"<span class='notice'>[user] begins to extract a core from [target].</span>",
|
|
"<span class='notice'>You begin to extract a core from [target]...</span>",
|
|
chat_message_type = MESSAGE_TYPE_COMBAT
|
|
)
|
|
return ..()
|
|
|
|
|
|
/datum/surgery_step/slime/extract_core/end_step(mob/user, mob/living/simple_animal/slime/slime, target_zone, obj/item/tool)
|
|
if(slime.cores > 0)
|
|
slime.cores--
|
|
user.visible_message("<span class='notice'>[user] successfully extracts a core from [slime]!</span>",
|
|
"<span class='notice'>You successfully extract a core from [slime]. [slime.cores] core\s remaining.</span>", chat_message_type = MESSAGE_TYPE_COMBAT)
|
|
|
|
new slime.coretype(slime.loc)
|
|
|
|
if(slime.cores <= 0)
|
|
slime.icon_state = "[slime.colour] baby slime dead-nocore"
|
|
return SURGERY_STEP_CONTINUE
|
|
else
|
|
return SURGERY_STEP_INCOMPLETE
|
|
else
|
|
to_chat(user, "<span class='warning'>There aren't any cores left in [slime]!</span>")
|
|
return SURGERY_STEP_CONTINUE
|
|
|
|
/datum/surgery_step/slime/extract_core/fail_step(mob/living/user, mob/living/simple_animal/slime/target, target_zone, obj/item/tool)
|
|
user.visible_message("<span class='warning'>[user]'s hand slips, tearing [target]'s flesh with \the [tool]!</span>", \
|
|
"<span class='warning'>Your hand slips, tearing [target]'s flesh with \the [tool]!</span>", chat_message_type = MESSAGE_TYPE_COMBAT)
|
|
return SURGERY_STEP_RETRY
|