Skip to content

Commit

Permalink
don't deploy mechframes from inside pods/lockers/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmunora committed Mar 22, 2024
1 parent 918d250 commit 5c0e6bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/obj/item/tool/electronics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
viewstat = 0
boutput(user, SPAN_NOTICE("You unsecure the [src]."))
else if(secured == 2)
if(!isturf(user.loc))
boutput(user, SPAN_ALERT("You can't deploy the [src] from in here!"))
return

boutput(user, SPAN_ALERT("You deploy the [src]!"))
logTheThing(LOG_STATION, user, "deploys a [src.name] in [user.loc.loc] ([log_loc(src)])")
if (!istype(user.loc,/turf) && (store_type in typesof(/obj/critter)))
Expand Down

0 comments on commit 5c0e6bc

Please sign in to comment.