TC use count appears on round end

This commit is contained in:
ChuckTheSheep
2014-02-23 23:43:45 -05:00
parent b86cb8dfb8
commit 6ecb511a24
4 changed files with 14 additions and 2 deletions
+1
View File
@@ -51,6 +51,7 @@ var/list/uplink_items = list()
/datum/uplink_item/proc/spawn_item(var/turf/loc, var/obj/item/device/uplink/U)
if(item)
U.uses -= max(cost, 0)
U.used_TC += cost
feedback_add_details("traitor_uplink_items_bought", "[item]")
return new item(loc)
+9 -2
View File
@@ -211,11 +211,16 @@
else
special_role_text = "antagonist"
var/TC_uses = 0
for(var/obj/item/device/uplink/hidden/H)
if(H.uplink_owner && H.uplink_owner==traitor.name)
TC_uses += H.used_TC
if(traitorwin)
text += "<br><font color='green'><B>The [special_role_text] was successful!</B></font>"
text += "<br><font color='green'><B>The [special_role_text] was successful!</B>[TC_uses>0 ? " (used [TC_uses] TC)" : ""]</font>"
feedback_add_details("traitor_success","SUCCESS")
else
text += "<br><font color='red'><B>The [special_role_text] has failed!</B></font>"
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")
text += "<br>"
@@ -257,6 +262,7 @@
var/obj/item/device/uplink/hidden/T = new(R)
target_radio.hidden_uplink = T
T.uplink_owner = "[traitor_mob]"
target_radio.traitor_frequency = freq
traitor_mob << "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [loc]. Simply dial the frequency [format_frequency(freq)] to unlock its hidden features."
traitor_mob.mind.store_memory("<B>Radio Freq:</B> [format_frequency(freq)] ([R.name] [loc]).")
@@ -266,6 +272,7 @@
var/obj/item/device/uplink/hidden/T = new(R)
R.hidden_uplink = T
T.uplink_owner = "[traitor_mob]"
var/obj/item/device/pda/P = R
P.lock_code = pda_pass
@@ -14,6 +14,9 @@ A list of items and costs is stored under the datum of every game mode, alongsid
var/show_description = null
var/active = 0
var/uplink_owner = null//text-only unless
var/used_TC = 0
/obj/item/device/uplink/New()
..()
welcome = ticker.mode.uplink_welcome
@@ -14,6 +14,7 @@
activation_emote = input("Choose activation emote:") in list("blink", "blink_r", "eyebrow", "chuckle", "twitch_s", "frown", "nod", "blush", "giggle", "grin", "groan", "shrug", "smile", "pale", "sniff", "whimper", "wink")
source.mind.store_memory("Uplink implant can be activated by using the [src.activation_emote] emote, <B>say *[src.activation_emote]</B> to attempt to activate.", 0, 0)
source << "The implanted uplink implant can be activated by using the [src.activation_emote] emote, <B>say *[src.activation_emote]</B> to attempt to activate."
hidden_uplink.uplink_owner="[source]"
return 1