[s] Fixes bioware surgery exploit (#37860)

* Fixes bioware surgery

* my ass must blast
This commit is contained in:
Dax Dupont
2018-05-16 21:34:08 +02:00
committed by letterjay
parent 56544307ec
commit 48c37df7cd
4 changed files with 5 additions and 4 deletions
@@ -15,8 +15,9 @@
if(B.mod_type == mod_type)
qdel(src)
return
owner.bioware += src
on_gain()
/datum/bioware/Destroy()
owner = null
if(active)
@@ -31,7 +31,7 @@
/datum/bioware/grounded_nerves
name = "Grounded Nerves"
desc = "Nerves form a safe path for electricity to traverse, protecting the body from electric shocks."
mod_type = "nerves"
mod_type = BIOWARE_NERVES
var/prev_coeff
/datum/bioware/grounded_nerves/on_gain()
@@ -31,7 +31,7 @@
/datum/bioware/spliced_nerves
name = "Spliced Nerves"
desc = "Nerves are connected to each other multiple times, greatly reducing the impact of stunning effects."
mod_type = "nerves"
mod_type = BIOWARE_NERVES
/datum/bioware/spliced_nerves/on_gain()
..()
@@ -31,7 +31,7 @@
/datum/bioware/threaded_veins
name = "Threaded Veins"
desc = "The circulatory system is woven into a mesh, severely reducing the amount of blood lost from wounds."
mod_type = "circulation"
mod_type = BIOWARE_CIRCULATION
/datum/bioware/threaded_veins/on_gain()
..()