mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
[MIRROR] Non-changeling spawned headslugs now burst non-antag changeling variant again (#6735)
* Non-changeling spawned headslugs now burst non-antag changeling variant again (#59944) * Non-changeling spawned headslugs now burst non-antag changeling variant again Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -712,3 +712,23 @@
|
||||
|
||||
return parts.Join("<br>")
|
||||
|
||||
// Changelings spawned from non-changeling headslugs (IE, due to being transformed into a headslug as a non-ling). Weaker than a normal changeling.
|
||||
/datum/antagonist/changeling/headslug
|
||||
name = "Headslug Changeling"
|
||||
show_in_antagpanel = FALSE
|
||||
give_objectives = FALSE
|
||||
soft_antag = TRUE
|
||||
|
||||
geneticpoints = 5
|
||||
total_geneticspoints = 5
|
||||
chem_charges = 10
|
||||
chem_storage = 50
|
||||
total_chem_storage = 50
|
||||
|
||||
/datum/antagonist/changeling/headslug/greet()
|
||||
var/policy = get_policy(ROLE_HEADSLUG_CHANGELING)
|
||||
if(you_are_greet)
|
||||
to_chat(owner, span_boldannounce("You are a fresh changeling birthed from a headslug! You aren't as strong as a normal changeling, as you are newly born."))
|
||||
if(policy)
|
||||
to_chat(owner, policy)
|
||||
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/ling_aler.ogg', 100, FALSE, pressure_affected = FALSE, use_reverb = FALSE)
|
||||
|
||||
@@ -69,23 +69,23 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/item/organ/body_egg/changeling_egg/proc/Pop()
|
||||
var/mob/living/carbon/human/species/monkey/M = new(owner)
|
||||
var/mob/living/carbon/human/species/monkey/spawned_monkey = new(owner)
|
||||
|
||||
for(var/obj/item/organ/I in src)
|
||||
I.Insert(M, 1)
|
||||
I.Insert(spawned_monkey, 1)
|
||||
|
||||
if(origin && (origin.current ? (origin.current.stat == DEAD) : origin.get_ghost()))
|
||||
origin.transfer_to(M)
|
||||
var/datum/antagonist/changeling/C = origin.has_antag_datum(/datum/antagonist/changeling)
|
||||
if(!C)
|
||||
C = origin.add_antag_datum(/datum/antagonist/changeling)
|
||||
if(C.can_absorb_dna(owner))
|
||||
C.add_new_profile(owner)
|
||||
origin.transfer_to(spawned_monkey)
|
||||
spawned_monkey.key = origin.key
|
||||
var/datum/antagonist/changeling/changeling_datum = origin.has_antag_datum(/datum/antagonist/changeling)
|
||||
if(!changeling_datum)
|
||||
changeling_datum = origin.add_antag_datum(/datum/antagonist/changeling/headslug)
|
||||
if(changeling_datum.can_absorb_dna(owner))
|
||||
changeling_datum.add_new_profile(owner)
|
||||
|
||||
var/datum/action/changeling/humanform/hf = new
|
||||
C.purchasedpowers += hf
|
||||
C.regain_powers()
|
||||
M.key = origin.key
|
||||
changeling_datum.purchasedpowers += hf
|
||||
changeling_datum.regain_powers()
|
||||
owner.gib()
|
||||
|
||||
#undef EGG_INCUBATION_TIME
|
||||
|
||||
Reference in New Issue
Block a user