Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.