Debugging

This commit is contained in:
Markolie
2014-11-19 02:24:07 +01:00
parent 2ee5afe941
commit dc89eaba1a
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -129,7 +129,7 @@
o += "<span class='warning'>"
else
o += "<span style='color:blue'>"
o += "[celsius]Celsius</span> "
o += "[celsius]C</span> "
o += "<span style='color:blue'>"
o += "[pressure]kPa</span></li>"
usr << o
@@ -197,6 +197,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
return wires.IsIndexCut(index)
/obj/item/device/radio/proc/autosay(var/message, var/from, var/channel) //BS12 EDIT
testing("Autosaying.")
var/datum/radio_frequency/connection = null
if(channel && channels && channels.len > 0)
if (channel == "department")
@@ -210,7 +211,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
return
if (!connection)
return
testing("Generating new AI for autosay.")
var/mob/living/silicon/ai/A = new /mob/living/silicon/ai(src, null, null, 1)
Broadcast_Message(connection, A,
0, "*garbled automated announcement*", src,
+2 -2
View File
@@ -32,7 +32,7 @@ var/list/department_radio_keys = list(
":U" = "Supply", "#U" = "Supply", ".U" = "Supply",
":G" = "changeling", "#G" = "changeling", ".G" = "changeling"
/* //kinda localization -- rastaf0
//kinda localization -- rastaf0
//same keys as above, but on russian keyboard layout. This file uses cp1251 as encoding.
":ê" = "right hand", "#ê" = "right hand", ".ê" = "right hand",
":ä" = "left hand", "#ä" = "left hand", ".ä" = "left hand",
@@ -48,7 +48,7 @@ var/list/department_radio_keys = list(
":ô" = "alientalk", "#ô" = "alientalk", ".ô" = "alientalk",
":å" = "Syndicate", "#å" = "Syndicate", ".å" = "Syndicate",
":é" = "Supply", "#é" = "Supply", ".é" = "Supply",
":ï" = "changeling", "#ï" = "changeling", ".ï" = "changeling" */
":ï" = "changeling", "#ï" = "changeling", ".ï" = "changeling"
)
/mob/living/proc/binarycheck()
+4 -3
View File
@@ -56,6 +56,7 @@ var/list/ai_list = list()
var/last_announcement = ""
/mob/living/silicon/ai/New(loc, var/datum/ai_laws/L, var/obj/item/device/mmi/B, var/safety = 0)
testing("Spawning new AI.")
var/list/possibleNames = ai_names
var/pickedName = null
@@ -84,7 +85,7 @@ var/list/ai_list = list()
make_laws()
verbs += /mob/living/silicon/ai/proc/show_laws_verb
testing("Spawning new AI, stage 2.")
aiPDA = new/obj/item/device/pda/ai(src)
aiPDA.owner = name
aiPDA.ownjob = "AI"
@@ -95,7 +96,7 @@ var/list/ai_list = list()
aiRadio.myAi = src
aiCamera = new/obj/item/device/camera/siliconcam/ai_camera(src)
testing("Spawning new AI, stage 3.")
if (istype(loc, /turf))
verbs.Add(/mob/living/silicon/ai/proc/ai_network_change, \
/mob/living/silicon/ai/proc/ai_statuschange, /mob/living/silicon/ai/proc/ai_hologram_change, \
@@ -147,7 +148,7 @@ var/list/ai_list = list()
ai_list += src
..()
return
testing("Spawning new AI, done.")
/mob/living/silicon/ai/Destroy()
ai_list -= src
..()
@@ -291,6 +291,7 @@
proc/AttemptLateSpawn(rank)
testing("Attempting late spawn of [src], [usr]")
if (src != usr)
return 0
if(!ticker || ticker.current_state != GAME_STATE_PLAYING)
@@ -329,7 +330,9 @@
proc/AnnounceArrival(var/mob/living/carbon/human/character, var/rank)
testing("Announcing arrival.")
if (ticker.current_state == GAME_STATE_PLAYING)
testing("Announcing arrival of [character.real_name].")
var/obj/item/device/radio/intercom/a = new /obj/item/device/radio/intercom(null)// BS12 EDIT Arrivals Announcement Computer, rather than the AI.
if(character.mind.role_alt_title)
rank = character.mind.role_alt_title