Files
GS13NG/code/modules/surgery/advanced/bioware/bioware.dm
T
Dax Dupontandletterjay 48c37df7cd [s] Fixes bioware surgery exploit (#37860)
* Fixes bioware surgery

* my ass must blast
2018-05-16 14:34:36 -05:00

31 lines
656 B
Plaintext

//Bioware
//Body modifications applied through surgery. They generally affect physiology.
/datum/bioware
var/name = "Generic Bioware"
var/mob/living/carbon/human/owner
var/desc = "If you see this something's wrong, warn a coder."
var/active = FALSE
var/mod_type = BIOWARE_GENERIC
/datum/bioware/New(mob/living/carbon/human/_owner)
owner = _owner
for(var/X in owner.bioware)
var/datum/bioware/B = X
if(B.mod_type == mod_type)
qdel(src)
return
owner.bioware += src
on_gain()
/datum/bioware/Destroy()
owner = null
if(active)
on_lose()
return ..()
/datum/bioware/proc/on_gain()
active = TRUE
/datum/bioware/proc/on_lose()
return