Merge pull request #793 from JesusChristItsJasonBourne/GenSwappers

gender swapping potions
This commit is contained in:
Razgriz
2019-09-08 18:10:46 -07:00
committed by GitHub
3 changed files with 70 additions and 1 deletions
@@ -98,6 +98,7 @@
mob_swap_flags = ~HEAVY
var/identifying_gender // In case the human identifies as another gender than it's biological
var/gender_change_cooldown = 0 // A cooldown for gender and gender indentify changing procs to make it easy to avoid spam of gender change
var/step_count = 0 // Track how many footsteps have been taken to know when to play footstep sounds
@@ -188,7 +188,54 @@
M.adjustBruteLoss(1)
M.adjustToxLoss(1)
/datum/reagent/change_drug //base chemical
name = "Elixer of Change" //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
id = "change_drug_male" //unique ID for each varient
taste_description = "old spice odor blocker body wash"
reagent_state = LIQUID
color = "#428AFF"
gender_change = "male"
scannable = 1
/datum/reagent/change_drug/female
id = "change_drug_female"
taste_description = "spiced honey"
reagent_state = LIQUID
color = "#FFA0FA"
gender_change = "female"
scannable = 1
/datum/reagent/change_drug/intersex
id = "change_drug_intersex"
taste_description = "something salty and sweet"
reagent_state = LIQUID
color = "#CB9EFF"
gender_change = "herm"
scannable = 1
/datum/reagent/change_drug/affect_blood(var/mob/living/carbon/human/M, var/alien, var/removed) //we need to process the change
if(alien == IS_DIONA) //doesn't work on multiple creature hiveminds
return
if(M.identifying_gender == gender_change) //don't bug them if they're already the same gender
return
if(M.gender_change_cooldown == 1) //if already done, don't bug them
return
else
M.gender_change_cooldown = 1 //set not to bug them because the chem is activating
M << "<span class='notice'>You lose focus as warmth spreads throughout your chest and abdomen.</span>"
spawn(300) //wait 30 seconds, growth takes time yo
M.gender_change_cooldown = 0 //allow it to bug them again now that we've waited
if (alert(M,"This chemical will change your gender, proceed?", "Warning", "Yes", "No") == "Yes") //check if they want this to happen for pref sake
M.change_gender_identity(gender_change)
M << "<span class='warning'>You feel like a new person</span>" //success
////////////////////////////////////////////////
/////////DRINKS////////////////////////////////
//////////////////////////////////////////////
+22 -1
View File
@@ -59,4 +59,25 @@
id = "matcha_latte"
result = "matcha_latte"
required_reagents = list ("matchapowder" = 1, "milk" = 5)
result_amount = 5
result_amount = 5
/datum/chemical_reaction/change_drug/male
name = "Elixer of Change"
id = "change_drug_male"
result = "change_drug_male"
required_reagents = list("blood" = 1, "mutagen" = 1, "iron" = 1)
result_amount = 1
/datum/chemical_reaction/change_drug/female
name = "Elixer of Change"
id = "change_drug_female"
result = "change_drug_female"
required_reagents = list("blood" = 1, "mutagen" = 1, "sugar" = 1)
result_amount = 1
/datum/chemical_reaction/change_drug/intersex
name = "Elixer of Change"
id = "change_drug_intersex"
result = "change_drug_intersex"
required_reagents = list("change_drug_male" = 1, "change_drug_female" = 1)
result_amount = 1