TG: - you can now only have ONE decal of blood per tile. This is to fix the millions

of blood effect items that spawned to lag anyone who right clicked them. The
most recently created blood item will be the one that remains. This does not
effect gibs.
Revision: r3490
Author: 	 baloh.matevz
This commit is contained in:
Erthilo
2012-05-05 22:51:47 +01:00
parent f9b39a522a
commit 301fe9cd01
+13 -4
View File
@@ -63,10 +63,19 @@
var/datum/disease2/disease/virus2 = null
var/OriginalMob = null
Del()
for(var/datum/disease/D in viruses)
D.cure(0)
..()
/obj/effect/decal/cleanable/blood/Del()
for(var/datum/disease/D in viruses)
D.cure(0)
..()
/obj/effect/decal/cleanable/blood/New()
..()
if(istype(src, /obj/effect/decal/cleanable/blood/gibs))
return
if(src.loc && isturf(src.loc))
for(var/obj/effect/decal/cleanable/blood/B in src.loc)
if(B != src)
del(B)
/obj/effect/decal/cleanable/blood/drip
name = "drips of blood"