TC Discount fix (#22111)

This commit is contained in:
Kaomiyo
2023-08-27 01:36:44 +10:00
committed by GitHub
parent 48c0742d2a
commit adf2e444cb
+2 -2
View File
@@ -40,8 +40,8 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
A.limited_stock = 1
I.refundable = FALSE
A.refundable = FALSE
if(A.cost >= 20)
discount *= 0.5 // If the item costs 20TC or more, it's only 25% off.
if(A.cost >= 100)
discount *= 0.5 // If the item costs 100TC or more, it's only 25% off.
A.cost = max(round(A.cost * (1-discount)),1)
A.category = "Discounted Gear"
A.name += " ([round(((initial(A.cost)-A.cost)/initial(A.cost))*100)]% off!)"