Fixes some issues with BSH

This commit is contained in:
Heroman
2019-04-08 16:34:36 +10:00
parent 9c4365f700
commit 148511e6b0
2 changed files with 7 additions and 1 deletions

View File

@@ -79,6 +79,9 @@
/area/security/nuke_storage
flags = BLUE_SHIELDED
/area/supply
flags = BLUE_SHIELDED
// Add rad shielding to maintenance and construction sites
/area/vacant
flags = RAD_SHIELDED

View File

@@ -33,13 +33,16 @@
playsound(user, 'sound/weapons/wave.ogg', 60, 1)
return
var/turf/T = get_turf(A)
if(!T || T.check_density())
if(!T || (T.check_density() && mode == 1))
to_chat(user,"<span class = 'warning'>That's a little too solid to harpoon into!</span>")
return
var/turf/ownturf = get_turf(src)
if(ownturf.z != T.z || get_dist(T,ownturf) > world.view)
to_chat(user, "<span class='warning'>The target is out of range!</span>")
return
if(get_area(A).flags & BLUE_SHIELDED)
to_chat(user, "<span class='warning'>The target area protected by bluespace shielding!</span>")
return
last_fire = current_fire
playsound(user, 'sound/weapons/wave.ogg', 60, 1)