mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Merge pull request #4958 from Heroman3003/bsh-fixes
Fixes some issues with bluespace harpoon
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user