From 2d59366ae407dfdad3a7c3eaefcc2c23b61cfa0a Mon Sep 17 00:00:00 2001 From: Lzimann Date: Fri, 10 Mar 2017 13:33:03 -0300 Subject: [PATCH] More fixes to incorrectly changed outputs(mainly files) --- code/game/machinery/doors/airlock_types.dm | 2 +- code/game/sound.dm | 2 +- code/modules/admin/admin_investigate.dm | 2 +- code/modules/admin/verbs/BrokenInhands.dm | 2 +- code/modules/admin/verbs/playsound.dm | 2 +- code/modules/mapping/swapmaps.dm | 2 +- code/modules/mapping/writer.dm | 2 +- code/modules/mob/living/carbon/human/species.dm | 2 +- code/modules/mob/living/silicon/ai/say.dm | 4 ++-- code/modules/paperwork/photography.dm | 4 ++-- code/modules/power/apc.dm | 2 +- code/modules/station_goals/dna_vault.dm | 2 +- code/world.dm | 2 +- 13 files changed, 15 insertions(+), 15 deletions(-) diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm index 6d2c7bd1f34..167b95b634e 100644 --- a/code/game/machinery/doors/airlock_types.dm +++ b/code/game/machinery/doors/airlock_types.dm @@ -377,7 +377,7 @@ new /obj/effect/overlay/temp/cult/sac(loc) var/atom/throwtarget throwtarget = get_edge_target_turf(src, get_dir(src, get_step_away(M, src))) - to_chat(M, pick(sound('sound/hallucinations/turn_around1.ogg',0,1,50), sound('sound/hallucinations/turn_around2.ogg',0,1,50))) + M << pick(sound('sound/hallucinations/turn_around1.ogg',0,1,50), sound('sound/hallucinations/turn_around2.ogg',0,1,50)) flash_color(M, flash_color="#960000", flash_time=20) M.Weaken(2) M.throw_at(throwtarget, 5, 1,src) diff --git a/code/game/sound.dm b/code/game/sound.dm index 340dcc1a380..91b016d061d 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -72,7 +72,7 @@ S.y = 1 S.falloff = (falloff ? falloff : FALLOFF_SOUNDS) - to_chat(src, S) + src << S /mob/playsound_local(turf/turf_source, soundin, vol as num, vary, frequency, falloff, surround = 1) if(!client || ear_deaf > 0) diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index a21881c6fea..fec637892ce 100644 --- a/code/modules/admin/admin_investigate.dm +++ b/code/modules/admin/admin_investigate.dm @@ -22,7 +22,7 @@ var/F = investigate_subject2file(subject) if(!F) return - to_chat(F, "[time_stamp()] \ref[src] ([x],[y],[z]) || [src] [message]
") + F << "[time_stamp()] \ref[src] ([x],[y],[z]) || [src] [message]
" //ADMINVERBS /client/proc/investigate_show( subject in list("hrefs","notes, memos, watchlist","singulo","wires","telesci", "gravity", "records", "cargo", "supermatter", "atmos", "experimentor", "kudzu") ) diff --git a/code/modules/admin/verbs/BrokenInhands.dm b/code/modules/admin/verbs/BrokenInhands.dm index 4e2395eb80a..8b509e288d3 100644 --- a/code/modules/admin/verbs/BrokenInhands.dm +++ b/code/modules/admin/verbs/BrokenInhands.dm @@ -28,7 +28,7 @@ if(text) var/F = file("broken_icons.txt") fdel(F) - to_chat(F, text) + F << text to_chat(world, "Completely successfully and written to [F]") diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 4ebfb9b1c27..1a06a42bf8e 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -26,7 +26,7 @@ var/sound/admin_sound for(var/mob/M in player_list) if(M.client.prefs.toggles & SOUND_MIDI) - to_chat(M, admin_sound) + M << admin_sound feedback_add_details("admin_verb","PGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! diff --git a/code/modules/mapping/swapmaps.dm b/code/modules/mapping/swapmaps.dm index 84105bc574c..64fc383e001 100644 --- a/code/modules/mapping/swapmaps.dm +++ b/code/modules/mapping/swapmaps.dm @@ -383,7 +383,7 @@ swapmap proc/Save() if(id==src) return 0 var/savefile/S=mode?(new):new("map_[id].sav") - to_chat(S, src) + S << src while(locked) sleep(1) if(mode) fdel("map_[id].txt") diff --git a/code/modules/mapping/writer.dm b/code/modules/mapping/writer.dm index 8c6b3d96ea5..dc13c1e134c 100644 --- a/code/modules/mapping/writer.dm +++ b/code/modules/mapping/writer.dm @@ -36,7 +36,7 @@ dmm_suite{ fdel("[map_name].dmm") } var/saved_map = file("[map_name].dmm") - to_chat(saved_map, file_text) + saved_map << file_text return saved_map } write_map(var/turf/t1 as turf, var/turf/t2 as turf, var/flags as num){ diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index eaf3c6ec34b..f63a72bb37f 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -672,7 +672,7 @@ return 0 if(I.w_class > WEIGHT_CLASS_BULKY) if(!disable_warning) - to_chat(H, "The [I.name] is too big to attach." ) + to_chat(H, "The [I.name] is too big to attach.") //should be src? return 0 if( istype(I, /obj/item/device/pda) || istype(I, /obj/item/weapon/pen) || is_type_in_list(I, H.wear_suit.allowed) ) return 1 diff --git a/code/modules/mob/living/silicon/ai/say.dm b/code/modules/mob/living/silicon/ai/say.dm index 990181bc4b3..599eb71e5bb 100644 --- a/code/modules/mob/living/silicon/ai/say.dm +++ b/code/modules/mob/living/silicon/ai/say.dm @@ -160,9 +160,9 @@ var/const/VOX_DELAY = 600 if(M.client && !M.ear_deaf && (M.client.prefs.toggles & SOUND_ANNOUNCEMENTS)) var/turf/T = get_turf(M) if(T.z == z_level) - to_chat(M, voice) + M << voice else - to_chat(only_listener, voice) + only_listener << voice return 1 return 0 diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 36ca8dc3a70..23ab11817ec 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -364,7 +364,7 @@ P.fields["blueprints"] = blueprintsinject aipictures += P - to_chat(usr, "Image recorded" ) + to_chat(usr, "Image recorded") //feedback to the AI player that the picture was taken /obj/item/device/camera/proc/injectmasteralbum(icon, img, desc, pixel_x, pixel_y, blueprintsinject) //stores image information to a list similar to that of the datacore var/numberer = 1 @@ -382,7 +382,7 @@ P.fields["blueprints"] = blueprintsinject C.connected_ai.aicamera.aipictures += P - to_chat(usr, "Image recorded and saved to remote database" ) + to_chat(usr, "Image recorded and saved to remote database") //feedback to the Cyborg player that the picture was taken else injectaialbum(icon, img, desc, pixel_x, pixel_y, blueprintsinject) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 33ce8322424..32bea04ed43 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -446,7 +446,7 @@ else if (istype(W, /obj/item/weapon/screwdriver)) // haxing if(opened) if (cell) - to_chat(user, "Close the APC first!" ) + to_chat(user, "Close the APC first!") //Less hints more mystery! return else if (has_electronics==1) diff --git a/code/modules/station_goals/dna_vault.dm b/code/modules/station_goals/dna_vault.dm index e6a022f3b86..78891e5157f 100644 --- a/code/modules/station_goals/dna_vault.dm +++ b/code/modules/station_goals/dna_vault.dm @@ -87,7 +87,7 @@ var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/li if(!H.myseed) return if(!H.harvest)// So it's bit harder. - to_chat(user, "Plant needs to be ready to harvest to perform full data scan." ) + to_chat(user, "Plant needs to be ready to harvest to perform full data scan.") //Because space dna is actually magic return if(plants[H.myseed.type]) to_chat(user, "Plant data already present in local storage.") diff --git a/code/world.dm b/code/world.dm index 02737f20e4e..c275cbf6dc8 100644 --- a/code/world.dm +++ b/code/world.dm @@ -267,7 +267,7 @@ /world/proc/save_mode(the_mode) var/F = file("data/mode.txt") fdel(F) - to_chat(F, the_mode) + F << the_mode /world/proc/load_motd() join_motd = file2text("config/motd.txt") + "
" + revdata.GetTestMergeInfo()