bluespace spellblade and modsuit teleporter module work better (#25900)

* bluespace spellblade and modsuit teleporter module work better

* nah this should stay 7

* 7 ate 9
This commit is contained in:
Qwertytoforty
2024-06-22 23:16:01 +00:00
committed by GitHub
parent 32d4a2ecf4
commit e7adf789e1
2 changed files with 4 additions and 2 deletions
@@ -296,7 +296,9 @@
if(!.)
return
var/turf/user_turf = get_turf(user)
if(!(target in view(7, user_turf))) // no camera shenangians
if(get_dist(user_turf, get_turf(target)) > 9) //blocks cameras without blocking xray or thermals
return
if(!((target in view(9, user)) || user.sight & SEE_MOBS))
return
var/list/turfs = list()
for(var/turf/T in orange(1, get_turf(target)))
+1 -1
View File
@@ -77,7 +77,7 @@
if(!.)
return
var/turf/target_turf = get_turf(target)
if(!istype(target_turf) || target_turf.density || !(target_turf in view(9, mod.wearer))) //No. No camera bug shenanigins.
if(!istype(target_turf) || target_turf.density || !((target in view(9, mod.wearer)) || mod.wearer.sight & SEE_TURFS) || (get_dist(target_turf, get_turf(mod.wearer)) > 9)) //No. No camera bug shenanigins.
return
var/matrix/pre_matrix = matrix()
pre_matrix.Scale(4, 0.25)