Showed that huge proc in /atom what polymorphism' is.

Now instead of huge condition line it's handled where it was supposed to be handled.
This commit is contained in:
Chinsky
2013-06-01 12:24:43 +04:00
parent 0b9c904252
commit 89fff29db1
5 changed files with 82 additions and 85 deletions
+12 -1
View File
@@ -1084,4 +1084,15 @@
if (germs == 2500)
world << "Reached stage 3 in [ticks] ticks"
world << "Mob took [tdamage] tox damage"
*/
*/
//returns 1 if made bloody, returns 0 otherwise
/mob/living/carbon/human/add_blood(mob/living/carbon/human/M as mob)
if (!..())
return 0
//if this blood isn't already in the list, add it
if(blood_DNA[M.dna.unique_enzymes])
return 0 //already bloodied with this blood. Cannot add more.
blood_DNA[M.dna.unique_enzymes] = M.dna.b_type
src.update_inv_gloves() //handles bloody hands overlays and updating
return 1 //we applied blood to the item