Fixes RUST bugs and invisible gas blocker

The cross of invisible particle accelerator/gyrotron targets where the
field goes was set as impassible to everything but mobs. Including
air. Now it's impassible to beams and particles only.

One place was capping the 0-1 percent_instability float to 100 instead
of 1, easy fix.
This commit is contained in:
Abbie Fland
2018-01-22 21:44:19 +00:00
parent d58b25f1a5
commit 8c3ed45af3
2 changed files with 7 additions and 3 deletions

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))

View File

@@ -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