Fix a bunch of runtimes

This commit is contained in:
Markolie
2015-02-09 04:03:20 +01:00
parent 58323be9ad
commit d10451c567
14 changed files with 54 additions and 39 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ datum
return 1
check_gofast(var/mob/M)
if(istype(M, /mob))
if(M && istype(M, /mob))
if(M.reagents.has_reagent("hyperzine")||M.reagents.has_reagent("nuka_cola"))
return 1
else
+10 -9
View File
@@ -2581,15 +2581,16 @@ datum
return
Del()
if (istype(holder.my_atom,/mob/living))
var/mob/living/M as mob
var/to_remove = 0
if (holder.has_reagent("anti_toxin"))
to_remove = min(holder.get_reagent_amount("anti_toxin"),data)
holder.remove_reagent("anti_toxin", to_remove, 0)
data -= to_remove
if(M)
M.adjustToxLoss((data-1)*rand(2,4))
if(holder)
if (istype(holder.my_atom,/mob/living))
var/mob/living/M as mob
var/to_remove = 0
if (holder.has_reagent("anti_toxin"))
to_remove = min(holder.get_reagent_amount("anti_toxin"),data)
holder.remove_reagent("anti_toxin", to_remove, 0)
data -= to_remove
if(M)
M.adjustToxLoss((data-1)*rand(2,4))
..()
psilocybin