Skip to content

Commit

Permalink
What about this?
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert committed Jun 24, 2024
1 parent cc8a2db commit e35a04f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ Lizard subspecies: SILVER SCALED
examine_limb_id = SPECIES_LIZARD
///stored mutcolor for when we turn back off of a silverscale.
var/old_mutcolor
///stored horn color for when we turn back off of a silverscale.
var/old_horncolor
///stored eye color for when we turn back off of a silverscale.
var/old_eye_color_left
///See above
Expand All @@ -238,16 +240,19 @@ Lizard subspecies: SILVER SCALED

/datum/species/lizard/silverscale/on_species_gain(mob/living/carbon/human/new_silverscale, datum/species/old_species, pref_load)
old_mutcolor = new_silverscale.dna.features["mcolor"]
old_horncolor = new_silverscale.dna.features["lizard_horn_color"]
old_eye_color_left = new_silverscale.eye_color_left
old_eye_color_right = new_silverscale.eye_color_right
new_silverscale.dna.features["mcolor"] = "#eeeeee"
new_silverscale.dna.features["lizard_horn_color"] = "#eeeeee"
new_silverscale.eye_color_left = "#0000a0"
new_silverscale.eye_color_right = "#0000a0"
. = ..()
new_silverscale.add_filter("silver_glint", 2, list("type" = "outline", "color" = "#ffffff63", "size" = 2))

/datum/species/lizard/silverscale/on_species_loss(mob/living/carbon/human/was_silverscale, datum/species/new_species, pref_load)
was_silverscale.dna.features["mcolor"] = old_mutcolor
was_silverscale.dna.features["lizard_horn_color"] = old_horncolor
was_silverscale.eye_color_left = old_eye_color_left
was_silverscale.eye_color_right = old_eye_color_right
was_silverscale.remove_filter("silver_glint")
Expand Down

0 comments on commit e35a04f

Please sign in to comment.