mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Adds Icons and purchase list
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -60,4 +60,7 @@ h1.alert, h2.alert {color: #000000;}
|
||||
|
||||
.interface {color: #330033;}
|
||||
|
||||
</style>"}
|
||||
BIG IMG.icon {width: 32px; height: 32px;}
|
||||
|
||||
|
||||
</style>"}
|
||||
Reference in New Issue
Block a user