mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
* Drippy component * Converts disabilities to components. * Makes weaver a component * living * Update vorestation.dme * Update weaver.dm * yeah tis * no spawn * yes * signals hell yeah * Teaching * yeaaah * makes gargoyle follow the law * whoops * return properly * wah * Update station.dm
30 lines
755 B
Plaintext
30 lines
755 B
Plaintext
/datum/component/nervousness_disability
|
|
var/mob/owner
|
|
var/gutdeathpressure = 0
|
|
|
|
/datum/component/nervousness_disability/Initialize()
|
|
if (!ishuman(parent))
|
|
return COMPONENT_INCOMPATIBLE
|
|
|
|
owner = parent
|
|
RegisterSignal(owner, COMSIG_HANDLE_DISABILITIES, PROC_REF(process_component))
|
|
|
|
/datum/component/nervousness_disability/proc/process_component()
|
|
if(QDELETED(parent))
|
|
return
|
|
if(isbelly(owner.loc))
|
|
return
|
|
if(owner.stat != CONSCIOUS)
|
|
return
|
|
if(owner.transforming)
|
|
return
|
|
if(prob(5) && prob(7))
|
|
owner.stuttering = max(15, owner.stuttering)
|
|
if(owner.jitteriness < 50)
|
|
owner.make_jittery(65)
|
|
|
|
/datum/component/nervousness_disability/Destroy(force = FALSE)
|
|
UnregisterSignal(owner, COMSIG_HANDLE_DISABILITIES)
|
|
owner = null
|
|
. = ..()
|