Merge pull request #1658 from VOREStation/aro-tport

Fix Bluespace Harpoon bug, Allow Teleport Jamming
This commit is contained in:
Arokha Sieyes
2017-06-09 15:45:28 -04:00
committed by GitHub
2 changed files with 11 additions and 1 deletions
@@ -790,7 +790,7 @@
/obj/item/weapon/bluespace_harpoon/afterattack(atom/A, mob/user as mob)
var/current_fire = world.time
if(!user || !A || user.machine)
if(!user || !A)
return
if(transforming)
to_chat(user,"<span class = 'warning'>You can't fire while \the [src] transforming!</span>")
@@ -798,6 +798,11 @@
if(!(current_fire - last_fire >= 20 SECONDS))
to_chat(user,"<span class = 'warning'>\The [src] is recharging...</span>")
return
if(is_jammed(A) || is_jammed(user))
to_chat(user,"<span class = 'warning'>\The [src] shot fizzles due to interference!</span>")
last_fire = current_fire
playsound(user, 'sound/weapons/wave.ogg', 60, 1)
return
last_fire = current_fire
playsound(user, 'sound/weapons/wave.ogg', 60, 1)
@@ -1031,6 +1031,11 @@ obj/item/weapon/material/hatchet/tacknife/combatknife/fluff/katarina/handle_shie
to_chat(user,"<span class='warning'>\The [src] doesn't have a current valid destination set!</span>")
return
//No, you can't teleport if there's a jammer.
if(is_jammed(src) || is_jammed(destination))
to_chat(user,"<span class='warning'>\The [src] refuses to teleport you, due to strong interference!</span>")
return
//No, you can't port to or from away missions. Stupidly complicated check.
var/turf/uT = get_turf(user)
var/turf/dT = get_turf(destination)