mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
376 lines
14 KiB
Plaintext
376 lines
14 KiB
Plaintext
//These mutations change your overall "form" somehow, like size
|
|
|
|
//Epilepsy gives a very small chance to have a seizure every life tick, knocking you unconscious.
|
|
/datum/mutation/human/epilepsy
|
|
name = "Epilepsy"
|
|
desc = "A genetic defect that sporadically causes seizures."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You get a headache.</span>"
|
|
synchronizer_coeff = 1
|
|
power_coeff = 1
|
|
|
|
/datum/mutation/human/epilepsy/on_life()
|
|
if(prob(1 * GET_MUTATION_SYNCHRONIZER(src)) && owner.stat == CONSCIOUS)
|
|
owner.visible_message("<span class='danger'>[owner] starts having a seizure!</span>", "<span class='userdanger'>You have a seizure!</span>")
|
|
owner.Unconscious(200 * GET_MUTATION_POWER(src))
|
|
owner.Jitter(1000 * GET_MUTATION_POWER(src))
|
|
SEND_SIGNAL(owner, COMSIG_ADD_MOOD_EVENT, "epilepsy", /datum/mood_event/epilepsy)
|
|
addtimer(CALLBACK(src, .proc/jitter_less), 90)
|
|
|
|
/datum/mutation/human/epilepsy/proc/jitter_less(mob/living/carbon/human/owner)
|
|
if(owner)
|
|
owner.jitteriness = 10
|
|
|
|
|
|
//Unstable DNA induces random mutations!
|
|
/datum/mutation/human/bad_dna
|
|
name = "Unstable DNA"
|
|
desc = "Strange mutation that causes the holder to randomly mutate."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You feel strange.</span>"
|
|
locked = TRUE
|
|
|
|
/datum/mutation/human/bad_dna/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
to_chat(owner, text_gain_indication)
|
|
var/mob/new_mob
|
|
if(prob(95))
|
|
if(prob(50))
|
|
new_mob = owner.easy_randmut(NEGATIVE + MINOR_NEGATIVE)
|
|
else
|
|
new_mob = owner.randmuti()
|
|
else
|
|
new_mob = owner.easy_randmut(POSITIVE)
|
|
if(new_mob && ismob(new_mob))
|
|
owner = new_mob
|
|
. = owner
|
|
on_losing(owner)
|
|
|
|
|
|
//Cough gives you a chronic cough that causes you to drop items.
|
|
/datum/mutation/human/cough
|
|
name = "Cough"
|
|
desc = "A chronic cough."
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You start coughing.</span>"
|
|
synchronizer_coeff = 1
|
|
power_coeff = 1
|
|
|
|
/datum/mutation/human/cough/on_life()
|
|
if(prob(5 * GET_MUTATION_SYNCHRONIZER(src)) && owner.stat == CONSCIOUS)
|
|
owner.drop_all_held_items()
|
|
owner.emote("cough")
|
|
|
|
if(GET_MUTATION_POWER(src) > 1)
|
|
var/cough_range = GET_MUTATION_POWER(src) * 4
|
|
var/turf/target = get_ranged_target_turf(owner, turn(owner.dir, 180), cough_range)
|
|
owner.throw_at(target, cough_range, GET_MUTATION_POWER(src))
|
|
|
|
|
|
//Dwarfism shrinks your body and lets you pass tables.
|
|
/datum/mutation/human/dwarfism
|
|
name = "Dwarfism"
|
|
desc = "A mutation believed to be the cause of dwarfism."
|
|
quality = POSITIVE
|
|
difficulty = 16
|
|
instability = 5
|
|
conflicts = list(GIGANTISM)
|
|
locked = TRUE // Default intert species for now, so locked from regular pool.
|
|
|
|
/datum/mutation/human/dwarfism/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_DWARF, GENETIC_MUTATION)
|
|
owner.transform = owner.transform.Scale(1, 0.8)
|
|
passtable_on(owner, GENETIC_MUTATION)
|
|
owner.visible_message("<span class='danger'>[owner] suddenly shrinks!</span>", "<span class='notice'>Everything around you seems to grow..</span>")
|
|
|
|
/datum/mutation/human/dwarfism/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_DWARF, GENETIC_MUTATION)
|
|
owner.transform = owner.transform.Scale(1, 1.25)
|
|
passtable_off(owner, GENETIC_MUTATION)
|
|
owner.visible_message("<span class='danger'>[owner] suddenly grows!</span>", "<span class='notice'>Everything around you seems to shrink..</span>")
|
|
|
|
|
|
//Clumsiness has a very large amount of small drawbacks depending on item.
|
|
/datum/mutation/human/clumsy
|
|
name = "Clumsiness"
|
|
desc = "A genome that inhibits certain brain functions, causing the holder to appear clumsy. Honk"
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You feel lightheaded.</span>"
|
|
|
|
/datum/mutation/human/clumsy/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_CLUMSY, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/clumsy/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_CLUMSY, GENETIC_MUTATION)
|
|
|
|
|
|
//Tourettes causes you to randomly stand in place and shout.
|
|
/datum/mutation/human/tourettes
|
|
name = "Tourette's Syndrome"
|
|
desc = "A chronic twitch that forces the user to use colorful language."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You twitch.</span>"
|
|
synchronizer_coeff = 1
|
|
|
|
/datum/mutation/human/tourettes/on_life()
|
|
if(prob(10 * GET_MUTATION_SYNCHRONIZER(src)) && owner.stat == CONSCIOUS && !owner.IsStun())
|
|
owner.Stun(200)
|
|
switch(rand(1, 3))
|
|
if(1)
|
|
owner.emote("twitch")
|
|
if(2 to 3)
|
|
owner.say("[prob(50) ? ";" : ""][pick("SHIT", "PISS", "FUCK", "CUNT", "COCKSUCKER", "MOTHERFUCKER", "TITS")]", forced="tourette's syndrome")
|
|
var/x_offset_old = owner.pixel_x
|
|
var/y_offset_old = owner.pixel_y
|
|
var/x_offset = owner.pixel_x + rand(-2,2)
|
|
var/y_offset = owner.pixel_y + rand(-1,1)
|
|
animate(owner, pixel_x = x_offset, pixel_y = y_offset, time = 1)
|
|
animate(owner, pixel_x = x_offset_old, pixel_y = y_offset_old, time = 1)
|
|
|
|
|
|
//Deafness makes you deaf.
|
|
/datum/mutation/human/deaf
|
|
name = "Deafness"
|
|
desc = "The holder of this genome is completely deaf."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You can't seem to hear anything.</span>"
|
|
|
|
/datum/mutation/human/deaf/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_DEAF, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/deaf/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_DEAF, GENETIC_MUTATION)
|
|
|
|
|
|
//Monified turns you into a monkey.
|
|
/datum/mutation/human/race
|
|
name = "Monkified"
|
|
desc = "A strange genome, believing to be what differentiates monkeys from humans."
|
|
quality = NEGATIVE
|
|
time_coeff = 2
|
|
locked = TRUE //Species specific, keep out of actual gene pool
|
|
|
|
/datum/mutation/human/race/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
. = owner.monkeyize(TR_KEEPITEMS | TR_KEEPIMPLANTS | TR_KEEPORGANS | TR_KEEPDAMAGE | TR_KEEPVIRUS | TR_KEEPSE)
|
|
|
|
/datum/mutation/human/race/on_losing(mob/living/carbon/monkey/owner)
|
|
if(owner && istype(owner) && owner.stat != DEAD && (owner.dna.mutations.Remove(src)))
|
|
. = owner.humanize(TR_KEEPITEMS | TR_KEEPIMPLANTS | TR_KEEPORGANS | TR_KEEPDAMAGE | TR_KEEPVIRUS | TR_KEEPSE)
|
|
|
|
|
|
/datum/mutation/human/glow
|
|
name = "Glowy"
|
|
desc = "You permanently emit a light with a random color and intensity."
|
|
quality = POSITIVE
|
|
text_gain_indication = "<span class='notice'>Your skin begins to glow softly.</span>"
|
|
instability = 5
|
|
var/obj/effect/dummy/luminescent_glow/glowth //shamelessly copied from luminescents
|
|
var/glow = 1.5
|
|
power_coeff = 1
|
|
|
|
/datum/mutation/human/glow/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
glowth = new(owner)
|
|
glowth.set_light(glow, glow, dna.features["mcolor"])
|
|
|
|
/datum/mutation/human/glow/modify(mob/living/carbon/human/owner)
|
|
if(glowth)
|
|
glowth.set_light(glow + GET_MUTATION_POWER(src) , glow + GET_MUTATION_POWER(src), dna.features["mcolor"])
|
|
|
|
/datum/mutation/human/glow/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
qdel(glowth)
|
|
|
|
/datum/mutation/human/strong
|
|
name = "Strength"
|
|
desc = "The user's muscles slightly expand."
|
|
quality = POSITIVE
|
|
text_gain_indication = "<span class='notice'>You feel strong.</span>"
|
|
difficulty = 16
|
|
|
|
/datum/mutation/human/fire
|
|
name = "Fiery Sweat"
|
|
desc = "The user's skin will randomly combust, but is generally alot more resilient to burning."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='warning'>You feel hot.</span>"
|
|
text_lose_indication = "<span class'notice'>You feel a lot cooler.</span>"
|
|
difficulty = 14
|
|
synchronizer_coeff = 1
|
|
power_coeff = 1
|
|
|
|
/datum/mutation/human/fire/on_life()
|
|
if(prob((1+(100-dna.stability)/10)) * GET_MUTATION_SYNCHRONIZER(src))
|
|
owner.adjust_fire_stacks(2 * GET_MUTATION_POWER(src))
|
|
owner.IgniteMob()
|
|
|
|
/datum/mutation/human/fire/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
owner.physiology.burn_mod *= 0.5
|
|
|
|
/datum/mutation/human/fire/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
owner.physiology.burn_mod *= 2
|
|
|
|
/datum/mutation/human/insulated
|
|
name = "Insulated"
|
|
desc = "The affected person does not conduct electricity."
|
|
quality = POSITIVE
|
|
text_gain_indication = "<span class='notice'>Your fingertips go numb.</span>"
|
|
text_lose_indication = "<span class='notice'>Your fingertips regain feeling.</span>"
|
|
difficulty = 16
|
|
instability = 25
|
|
|
|
/datum/mutation/human/insulated/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_SHOCKIMMUNE, "genetics")
|
|
|
|
/datum/mutation/human/insulated/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_SHOCKIMMUNE, "genetics")
|
|
|
|
|
|
/datum/mutation/human/glow/anti
|
|
name = "Anti-Glow"
|
|
desc = "Your skin seems to attract and absorb nearby light creating 'darkness' around you."
|
|
text_gain_indication = "<span class='notice'>Your light around you seems to disappear.</span>"
|
|
glow = -3.5 //Slightly stronger, since negating light tends to be harder than making it.
|
|
locked = TRUE
|
|
|
|
/datum/mutation/human/stimmed
|
|
name = "Stimmed"
|
|
desc = "The user's chemical balance is more robust."
|
|
quality = POSITIVE
|
|
text_gain_indication = "<span class='notice'>You feel stimmed.</span>"
|
|
difficulty = 16
|
|
|
|
/datum/mutation/human/paranoia
|
|
name = "Paranoia"
|
|
desc = "Subject is easily terrified, and may suffer from hallucinations."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You feel screams echo through your mind...</span>"
|
|
text_lose_indication = "<span class'notice'>The screaming in your mind fades.</span>"
|
|
|
|
/datum/mutation/human/paranoia/on_life()
|
|
if(prob(5) && owner.stat == CONSCIOUS)
|
|
owner.emote("scream")
|
|
owner.jitteriness = min(max(0, owner.jitteriness + 5), 30)
|
|
if(prob(25))
|
|
to_chat(owner,"<span class='warning'>You feel someone creeping in on you...</span>")
|
|
owner.hallucination += 20
|
|
|
|
|
|
/datum/mutation/human/badblink
|
|
name = "Spatial Instability"
|
|
desc = "The victim of the mutation has a very weak link to spatial reality, and may be displaced. Often causes extreme nausea."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='warning'>The space around you twists sickeningly.</span>"
|
|
text_lose_indication = "<span class'notice'>The space around you settles back to normal.</span>"
|
|
difficulty = 18//high so it's hard to unlock and abuse
|
|
instability = 10
|
|
synchronizer_coeff = 1
|
|
energy_coeff = 1
|
|
power_coeff = 1
|
|
var/warpchance = 0
|
|
|
|
/datum/mutation/human/badblink/on_life()
|
|
if (!owner)
|
|
return
|
|
if(prob(warpchance))
|
|
var/warpmessage = pick(
|
|
"<span class='warning'>With a sickening 720-degree twist of [owner.p_their()] back, [owner] vanishes into thin air.</span>",
|
|
"<span class='warning'>[owner] does some sort of strange backflip into another dimension. It looks pretty painful.</span>",
|
|
"<span class='warning'>[owner] does a jump to the left, a step to the right, and warps out of reality.</span>",
|
|
"<span class='warning'>[owner]'s torso starts folding inside out until it vanishes from reality, taking [owner] with it.</span>",
|
|
"<span class='warning'>One moment, you see [owner]. The next, [owner] is gone.</span>")
|
|
owner.visible_message(warpmessage, "<span class='userdanger'>You feel a wave of nausea as you fall through reality!</span>")
|
|
var/warpdistance = rand(10,15) * GET_MUTATION_POWER(src)
|
|
do_teleport(owner, get_turf(owner), warpdistance, channel = TELEPORT_CHANNEL_FREE)
|
|
owner.adjust_disgust(GET_MUTATION_SYNCHRONIZER(src) * (warpchance * warpdistance))
|
|
warpchance = 0
|
|
owner.visible_message("<span class='danger'>[owner] appears out of nowhere!</span>")
|
|
else
|
|
warpchance += 0.25 * GET_MUTATION_ENERGY(src)
|
|
|
|
/datum/mutation/human/acidflesh
|
|
name = "Acidic Flesh"
|
|
desc = "Subject has acidic chemicals building up underneath the skin. This is often lethal."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='userdanger'>A horrible burning sensation envelops you as your flesh turns to acid!</span>"
|
|
text_lose_indication = "<span class'notice'>A feeling of relief fills you as your flesh goes back to normal.</span>"
|
|
difficulty = 18//high so it's hard to unlock and use on others
|
|
var/msgcooldown = 0
|
|
|
|
/datum/mutation/human/acidflesh/on_life()
|
|
if(prob(25))
|
|
if(world.time > msgcooldown)
|
|
to_chat(owner, "<span class='danger'>Your acid flesh bubbles...</span>")
|
|
msgcooldown = world.time + 200
|
|
if(prob(15))
|
|
owner.acid_act(rand(30,50), 10)
|
|
owner.visible_message("<span class='warning'>[owner]'s skin bubbles and pops.</span>", "<span class='userdanger'>Your bubbling flesh pops! It burns!</span>")
|
|
playsound(owner,'sound/weapons/sear.ogg', 50, TRUE)
|
|
|
|
/datum/mutation/human/gigantism
|
|
name = "Gigantism"//negative version of dwarfism
|
|
desc = "The cells within the subject spread out to cover more area, making the subject appear larger."
|
|
quality = MINOR_NEGATIVE
|
|
difficulty = 12
|
|
conflicts = list(DWARFISM)
|
|
|
|
/datum/mutation/human/gigantism/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_GIANT, GENETIC_MUTATION)
|
|
owner.resize = 1.25
|
|
owner.update_transform()
|
|
owner.visible_message("<span class='danger'>[owner] suddenly grows!</span>", "<span class='notice'>Everything around you seems to shrink..</span>")
|
|
|
|
/datum/mutation/human/gigantism/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_GIANT, GENETIC_MUTATION)
|
|
owner.resize = 0.8
|
|
owner.update_transform()
|
|
owner.visible_message("<span class='danger'>[owner] suddenly shrinks!</span>", "<span class='notice'>Everything around you seems to grow..</span>")
|
|
|
|
/datum/mutation/human/spastic
|
|
name = "Spastic"
|
|
desc = "Subject suffers from muscle spasms."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='warning'>You flinch.</span>"
|
|
text_lose_indication = "<span class'notice'>Your flinching subsides.</span>"
|
|
difficulty = 16
|
|
|
|
/datum/mutation/human/spastic/on_acquiring()
|
|
if(..())
|
|
return
|
|
if (owner)
|
|
owner.apply_status_effect(STATUS_EFFECT_SPASMS)
|
|
|
|
/datum/mutation/human/spastic/on_losing()
|
|
if(..())
|
|
return
|
|
if (owner)
|
|
owner.remove_status_effect(STATUS_EFFECT_SPASMS)
|