mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 01:51:50 +00:00
## About The Pull Request This PR kills the abstract internal and external typepaths for organs, now replaced by an EXTERNAL_ORGAN flag to distinguish the two kinds. This PR also fixes fox ears (from #87162, no tail is added) and mushpeople's caps (they should be red, the screenshot is a tad outdated). And yes, you can now use a hair dye spray to recolor body parts like most tails, podpeople hair, mushpeople caps and cat ears. The process can be reversed by using the spray again. ## Why It's Good For The Game Time-Green put some effort during the last few months to untie functions and mechanics from external/internal organ pathing. Now, all that this pathing is good for are a few typechecks, easily replaceable with bitflags. Also podpeople and mushpeople need a way to recolor their "hair". This kind of applies to fish tails from the fish infusion, which colors can't be selected right now. The rest is just there if you ever want to recolor your lizard tail for some reason. Proof of testing btw (screenshot taken before mushpeople cap fix, right side has dyed body parts, moth can't be dyed, they're already fabolous):  ## Changelog 🆑 code: Removed internal/external pathing from organs in favor of a bit flag. Hopefully this shouldn't break anything about organs. fix: Fixed invisible fox ears. fix: Fixed mushpeople caps not being colored red by default. add: You can now dye most tails, podpeople hair, mushpeople caps etc. with a hair dye spray. /🆑
64 lines
3.0 KiB
Plaintext
64 lines
3.0 KiB
Plaintext
/**
|
|
* # Experi-Scanner
|
|
*
|
|
* Handheld scanning unit to perform scanning experiments
|
|
*/
|
|
/obj/item/experi_scanner
|
|
name = "Experi-Scanner"
|
|
desc = "A handheld scanner used for completing the many experiments of modern science."
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
icon = 'icons/obj/devices/scanner.dmi'
|
|
icon_state = "experiscanner"
|
|
lefthand_file = 'icons/mob/inhands/items/devices_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items/devices_righthand.dmi'
|
|
|
|
/obj/item/experi_scanner/Initialize(mapload)
|
|
..()
|
|
return INITIALIZE_HINT_LATELOAD
|
|
|
|
// Late initialize to allow for the rnd servers to initialize first
|
|
/obj/item/experi_scanner/LateInitialize()
|
|
var/static/list/handheld_signals = list(
|
|
COMSIG_ITEM_PRE_ATTACK = TYPE_PROC_REF(/datum/component/experiment_handler, try_run_handheld_experiment),
|
|
COMSIG_ITEM_AFTERATTACK = TYPE_PROC_REF(/datum/component/experiment_handler, ignored_handheld_experiment_attempt),
|
|
)
|
|
AddComponent(/datum/component/experiment_handler, \
|
|
allowed_experiments = list(/datum/experiment/scanning, /datum/experiment/physical), \
|
|
disallowed_traits = EXPERIMENT_TRAIT_DESTRUCTIVE, \
|
|
experiment_signals = handheld_signals, \
|
|
)
|
|
|
|
/obj/item/experi_scanner/suicide_act(mob/living/carbon/user)
|
|
user.visible_message(span_suicide("[user] is giving in to the Great Toilet Beyond! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
|
|
forceMove(drop_location())
|
|
user.forceMove(src)
|
|
user.AddComponent(/datum/component/itembound, src) //basically a bread smite but with a bloody finale
|
|
icon_state = "experiscanner_closed"
|
|
add_atom_colour(COLOR_RED, ADMIN_COLOUR_PRIORITY)
|
|
|
|
playsound(src, 'sound/effects/pope_entry.ogg', 60, TRUE)
|
|
playsound(src, 'sound/machines/destructive_scanner/ScanDangerous.ogg', 40)
|
|
user.emote("scream")
|
|
|
|
addtimer(CALLBACK(src, PROC_REF(make_meat_toilet), user), 5 SECONDS)
|
|
return MANUAL_SUICIDE
|
|
|
|
/obj/item/experi_scanner/proc/make_meat_toilet(mob/living/carbon/user)
|
|
///The suicide victim's brain that will be placed inside the toilet's cistern
|
|
var/obj/item/organ/brain/toilet_brain = user.get_organ_slot(ORGAN_SLOT_BRAIN)
|
|
///The toilet we're about to unleash unto this cursed plane of existence
|
|
var/obj/structure/toilet/greyscale/result_toilet = new (drop_location())
|
|
|
|
result_toilet.set_custom_materials(list(GET_MATERIAL_REF(/datum/material/meat/mob_meat, user) = SHEET_MATERIAL_AMOUNT))
|
|
result_toilet.desc = "A horrendous mass of fused flesh resembling a standard-issue HT-451 model toilet. How it manages to function as one is beyond you. \
|
|
This one seems to be made out of the flesh of a devoted employee of the RnD department."
|
|
result_toilet.buildstacktype = /obj/effect/decal/remains/human //this also prevents the toilet from dropping meat sheets. if you want to cheese the meat exepriments, sacrifice more people
|
|
|
|
icon_state = "experiscanner"
|
|
remove_atom_colour(ADMIN_COLOUR_PRIORITY, COLOR_RED)
|
|
|
|
user.gib(DROP_BRAIN) //we delete everything but the brain, as it's going to be moved to the cistern
|
|
toilet_brain.forceMove(result_toilet)
|
|
result_toilet.w_items += toilet_brain.w_class
|