From 338e67808e657b5f3d570ca1fb8fdd9db299039f Mon Sep 17 00:00:00 2001 From: coiax Date: Thu, 26 Jan 2017 12:37:22 +0000 Subject: [PATCH] You can now buy telecrystals in stacks of 5 and 20 (#22818) :cl: coiax add: Telecrystals can be purchased in stacks of five and twenty. add: The entire stack of telecrystals are added to the uplink when charging them. /:cl: --- code/game/objects/items/stacks/telecrystal.dm | 16 +++++++++++----- code/modules/uplink/uplink_item.dm | 13 +++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm index 9b2ca35dcf4..503efd14d1c 100644 --- a/code/game/objects/items/stacks/telecrystal.dm +++ b/code/game/objects/items/stacks/telecrystal.dm @@ -13,8 +13,8 @@ if(target == user) //You can't go around smacking people with crystals to find out if they have an uplink or not. for(var/obj/item/weapon/implant/uplink/I in target) if(I && I.imp_in) - I.hidden_uplink.telecrystals += 1 - use(1) + I.hidden_uplink.telecrystals += amount + use(amount) user << "You press [src] onto yourself and charge your hidden uplink." /obj/item/stack/telecrystal/afterattack(obj/item/I, mob/user, proximity) @@ -22,6 +22,12 @@ return if(istype(I, /obj/item)) if(I.hidden_uplink && I.hidden_uplink.active) //No metagaming by using this on every PDA around just to see if it gets used up. - I.hidden_uplink.telecrystals += 1 - use(1) - user << "You slot [src] into the [I] and charge its internal uplink." \ No newline at end of file + I.hidden_uplink.telecrystals += amount + use(amount) + user << "You slot [src] into the [I] and charge its internal uplink." + +/obj/item/stack/telecrystal/five + amount = 5 + +/obj/item/stack/telecrystal/twenty + amount = 20 diff --git a/code/modules/uplink/uplink_item.dm b/code/modules/uplink/uplink_item.dm index 6dbe8a890aa..98199048981 100644 --- a/code/modules/uplink/uplink_item.dm +++ b/code/modules/uplink/uplink_item.dm @@ -1038,10 +1038,23 @@ var/list/uplink_items = list() // Global list so we only initialize this once. item = /obj/item/stack/telecrystal cost = 1 surplus = 0 + cant_discount = TRUE // Don't add telecrystals to the purchase_log since // it's just used to buy more items (including itself!) purchase_log_vis = FALSE +/datum/uplink_item/device_tools/telecrystal/five + name = "5 Raw Telecrystals" + desc = "Five telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count." + item = /obj/item/stack/telecrystal/five + cost = 5 + +/datum/uplink_item/device_tools/telecrystal/twenty + name = "20 Raw Telecrystals" + desc = "Twenty telecrystals in their rawest and purest form; can be utilized on active uplinks to increase their telecrystal count." + item = /obj/item/stack/telecrystal/twenty + cost = 20 + // Implants /datum/uplink_item/implants category = "Implants"