BadDeathclaw / bad-deathclaw

Bad Deathclaw SS13 server -- This codebase is no longer being updated, please see https://github.com/BadDeathclaw/TG-Claw
GNU Affero General Public License v3.0
5 stars 27 forks source link

Adds-Garymut #51

Open LostInEtc opened 6 years ago

LostInEtc commented 6 years ago

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.