mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
AIs can now edit NTSL code.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3320 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -195,7 +195,7 @@
|
|||||||
|
|
||||||
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
||||||
|
|
||||||
if(newnet && usr in range(1, src))
|
if(newnet && (usr in range(1, src) || issilicon(usr)))
|
||||||
if(length(newnet) > 15)
|
if(length(newnet) > 15)
|
||||||
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
if(href_list["network"])
|
if(href_list["network"])
|
||||||
|
|
||||||
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
||||||
if(newnet && usr in range(1, src))
|
if(newnet && (usr in range(1, src) || issilicon(usr)))
|
||||||
if(length(newnet) > 15)
|
if(length(newnet) > 15)
|
||||||
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
winset(editingcode, "tcscode", "is-disabled=false")
|
winset(editingcode, "tcscode", "is-disabled=false")
|
||||||
|
|
||||||
// If the player's not manning the keyboard anymore, adjust everything
|
// If the player's not manning the keyboard anymore, adjust everything
|
||||||
if(!(editingcode in range(1, src)) || editingcode.machine != src)
|
if( (!(editingcode in range(1, src)) && !issilicon(editingcode)) || (editingcode.machine != src && !issilicon(editingcode)))
|
||||||
if(editingcode)
|
if(editingcode)
|
||||||
winshow(editingcode, "Telecomms IDE", 0) // hide the window!
|
winshow(editingcode, "Telecomms IDE", 0) // hide the window!
|
||||||
editingcode = null
|
editingcode = null
|
||||||
@@ -50,6 +50,7 @@
|
|||||||
showcode = dd_replacetext(storedcode, "\"", "\\\"")
|
showcode = dd_replacetext(storedcode, "\"", "\\\"")
|
||||||
|
|
||||||
for(var/mob/M in viewingcode)
|
for(var/mob/M in viewingcode)
|
||||||
|
|
||||||
if( (M.machine == src && M in view(1, src) ) || issilicon(M))
|
if( (M.machine == src && M in view(1, src) ) || issilicon(M))
|
||||||
winset(M, "tcscode", "is-disabled=true")
|
winset(M, "tcscode", "is-disabled=true")
|
||||||
winset(M, "tcscode", "text=\"[showcode]\"")
|
winset(M, "tcscode", "text=\"[showcode]\"")
|
||||||
@@ -188,7 +189,7 @@
|
|||||||
|
|
||||||
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
var/newnet = input(usr, "Which network do you want to view?", "Comm Monitor", network) as null|text
|
||||||
|
|
||||||
if(newnet && usr in range(1, src))
|
if(newnet && (usr in range(1, src) || issilicon(usr)))
|
||||||
if(length(newnet) > 15)
|
if(length(newnet) > 15)
|
||||||
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
temp = "<font color = #D70B00>- FAILED: NETWORK TAG STRING TOO LENGHTLY -</font color>"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
client/verb/tcssave()
|
client/verb/tcssave()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(mob.machine)
|
if(mob.machine)
|
||||||
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && mob.machine in view(1, mob))
|
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && (mob.machine in view(1, mob) || issilicon(mob)))
|
||||||
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
||||||
if(Machine.editingcode != mob)
|
if(Machine.editingcode != mob)
|
||||||
return
|
return
|
||||||
@@ -24,7 +24,7 @@ client/verb/tcssave()
|
|||||||
client/verb/tcscompile()
|
client/verb/tcscompile()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(mob.machine)
|
if(mob.machine)
|
||||||
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && mob.machine in view(1, mob))
|
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && (mob.machine in view(1, mob) || issilicon(mob)))
|
||||||
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
||||||
if(Machine.editingcode != mob)
|
if(Machine.editingcode != mob)
|
||||||
return
|
return
|
||||||
@@ -75,7 +75,7 @@ client/verb/tcscompile()
|
|||||||
client/verb/tcsrun()
|
client/verb/tcsrun()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(mob.machine)
|
if(mob.machine)
|
||||||
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && mob.machine in view(1, mob))
|
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && (mob.machine in view(1, mob) || issilicon(mob)))
|
||||||
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
||||||
if(Machine.editingcode != mob)
|
if(Machine.editingcode != mob)
|
||||||
return
|
return
|
||||||
@@ -153,7 +153,7 @@ client/verb/exittcs()
|
|||||||
client/verb/tcsrevert()
|
client/verb/tcsrevert()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(mob.machine)
|
if(mob.machine)
|
||||||
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && mob.machine in view(1, mob))
|
if(istype(mob.machine, /obj/machinery/computer/telecomms/traffic) && (mob.machine in view(1, mob) || issilicon(mob)))
|
||||||
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
var/obj/machinery/computer/telecomms/traffic/Machine = mob.machine
|
||||||
if(Machine.editingcode != mob)
|
if(Machine.editingcode != mob)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user