mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 12:06:22 +01:00
* 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.
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
/datum/artifact_effect/stun
|
|
name = "stun"
|
|
|
|
/datum/artifact_effect/stun/New()
|
|
..()
|
|
effect_type = pick(EFFECT_PSIONIC, EFFECT_ORGANIC)
|
|
|
|
/datum/artifact_effect/stun/DoEffectTouch(var/mob/toucher)
|
|
if(toucher && iscarbon(toucher))
|
|
var/mob/living/carbon/C = toucher
|
|
var/susceptibility = GetAnomalySusceptibility(C)
|
|
if(prob(susceptibility * 100))
|
|
C << "<font color='red'>A powerful force overwhelms your consciousness.</font>"
|
|
C.Weaken(rand(1,10) * susceptibility)
|
|
C.stuttering += 30 * susceptibility
|
|
C.Stun(rand(1,10) * susceptibility)
|
|
|
|
/datum/artifact_effect/stun/DoEffectAura()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/carbon/C in range(src.effectrange,T))
|
|
var/susceptibility = GetAnomalySusceptibility(C)
|
|
if(prob(10 * susceptibility))
|
|
C << "<font color='red'>Your body goes numb for a moment.</font>"
|
|
C.Weaken(2)
|
|
C.stuttering += 2
|
|
if(prob(10))
|
|
C.Stun(1)
|
|
else if(prob(10))
|
|
C << "<font color='red'>You feel numb.</font>"
|
|
|
|
/datum/artifact_effect/stun/DoEffectPulse()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/carbon/C in range(src.effectrange,T))
|
|
var/susceptibility = GetAnomalySusceptibility(C)
|
|
if(prob(100 * susceptibility))
|
|
C << "<font color='red'>A wave of energy overwhelms your senses!</font>"
|
|
C.SetWeakened(4 * susceptibility)
|
|
C.stuttering = 4 * susceptibility
|
|
if(prob(10))
|
|
C.SetStunned(1 * susceptibility)
|