Skip to content

Commit

Permalink
Gives hivemind to clings as default again (ParadiseSS13#27480)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGamerL authored Dec 17, 2024
1 parent f7199cc commit 3fb4c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 3 additions & 1 deletion code/modules/antagonists/changeling/datum_changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RESTRICT_TYPE(/datum/antagonist/changeling)
/datum/antagonist/changeling/greet()
. = ..()
SEND_SOUND(owner.current, sound('sound/ambience/antag/ling_alert.ogg'))
. += "<span class='danger'>Remember: you get all of their absorbed DNA if you absorb a fellow changeling.</span>"
. += "<span class='danger'>Use say \":g message\" to communicate with your fellow changelings. Remember: you get all of their absorbed DNA if you absorb a fellow changeling.</span>"

/datum/antagonist/changeling/farewell()
to_chat(owner.current, "<span class='biggerdanger'><b>You grow weak and lose your powers! You are no longer a changeling and are stuck in your current form!</b></span>")
Expand All @@ -98,6 +98,7 @@ RESTRICT_TYPE(/datum/antagonist/changeling)
START_PROCESSING(SSobj, src)
add_new_languages(L.languages) // Absorb the languages of the new body.
update_languages() // But also, give the changeling the languages they've already absorbed before this.
L.add_language("Changeling")
// If there's a mob_override, this is a body transfer, and therefore we should give them back their powers they had while in the old body.
if(mob_override)
for(var/datum/action/changeling/power in acquired_powers)
Expand Down Expand Up @@ -125,6 +126,7 @@ RESTRICT_TYPE(/datum/antagonist/changeling)
if(L.hud_used?.lingstingdisplay)
L.hud_used.lingstingdisplay.invisibility = 101
L.hud_used.lingchemdisplay.invisibility = 101
L.remove_language("Changeling")
remove_unnatural_languages(L)
UnregisterSignal(L, COMSIG_MOB_DEATH)
// If there's a mob_override, this is a body transfer, and therefore we should only remove their powers from the old body.
Expand Down
11 changes: 2 additions & 9 deletions code/modules/antagonists/changeling/powers/hivemind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@ GLOBAL_LIST_EMPTY(hivemind_bank)

/datum/action/changeling/hivemind_pick
name = "Hivemind Access"
desc = "Allows us to upload or absorb DNA in the airwaves. Does not count towards absorb objectives. Allows us to speak over the Changeling Hivemind using :g. Costs 10 chemicals."
desc = "Allows us to upload or absorb DNA in the airwaves. Does not count towards absorb objectives. Costs 10 chemicals."
helptext = "Tunes our chemical receptors for hivemind communication, which passively grants us access to the Changeling Hivemind."
button_overlay_icon_state = "hive_absorb"
chemical_cost = 10
dna_cost = 4
power_type = CHANGELING_PURCHASABLE_POWER
power_type = CHANGELING_INNATE_POWER
category = /datum/changeling_power_category/utility

/datum/action/changeling/hivemind_pick/on_purchase(mob/user, datum/antagonist/changeling/C)
if(!..())
return
user.add_language("Changeling")
to_chat(user, "<span class='notice'>We feel our consciousness become capable of communion with the hivemind.</span>")

/datum/action/changeling/hivemind_pick/sting_action(mob/user)
var/channel_pick = tgui_alert(user, "Upload or Absorb DNA?", "Channel Select", list("Upload", "Absorb"))

Expand Down

0 comments on commit 3fb4c7f

Please sign in to comment.