mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Fixed uplink discount stocks affecting normal uplink item stocks (#77289)
## About The Pull Request If an uplink item was discounted and purchased, it would prevent purchase of the normal-priced uplink item, which is supposed to be infinitely buyable. This fixes that Closes #73560 ## Why It's Good For The Game Fixes an oversight in the uplink stock system. ## Changelog 🆑 fix: Fixed being unable to purchase regular-priced uplink items if you bought the discounted variant of it. /🆑 --------- Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
parent
beb4a504de
commit
a4435e5d71
@@ -234,9 +234,8 @@
|
||||
var/list/extra_purchasable_stock = list()
|
||||
var/list/extra_purchasable = list()
|
||||
for(var/datum/uplink_item/item as anything in uplink_handler.extra_purchasable)
|
||||
if(item in stock_list)
|
||||
extra_purchasable_stock[REF(item)] = stock_list[item]
|
||||
stock_list -= item
|
||||
if(item.stock_key in stock_list)
|
||||
extra_purchasable_stock[REF(item)] = stock_list[item.stock_key]
|
||||
extra_purchasable += list(list(
|
||||
"id" = item.type,
|
||||
"name" = item.name,
|
||||
|
||||
Reference in New Issue
Block a user