mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 13:17:03 +01:00
* Fix various anomaly bugs and oversights. Cellcharge and Celldrain have been blasted into compliance. * Cleanup Move back to Cynosure.
51 lines
2.4 KiB
Plaintext
51 lines
2.4 KiB
Plaintext
//todo
|
|
/datum/artifact_effect/uncommon/sleepy
|
|
name = "sleepy"
|
|
effect_color = "#a36fa1"
|
|
|
|
|
|
/datum/artifact_effect/uncommon/sleepy/New()
|
|
..()
|
|
effect_type = pick(EFFECT_PSIONIC, EFFECT_ORGANIC)
|
|
|
|
|
|
/datum/artifact_effect/uncommon/sleepy/DoEffectTouch(mob/living/user)
|
|
if (user)
|
|
var/weakness = GetAnomalySusceptibility(user)
|
|
if (ishuman(user) && prob(weakness * 100))
|
|
var/mob/living/carbon/human/H = user
|
|
to_chat(H, pick("<font color='blue'>You feel like taking a nap.</font>","<font color='blue'> You feel a yawn coming on.</font>","<font color='blue'> You feel a little tired.</font>"))
|
|
H.drowsyness = min(H.drowsyness + rand(5,25) * weakness, 50 * weakness)
|
|
H.eye_blurry = min(H.eye_blurry + rand(1,3) * weakness, 50 * weakness)
|
|
else if (isrobot(user))
|
|
to_chat(user, "<font color='red'>SYSTEM ALERT: CPU cycles slowing down.</font>")
|
|
|
|
|
|
/datum/artifact_effect/uncommon/sleepy/DoEffectAura()
|
|
var/atom/holder = get_master_holder()
|
|
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(10))
|
|
to_chat(H, pick("<font color='blue'>You feel like taking a nap.</font>","<font color='blue'> You feel a yawn coming on.</font>","<font color='blue'> You feel a little tired.</font>"))
|
|
H.drowsyness = min(H.drowsyness + 1 * weakness, 25 * weakness)
|
|
H.eye_blurry = min(H.eye_blurry + 1 * weakness, 25 * weakness)
|
|
for (var/mob/living/silicon/robot/R in range(src.effectrange,holder))
|
|
to_chat(R, "<font color='red'>SYSTEM ALERT: CPU cycles slowing down.</font>")
|
|
|
|
|
|
/datum/artifact_effect/uncommon/sleepy/DoEffectPulse()
|
|
var/atom/holder = get_master_holder()
|
|
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))
|
|
to_chat(H, pick("<font color='blue'>You feel like taking a nap.</font>","<font color='blue'> You feel a yawn coming on.</font>","<font color='blue'> You feel a little tired.</font>"))
|
|
H.drowsyness = min(H.drowsyness + rand(5,15) * weakness, 50 * weakness)
|
|
H.eye_blurry = min(H.eye_blurry + rand(5,15) * weakness, 50 * weakness)
|
|
for (var/mob/living/silicon/robot/R in range(src.effectrange,holder))
|
|
to_chat(R, "<font color='red'>SYSTEM ALERT: CPU cycles slowing down.</font>")
|