Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds-Garymut #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adds-Garymut #51

wants to merge 1 commit into from

Conversation

LostInEtc
Copy link

Gary: In essence a DNA modification equivalent to the Pig Mask, that changes all spoken words into various(3) forms of 'Gary' and changes the name of those afflicted with it to "Gary".

This adds lines of code to:
code\datums\mutations.dm
code__DEFINES\genetics.dm
code\game\objects\items\weapons\dna_injector.dm

For review, here are the lines added.

/obj/item/weapon/dnainjector/garymut
name = "\improper DNA injector (Gary)"
New()
..()
add_mutations.Add(mutations_list[GARY])

/obj/item/weapon/dnainjector/antigary
name = "\improper DNA injector (Anti-Gary)"
New()
..()
remove_mutations.Add(mutations_list[GARY])

// Here's mutations.dm next.
// Starting with the added var on line 12

var/backupname

// now the juicy bits starting at line 470

/datum/mutation/human/gary
name = "Gary"
quality = MINOR_NEGATIVE
text_gain_indication = "Gary?"
text_lose_indication = "You feel significantly less Gary than before.."

/datum/mutation/human/gary/say_mod(message)
if(message)
message = " [message] "
//Babies first line of code.
message = replacetext(message, message,pick("Gaaaary...","Gary!","...Gary?"))
return trim(message)

/datum/mutation/human/gary/on_acquiring(mob/living/carbon/human/owner)
backupname = owner.real_name
if(..())
return
owner.real_name = "Gary"

/datum/mutation/human/gary/on_losing(mob/living/carbon/human/owner)
if(..())
return
owner.real_name = backupname

// And now genetics.dm at line 28.

#define GARY "Gary"

// And that's that. This is my first piece of code, and I had two people giving me help with things I was stumped on. ...Like, most of it. People being Ma44 and Angryon(Vic)

That's that. 2 days of learning.

Mutation and makes people Gary. Gary? Gaaaaary?

Also changes their name on injection, and changes it back on removal.
@LostInEtc LostInEtc changed the title Adds-Garymut [Done]Adds-Garymut Jun 26, 2018
@LostInEtc LostInEtc changed the title [Done]Adds-Garymut Adds-Garymut Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant