mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Updates Gender Chems (#5355)
* Updates Gender Chems Removes Elixir formulas but keeps their effects, moving them under the Amorphorovir family of chemicals. Also imposes a double preference check now. Spontaneous TF needs to be enabled and you have to accept the alert letting you know what will happen. * Fixed some comments. * Moved stuff to chomp modular folder
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/decl/chemical_reaction/instant/amorphorovir
|
||||
name = "Amorphorovir"
|
||||
id = "amorphorovir"
|
||||
result = "amorphorovir"
|
||||
required_reagents = list("cryptobiolin" = 30, "biomass" = 30, "hyperzine" = 20)
|
||||
catalysts = list("phoron" = 5)
|
||||
result_amount = 1
|
||||
|
||||
/decl/chemical_reaction/instant/androrovir
|
||||
result = "change_drug_male"
|
||||
|
||||
/decl/chemical_reaction/instant/gynorovir
|
||||
result = "change_drug_female"
|
||||
|
||||
/decl/chemical_reaction/instant/androgynorovir
|
||||
result = "change_drug_intersex"
|
||||
|
||||
/decl/chemical_reaction/instant/androrovir_bootleg
|
||||
result = "change_drug_male"
|
||||
|
||||
/decl/chemical_reaction/instant/gynorovir_bootleg
|
||||
result = "change_drug_female"
|
||||
|
||||
/decl/chemical_reaction/instant/androgynorovir_bootleg
|
||||
result = "change_drug_intersex"
|
||||
64
modular_chomp/code/modules/reagents/reagents/medicine.dm
Normal file
64
modular_chomp/code/modules/reagents/reagents/medicine.dm
Normal file
@@ -0,0 +1,64 @@
|
||||
///GENDER CHANGE REAGENTS////
|
||||
|
||||
/datum/reagent/change_drug //base chemical
|
||||
name = "Amorphorovir" //always the same name
|
||||
id = "change_drug"
|
||||
metabolism = 100 //set high enough that it does not process multiple times(delay implemented below)
|
||||
description = "the bloods DNA in this seems aggressive"
|
||||
taste_description = "this shouldn't be here" //unobtainable ingame
|
||||
color = "#7F0000"
|
||||
var/gender_change = null //set the gender variable here so we can set it to others in varients
|
||||
|
||||
/datum/reagent/change_drug/male //inherits base chemical properties listed above
|
||||
name = "Androrovir"
|
||||
id = "change_drug_male" //unique ID for each varient
|
||||
taste_description = "old spice odor blocker and body wash"
|
||||
reagent_state = LIQUID
|
||||
description = \
|
||||
"A medical concoction, capable of rapidly altering genetic and physical structure of the body. This one seems\
|
||||
to realign the target's gender to be male."
|
||||
color = "#428AFF"
|
||||
gender_change = "male"
|
||||
scannable = 1
|
||||
|
||||
/datum/reagent/change_drug/female
|
||||
name = "Gynorovir"
|
||||
id = "change_drug_female"
|
||||
description = \
|
||||
"A medical concoction, capable of rapidly altering genetic and physical structure of the body. This one seems\
|
||||
to realign the target's gender to be female."
|
||||
taste_description = "spiced honey"
|
||||
reagent_state = LIQUID
|
||||
color = "#FFA0FA"
|
||||
gender_change = "female"
|
||||
scannable = 1
|
||||
|
||||
/datum/reagent/change_drug/intersex
|
||||
name = "Androgynorovir"
|
||||
id = "change_drug_intersex"
|
||||
description = \
|
||||
"A medical concoction, capable of rapidly altering genetic and physical structure of the body. This one seems\
|
||||
to realign the target's gender to be mixed."
|
||||
taste_description = "something salty and sweet"
|
||||
reagent_state = LIQUID
|
||||
color = "#CB9EFF"
|
||||
gender_change = "plural"
|
||||
scannable = 1
|
||||
|
||||
/datum/reagent/change_drug/affect_blood(var/mob/living/carbon/human/M, var/alien, var/removed)
|
||||
if (!(alien == IS_DIONA || M.gender == gender_change || M.gender_change_cooldown == 1) && M.allow_spontaneous_tf)
|
||||
//set not to bug them because the chem is activating
|
||||
M.gender_change_cooldown = 1
|
||||
M.visible_message(
|
||||
"<span class='notice'>[M] suddenly twitches as some of their features seem to contort and reshape.</span>",
|
||||
"<span class='notice'>You lose focus as warmth spreads throughout your chest and abdomen.</span>"
|
||||
)
|
||||
//wait 30 seconds, growth takes time yo
|
||||
spawn(300)
|
||||
//allow it to bug them again now that we've waited
|
||||
M.gender_change_cooldown = 0
|
||||
//check if they want this to happen for pref sake
|
||||
if (alert(M,"This chemical will change your gender, proceed?", "Warning", "Yes", "No") == "Yes")
|
||||
M.change_gender_identity(gender_change)
|
||||
M.change_gender(gender_change)
|
||||
M << "<span class='warning'>You feel like a new person.</span>" //success
|
||||
Reference in New Issue
Block a user