Minor runtimes fixes. (#25566)

* Fixes power monitor runtime

* Fixes reagent data runtime

* Nullspace is no smoking zone
This commit is contained in:
AnturK
2017-03-29 19:21:51 -03:00
committed by Leo
parent d60a1a48cb
commit 1b138562b4
3 changed files with 4 additions and 2 deletions
@@ -73,6 +73,8 @@
/obj/effect/particle_effect/smoke/proc/spread_smoke()
var/turf/t_loc = get_turf(src)
if(!t_loc)
return
var/list/newsmokes = list()
for(var/turf/T in t_loc.GetAtmosAdjacentTurfs())
var/obj/effect/particle_effect/smoke/foundsmoke = locate() in T //Don't spread smoke where there's already smoke!
+1 -1
View File
@@ -163,7 +163,7 @@
T.reagents.add_reagent(reagent_id, 1 + round(potency * reagents_add[reagent_id], 1), list("blood_type"="O-"))
continue
T.reagents.add_reagent(reagent_id, 1 + round(potency * reagents_add[reagent_id]), 1)
T.reagents.add_reagent(reagent_id, 1 + round(potency * reagents_add[reagent_id],1))
return 1
@@ -81,7 +81,7 @@
if(istype(A))
data["areas"] += list(list(
"name" = A.area.name,
"charge" = A.cell.percent(),
"charge" = A.cell ? A.cell.percent() : 0,
"load" = A.lastused_total,
"charging" = A.charging,
"eqp" = A.equipment,