Merge pull request #8272 from PsiOmegaDelta/NanoLimit

Fixes #8258.
This commit is contained in:
Snapshot
2015-02-25 16:13:22 -08:00
15 changed files with 540 additions and 534 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -71,7 +71,7 @@
/obj/machinery/computer/operating/Topic(href, href_list)
if(..())
return
return 1
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
usr.set_machine(src)
return

View File

@@ -113,7 +113,7 @@
/obj/machinery/computer/aifixer/Topic(href, href_list)
if(..())
return
return 1
if (href_list["fix"])
src.active = 1
src.overlays += image('icons/obj/computer.dmi', "ai-fixer-on")

View File

@@ -84,7 +84,7 @@
/obj/machinery/computer/arcade/Topic(href, href_list)
if(..())
return
return 1
if (!src.blocked && !src.gameover)
if (href_list["attack"])

View File

@@ -188,7 +188,7 @@
/obj/machinery/computer/cloning/Topic(href, href_list)
if(..())
return
return 1
if(loading)
return

View File

@@ -47,7 +47,7 @@
/obj/machinery/computer/communications/Topic(href, href_list)
if(..())
return
return 1
if (src.z > 1)
usr << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
return

View File

@@ -109,12 +109,6 @@
if(istype(user, /mob/dead/observer)) return 0
return ..()
/obj/machinery/computer/Topic(href, href_list)
/* Can't use topic as observer by default */
if(istype(usr, /mob/dead/observer)) return 0
return ..()
/obj/machinery/computer/attackby(I as obj, user as mob)
if(istype(I, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)

View File

@@ -106,7 +106,7 @@
/obj/machinery/computer/guestpass/Topic(href, href_list)
if(..())
return
return 1
usr.set_machine(src)
if (href_list["mode"])
mode = text2num(href_list["mode"])

View File

@@ -283,7 +283,7 @@
/obj/machinery/computer/message_monitor/Topic(href, href_list)
if(..())
return
return 1
if(stat & (NOPOWER|BROKEN))
return
if(!istype(usr, /mob/living))

View File

@@ -98,7 +98,7 @@
/obj/machinery/computer/robotics/Topic(href, href_list)
if(..())
return
return 1
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
usr.set_machine(src)

View File

@@ -208,7 +208,7 @@ I can't be bothered to look more of the actual code outside of switch but that p
What a mess.*/
/obj/machinery/computer/secure_data/Topic(href, href_list)
if(..())
return
return 1
if (!( data_core.general.Find(active1) ))
active1 = null
if (!( data_core.security.Find(active2) ))
@@ -612,4 +612,4 @@ What a mess.*/
/obj/machinery/computer/secure_data/detective_computer
icon = 'icons/obj/computer.dmi'
icon_state = "messyfiles"
icon_state = "messyfiles"

View File

@@ -148,7 +148,7 @@ I can't be bothered to look more of the actual code outside of switch but that p
What a mess.*/
/obj/machinery/computer/skills/Topic(href, href_list)
if(..())
return
return 1
if (!( data_core.general.Find(active1) ))
active1 = null
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))

View File

@@ -283,7 +283,7 @@ var/specops_shuttle_timeleft = 0
/obj/machinery/computer/specops_shuttle/Topic(href, href_list)
if(..())
return
return 1
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
usr.machine = src
@@ -541,7 +541,7 @@ var/specops_shuttle_timeleft = 0
/obj/machinery/computer/specops_shuttle/Topic(href, href_list)
if(..())
return
return 1
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
usr.set_machine(src)

View File

@@ -49,7 +49,7 @@
/obj/machinery/computer/ordercomp/Topic(href, href_list)
if(..())
return
return 1
if( isturf(loc) && (in_range(src, usr) || istype(usr, /mob/living/silicon)) )
usr.set_machine(src)
@@ -224,7 +224,7 @@
world.log << "## ERROR: Eek. The supply/shuttle datum is missing somehow."
return
if(..())
return
return 1
if(isturf(loc) && ( in_range(src, usr) || istype(usr, /mob/living/silicon) ) )
usr.set_machine(src)

View File

@@ -218,7 +218,7 @@ var/syndicate_elite_shuttle_timeleft = 0
/obj/machinery/computer/syndicate_elite_shuttle/Topic(href, href_list)
if(..())
return
return 1
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
usr.set_machine(src)