Skip to content

Commit

Permalink
unsecret hair bioeffect
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleroneSwordfish committed Sep 5, 2024
1 parent 5390363 commit 9a92843
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion +secret
42 changes: 42 additions & 0 deletions code/modules/medical/genetics/bioEffects/beneficial.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1018,3 +1018,45 @@ var/list/radio_brains = list()
OnRemove()
REMOVE_ATOM_PROPERTY(src.owner, PROP_MOB_INVISIBILITY, src)
. = ..()

// hair_override gene
/datum/bioEffect/hair_growth
name = "Androgen Booster"
desc = "A boost of androgens causes a subject to sprout hair, even if they are normally incapable of it."
id = "hair_growth"
msgGain = "Your scalp itches."
msgLose = "Your scalp stops itching."
occur_in_genepools = 0 // this shouldn't be available outside of admin shenanigans
probability = 0
scanner_visibility = 0 // nor should it be visible
can_research = 0
can_make_injector = 0
can_copy = 0
acceptable_in_mutini = 0
curable_by_mutadone = FALSE
effectType = EFFECT_TYPE_POWER

OnAdd()
if (ishuman(owner))
var/mob/living/carbon/human/M = owner
if (M.AH_we_spawned_with)
M.bioHolder.mobAppearance.customizations["hair_bottom"].color = M.AH_we_spawned_with.customizations["hair_bottom"].color
M.bioHolder.mobAppearance.customizations["hair_middle"].color = M.AH_we_spawned_with.customizations["hair_middle"].color
M.bioHolder.mobAppearance.customizations["hair_top"].color = M.AH_we_spawned_with.customizations["hair_top"].color
M.bioHolder.mobAppearance.customizations["hair_bottom"].style = M.AH_we_spawned_with.customizations["hair_bottom"].style
M.bioHolder.mobAppearance.customizations["hair_middle"].style = M.AH_we_spawned_with.customizations["hair_middle"].style
M.bioHolder.mobAppearance.customizations["hair_top"].style = M.AH_we_spawned_with.customizations["hair_top"].style

M.hair_override = 1
M.bioHolder.mobAppearance.UpdateMob()
M.update_colorful_parts()
..()

OnRemove()
if (ishuman(owner))
var/mob/living/carbon/human/M = owner

M.hair_override = 0
M.bioHolder.mobAppearance.UpdateMob()
M.update_colorful_parts()
..()

0 comments on commit 9a92843

Please sign in to comment.