Files
VOREStation/code/modules/xenoarcheaology/effects/dnaswitch.dm
Cameron653 e158fcd3cc Macro Replacements. (#3574)
* A preface to my madness

Travis failed one of my PR's because I copied old code
that used /red /blue /green.

Because of this, I am going to find and replace every
instance of it that I find.

Also this is a test commit to make sure I'm comitting
to the correct branch.

* /blue /green /red replacements

Dear god.

A slow and painful death from acid is more fun than this.

I wouldn't wish this torture on my worst enemy.
And this is only the beginning

* Replace part 2.

Time to fix the human error.

* Fixes mismatches

* Sets macro count to 220

One above the current number of macros in the code.

* Fixes last of the mismatches.

* Removes spaces, replaces \black

Removes spaces
Replaces \black in a few areas where seen
Replaces \bold with <B> </B> where seen

* Updating macro count again

* More fixes!

* Issues fixed! For real this time!

I swear!

* Fixing all the merge conflict files.
2017-07-19 12:47:23 -05:00

68 lines
2.6 KiB
Plaintext

//todo
/datum/artifact_effect/dnaswitch
name = "dnaswitch"
effect_type = EFFECT_ORGANIC
var/severity
/datum/artifact_effect/dnaswitch/New()
..()
if(effect == EFFECT_AURA)
severity = rand(5,30)
else
severity = rand(25,95)
/datum/artifact_effect/dnaswitch/DoEffectTouch(var/mob/toucher)
var/weakness = GetAnomalySusceptibility(toucher)
if(ishuman(toucher) && prob(weakness * 100))
toucher << pick("<font color='green'>You feel a little different.</font>",
"<font color='green'>You feel very strange.</font>",
"<font color='green'>Your stomach churns.</font>",
"<font color='green'>Your skin feels loose.</font>",
"<font color='green'>You feel a stabbing pain in your head.</font>",
"<font color='green'>You feel a tingling sensation in your chest.</font>",
"<font color='green'>Your entire body vibrates.</font>")
if(prob(75))
scramble(1, toucher, weakness * severity)
else
scramble(0, toucher, weakness * severity)
return 1
/datum/artifact_effect/dnaswitch/DoEffectAura()
if(holder)
var/turf/T = get_turf(holder)
for(var/mob/living/carbon/human/H in range(src.effectrange,T))
var/weakness = GetAnomalySusceptibility(H)
if(prob(weakness * 100))
if(prob(30))
H << pick("<font color='green'>You feel a little different.</font>",
"<font color='green'>You feel very strange.</font>",
"<font color='green'>Your stomach churns.</font>",
"<font color='green'>Your skin feels loose.</font>",
"<font color='green'>You feel a stabbing pain in your head.</font>",
"<font color='green'>You feel a tingling sensation in your chest.</font>",
"<font color='green'>Your entire body vibrates.</font>")
if(prob(50))
scramble(1, H, weakness * severity)
else
scramble(0, H, weakness * severity)
/datum/artifact_effect/dnaswitch/DoEffectPulse()
if(holder)
var/turf/T = get_turf(holder)
for(var/mob/living/carbon/human/H in range(200, T))
var/weakness = GetAnomalySusceptibility(H)
if(prob(weakness * 100))
if(prob(75))
H << pick("<font color='green'> You feel a little different.</font>",
"<font color='green'> You feel very strange.</font>",
"<font color='green'> Your stomach churns.</font>",
"<font color='green'> Your skin feels loose.</font>",
"<font color='green'> You feel a stabbing pain in your head.</font>",
"<font color='green'> You feel a tingling sensation in your chest.</font>",
"<font color='green'> Your entire body vibrates.</font>")
if(prob(25))
if(prob(75))
scramble(1, H, weakness * severity)
else
scramble(0, H, weakness * severity)