Merge pull request #1188 from sick-trigger/master

Fixes teleporting with an active chamelion projector
This commit is contained in:
Mloc
2012-05-29 06:46:04 -07:00
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@
//must succeed in most cases
proc/setTeleatom(atom/movable/ateleatom)
if(istype(ateleatom, /obj/effect))
if(istype(ateleatom, /obj/effect) && !istype(ateleatom, /obj/effect/dummy/chameleon))
del(ateleatom)
return 0
if(istype(ateleatom))
-4
View File
@@ -130,10 +130,6 @@
O.show_message("\red Failure: Cannot authenticate locked on coordinates. Please reinstate coordinate matrix.")
return
if (istype(M, /atom/movable))
if (istype(M, /obj/effect/dummy/chameleon))
for(var/mob/C in M)
C << "\red The projection field prevents you from entering!"
return
if(prob(5) && !accurate) //oh dear a problem, put em in deep space
do_teleport(M, locate(rand(5, world.maxx - 5), rand(5, world.maxy - 5), 3), 2)
else
+8
View File
@@ -316,6 +316,8 @@
icon_plating = "asteroid_dug"
icon_state = "asteroid_dug"
return
else
return
else
..(W,user)
if ((istype(W,/obj/item/weapon/pickaxe/drill)))
@@ -337,6 +339,9 @@
dug = 1
icon_plating = "asteroid_dug"
icon_state = "asteroid_dug"
return
else
return
else
..(W,user)
@@ -359,6 +364,9 @@
dug = 1
icon_plating = "asteroid_dug"
icon_state = "asteroid_dug"
return
else
return
else
..(W,user)