You can now buy telecrystals in stacks of 5 and 20 (#22818)

🆑 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.
/🆑
This commit is contained in:
coiax
2017-01-26 13:37:22 +01:00
committed by AnturK
parent 1b56ab5e26
commit 338e67808e
2 changed files with 24 additions and 5 deletions
+11 -5
View File
@@ -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 << "<span class='notice'>You press [src] onto yourself and charge your hidden uplink.</span>"
/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 << "<span class='notice'>You slot [src] into the [I] and charge its internal uplink.</span>"
I.hidden_uplink.telecrystals += amount
use(amount)
user << "<span class='notice'>You slot [src] into the [I] and charge its internal uplink.</span>"
/obj/item/stack/telecrystal/five
amount = 5
/obj/item/stack/telecrystal/twenty
amount = 20
+13
View File
@@ -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"