Small changes and merged with master following some recent additions to uplink items

Keeping it updated alongside master.
This commit is contained in:
AzuleUtama
2018-11-23 12:03:59 +00:00
parent c8fbdd4b42
commit 3bf5c482ce
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
A.name += " ([round(((initial(A.cost)-A.cost)/initial(A.cost))*100)]% off!)"
A.job = null // If you get a job specific item selected, actually lets you buy it in the discount section
A.reference = "DIS[newreference]"
A.desc += " Only [A.limited_stock] in stock. Normally costs [initial(A.cost)] TC. All sales final"
A.desc += " Limit of [A.limited_stock] per uplink. Normally costs [initial(A.cost)] TC."
A.item = I.item
newreference++
@@ -1355,6 +1355,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
item = /obj/item/implanter/uplink
cost = 14
surplus = 0
cant_discount = TRUE
/datum/uplink_item/implants/storage
name = "Storage Implant"
+1 -1
View File
@@ -137,7 +137,7 @@ var/list/world_uplinks = list()
if(!UI)
return
if(UI.limited_stock == 0)
to_chat(usr, "<span class='warning'>You have redeemed this discount already!</span>")
to_chat(usr, "<span class='warning'>You have redeemed this discount already.</span>")
return
UI.buy(src,usr)
if(UI.limited_stock > 0) // only decrement it if it's actually limited