Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bounty] Oozeling Membrane Murmur Ability #4365

Merged
merged 10 commits into from
Dec 15, 2024
36 changes: 36 additions & 0 deletions monkestation/code/modules/smithing/oozelings/actions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,39 @@
else
to_chat(owner, span_notice("You fine-tune the electromagnetic signals from your core to be picked up by GPS receivers upon it's rejection."))
core.gps_active = TRUE
///////
/// MEMBRANE MURMUR SPELL
/// Use your core to attempt to call out for help or attention.
/datum/action/cooldown/spell/membrane_murmur
name = "Membrane Murmur"
desc = "Force your core to pass gasses to make noticable sounds."
button_icon = 'icons/mob/actions/actions_slime.dmi'
button_icon_state = "gel_cocoon"
background_icon_state = "bg_alien"
overlay_icon_state = "bg_alien_border"

cooldown_time = 25 SECONDS
check_flags = NONE
spell_requirements = SPELL_CASTABLE_AS_BRAIN

/datum/action/cooldown/spell/membrane_murmur/cast(obj/item/organ/internal/brain = usr)
. = ..()
var/bubble = "slime"
var/message = list(
"Blorp... glub... help...",
"Glooop... save me...",
"Alone... burbble too quiet...",
"What’s left... of me...?",
"Can’t feel... can’t... think...",
"Plasma... need... plasma...",
"It’s so... quiet..."
)

if(istype(brain, /obj/item/organ/internal/brain/slime))
var/obj/item/organ/internal/brain/slime/talkingbrain = brain
if(istype(usr, /mob/living/brain) && talkingbrain.brainmob == usr)
talkingbrain.say(pick(message), bubble,list(), TRUE, null, FALSE, null, FALSE, 2, null)
else
return FALSE
else
return FALSE
6 changes: 6 additions & 0 deletions monkestation/code/modules/smithing/oozelings/body/organs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@
var/rebuilt = TRUE
var/coredeath = TRUE

var/datum/action/cooldown/spell/membrane_murmur/membrane_mur

/obj/item/organ/internal/brain/slime/Initialize(mapload, mob/living/carbon/organ_owner, list/examine_list)
. = ..()
membrane_mur = new /datum/action/cooldown/spell/membrane_murmur()
ADD_TRAIT(src, TRAIT_CASTABLE_LOC, INNATE_TRAIT)
colorize()
transform.Scale(2, 2)

Expand Down Expand Up @@ -165,6 +169,7 @@
AddComponent(/datum/component/gps, "[victim]'s Core")

if(brainmob)
membrane_mur.Grant(brainmob)
var/datum/antagonist/changeling/target_ling = brainmob.mind?.has_antag_datum(/datum/antagonist/changeling)

if(target_ling)
Expand Down Expand Up @@ -283,6 +288,7 @@
new_body.visible_message(span_warning("[new_body]'s body fully forms from [new_body.p_their()] core!"))
to_chat(owner, span_purple("Your body fully forms from your core!"))

membrane_mur.Remove(brainmob)
brainmob?.mind?.transfer_to(new_body)
new_body.grab_ghost()
transfer_observers_to(new_body)
Expand Down
Loading