Adds Icons and purchase list

This commit is contained in:
ChuckTheSheep
2014-02-24 01:44:11 -05:00
parent 6ecb511a24
commit 656ce372c7
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ var/list/uplink_items = list()
if(istype(I, /obj/item) && ishuman(user))
var/mob/living/carbon/human/A = user
A.put_in_any_hand_if_possible(I)
U.purchase_log += "[user] ([user.ckey]) bought [name]."
U.purchase_log += "<BIG>\icon[I]</BIG>"
U.interact(user)
return 1
+6
View File
@@ -212,9 +212,11 @@
special_role_text = "antagonist"
var/TC_uses = 0
var/purchases = ""
for(var/obj/item/device/uplink/hidden/H)
if(H.uplink_owner && H.uplink_owner==traitor.name)
TC_uses += H.used_TC
for(var/i in H.purchase_log) purchases += i
if(traitorwin)
text += "<br><font color='green'><B>The [special_role_text] was successful!</B>[TC_uses>0 ? " (used [TC_uses] TC)" : ""]</font>"
@@ -222,6 +224,10 @@
else
text += "<br><font color='red'><B>The [special_role_text] has failed!</B>[TC_uses>0 ? " (used [TC_uses] TC)" : ""]</font>"
feedback_add_details("traitor_success","FAIL")
if(TC_uses)
text += "<br> [purchases]"
text += "<br>"
world << text
+4 -1
View File
@@ -60,4 +60,7 @@ h1.alert, h2.alert {color: #000000;}
.interface {color: #330033;}
</style>"}
BIG IMG.icon {width: 32px; height: 32px;}
</style>"}