Skip to content

Commit

Permalink
Deactivates the Hidden Syndicate Teleportation Device
Browse files Browse the repository at this point in the history
  • Loading branch information
Menshin committed Feb 19, 2015
1 parent 30eb4e3 commit 0d0ef9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/datums/spells/ethereal_jaunt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
..()

/obj/effect/dummy/spell_jaunt/relaymove(var/mob/user, direction)
if (!src.canmove || reappearing) return
if (!src.canmove || reappearing || !direction) return
var/turf/newLoc = get_step(src,direction)
if(!(newLoc.flags & NOJAUNT))
loc = newLoc
Expand Down
2 changes: 2 additions & 0 deletions code/game/mecha/mecha.dm
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ obj/mecha/proc/can_use(mob/user)
return ..()

/obj/mecha/relaymove(mob/user,direction)
if(!direction)
return
if(user != src.occupant) //While not "realistic", this piece is player friendly.
user.forceMove(get_turf(src))
user << "You climb out from [src]"
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/items/devices/chameleonproj.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
master.disrupt()

/obj/effect/dummy/chameleon/relaymove(var/mob/user, direction)
if(istype(loc, /turf/space)) return //No magical space movement!
if(istype(loc, /turf/space) || !direction)
return //No magical space movement!

if(can_move)
can_move = 0
Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/mob_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@


/client/Center()
if (isobj(mob.loc))
if(isobj(mob.loc))
var/obj/O = mob.loc
if (mob.canmove)
return O.relaymove(mob, 16)
if(mob.canmove)
return O.relaymove(mob, 0)
return


Expand Down

0 comments on commit 0d0ef9e

Please sign in to comment.