mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
TC use count appears on round end
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user