mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Added a sanity check, added some feedback stuff to help identify WTF is happening with blood.
This commit is contained in:
@@ -141,7 +141,11 @@
|
|||||||
return 0
|
return 0
|
||||||
if (!( src.flags ) & 256)
|
if (!( src.flags ) & 256)
|
||||||
return
|
return
|
||||||
if (src.blood_DNA.len)
|
if(!blood_DNA)
|
||||||
|
var/turf/Z = get_turf(src)
|
||||||
|
world << "\red ERROR: [src] at [Z.x], [Z.y], [Z.z] is missing it's blood_DNA list! Tell a dev!"
|
||||||
|
return
|
||||||
|
if (blood_DNA.len)
|
||||||
if (istype(src, /obj/item)&&!istype(src, /obj/item/weapon/melee/energy))//Only regular items. Energy melee weapon are not affected.
|
if (istype(src, /obj/item)&&!istype(src, /obj/item/weapon/melee/energy))//Only regular items. Energy melee weapon are not affected.
|
||||||
var/obj/item/source2 = src
|
var/obj/item/source2 = src
|
||||||
source2.icon_old = src.icon
|
source2.icon_old = src.icon
|
||||||
|
|||||||
@@ -507,14 +507,14 @@ What a mess.*/
|
|||||||
del(active2)
|
del(active2)
|
||||||
|
|
||||||
if ("Delete Record (ALL) Execute")
|
if ("Delete Record (ALL) Execute")
|
||||||
for(var/datum/data/record/R in data_core.medical)
|
if (active1)
|
||||||
if ((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
|
for(var/datum/data/record/R in data_core.medical)
|
||||||
del(R)
|
if ((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
|
||||||
else
|
del(R)
|
||||||
|
else
|
||||||
|
del(active1)
|
||||||
if (active2)
|
if (active2)
|
||||||
del(active2)
|
del(active2)
|
||||||
if (active1)
|
|
||||||
del(active1)
|
|
||||||
else
|
else
|
||||||
temp = "This function does not appear to be working at the moment. Our apologies."
|
temp = "This function does not appear to be working at the moment. Our apologies."
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
|
|||||||
@@ -101,6 +101,10 @@
|
|||||||
t = "huge"
|
t = "huge"
|
||||||
else
|
else
|
||||||
if ((usr.mutations & CLUMSY) && prob(50)) t = "funny-looking"
|
if ((usr.mutations & CLUMSY) && prob(50)) t = "funny-looking"
|
||||||
|
if(!blood_DNA)
|
||||||
|
var/turf/Z = get_turf(src)
|
||||||
|
world << "\red ERROR: [src] at [Z.x], [Z.y], [Z.z] is missing it's blood_DNA list! Tell a dev!"
|
||||||
|
return
|
||||||
usr << text("This is a []\icon[][]. It is a [] item.", !src.blood_DNA.len ? "" : "bloody ",src, src.name, t)
|
usr << text("This is a []\icon[][]. It is a [] item.", !src.blood_DNA.len ? "" : "bloody ",src, src.name, t)
|
||||||
if(src.desc)
|
if(src.desc)
|
||||||
usr << src.desc
|
usr << src.desc
|
||||||
|
|||||||
Reference in New Issue
Block a user