Merge pull request #4616 from AbbieFland/rust-fixes

Fixes RUST bugs and invisible gas blocker
This commit is contained in:
Anewbe
2018-01-23 18:20:28 -06:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -186,8 +186,8 @@
if(percent_unstable < 0)
percent_unstable = 0
else
if(percent_unstable > 100)
percent_unstable = 100
if(percent_unstable > 1)
percent_unstable = 1
if(percent_unstable > 0)
percent_unstable = max(0, percent_unstable-rand(0.01,0.03))
@@ -38,4 +38,8 @@
return 0
/obj/effect/fusion_particle_catcher/CanPass(var/atom/movable/mover, var/turf/target, var/height=0, var/air_group=0)
return ismob(mover)
if(istype(mover, /obj/item/projectile/beam))
return 0
if(istype(mover, /obj/effect/accelerated_particle))
return 0
return 1