From 33c191f68593268c64cd1ff4ef2a5b597f24c294 Mon Sep 17 00:00:00 2001 From: "giacomand@gmail.com" Date: Fri, 7 Dec 2012 23:36:08 +0000 Subject: [PATCH] -Hyprospray will now log the reagents it is injecting. Fixes Issue 1132. -Made the photos appear bigger on the newscaster. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5280 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/newscaster.dm | 4 ++-- .../reagents/reagent_containers/hypospray.dm | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index 9c53c459da8..febb11112a4 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -300,7 +300,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co dat+="-[MESSAGE.body]
" if(MESSAGE.img) usr << browse_rsc(MESSAGE.img, "tmp_photo.png") - dat+="

" + dat+="

" dat+="\[Story by [MESSAGE.author]\]
" dat+="

Refresh" dat+="
Back" @@ -397,7 +397,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co dat+="Photo:: " if(news_network.wanted_issue.img) usr << browse_rsc(news_network.wanted_issue.img, "tmp_photo.png") - dat+="
" + dat+="
" else dat+="None" dat+="

Back
" diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index c5eef80558b..56e76bcbf77 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -33,14 +33,20 @@ user << "\blue You inject [M] with the hypospray." M << "\red You feel a tiny prick!" - M.attack_log += text("\[[time_stamp()]\] Has been injected with [src.name] by [user.name] ([user.ckey])") - user.attack_log += text("\[[time_stamp()]\] Used the [src.name] to inject [M.name] ([M.ckey])") - - log_attack("[user.name] ([user.ckey]) injected [M.name] ([M.ckey]) with [src.name] (INTENT: [uppertext(user.a_intent)])") - - src.reagents.reaction(M, INGEST) if(M.reagents) + + var/list/injected = list() + for(var/datum/reagent/R in src.reagents.reagent_list) + injected += R.name + var/trans = reagents.trans_to(M, amount_per_transfer_from_this) user << "\blue [trans] units injected. [reagents.total_volume] units remaining in the hypospray." + + var/contained = english_list(injected) + + log_attack("[user.name] ([user.ckey]) injected [M.name] ([M.ckey]) with [src.name], which had [contained] (INTENT: [uppertext(user.a_intent)])") + M.attack_log += text("\[[time_stamp()]\] Has been injected ([contained]) with [src.name] by [user.name] ([user.ckey])") + user.attack_log += text("\[[time_stamp()]\] Used the [src.name] to inject [M.name] ([M.ckey]) with [contained]") + return \ No newline at end of file