mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-21 22:47:19 +00:00
* This tail refactor turned into an organ refactor. Funny how that works. * Firstly, fixing all the conflicts. * Fixes all our maps (hopefully) * Actually, this should fix pod people hair :) * Almost everything is working, just two major things to fix * Fixed a certain kind of external organ * Cleaning up some more stuff * Turned tail_cat into tail because why the fuck are they separate? * Moved all the tails into tails.dmi because that was just dumb to have like 3 in a different file * Adds relevant_layers to organs to help with rendering * Makes stored_feature_id also check mutant_bodyparts * Fixes the icon_state names of ALL the tails (pain) * Fixes wagging, gotta refactor most mutant bodyparts later on * I Love Added Failures * Fixed some organs that slipped through my searches * This could possibly fix the CI for this? * It doesn't look like it did fix it * This will make it pass, even if it's ugly as sin. * Fixed Felinids having a weird ghost tail * Fixes instances of snouts and tails not being properly colored Co-authored-by: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
/obj/item/organ/internal/cyberimp/brain/anti_sleep
|
|
name = "CNS jumpstarter"
|
|
desc = "This implant will automatically attempt to jolt you awake when it detects you have fallen unconscious outside of REM sleeping cycles. Has a short cooldown. Conflicts with the CNS Rebooter, making them incompatible with eachother."
|
|
implant_color = "#0356fc"
|
|
slot = ORGAN_SLOT_BRAIN_ANTISTUN //One or the other, not both.
|
|
var/cooldown = FALSE
|
|
|
|
/obj/item/organ/internal/cyberimp/brain/anti_sleep/on_life(mob/living/carbon/human/H)
|
|
H = owner
|
|
if(H.stat == UNCONSCIOUS && cooldown==FALSE)
|
|
H.AdjustUnconscious(-100, FALSE)
|
|
H.AdjustSleeping(-100, FALSE)
|
|
to_chat(owner, span_notice("You feel a rush of energy course through your body!"))
|
|
cooldown = TRUE
|
|
addtimer(CALLBACK(src, .proc/sleepytimerend), 50)
|
|
else
|
|
return
|
|
|
|
/obj/item/organ/internal/cyberimp/brain/anti_sleep/proc/sleepytimerend()
|
|
cooldown = FALSE
|
|
to_chat(owner, span_notice("You hear a small beep in your head as your CNS Jumpstarter finishes recharging."))
|
|
|
|
/obj/item/organ/internal/cyberimp/brain/anti_sleep/emp_act(severity, mob/living/carbon/human/H)
|
|
. = ..()
|
|
H = owner
|
|
if((organ_flags & ORGAN_FAILING) || . & EMP_PROTECT_SELF)
|
|
return
|
|
organ_flags |= ORGAN_FAILING
|
|
H.AdjustUnconscious(200)
|
|
cooldown = TRUE
|
|
addtimer(CALLBACK(src, .proc/reboot), 90 / severity)
|
|
|
|
/obj/item/organ/internal/cyberimp/brain/anti_sleep/proc/reboot()
|
|
organ_flags &= ~ORGAN_FAILING
|
|
cooldown = FALSE
|