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:
Watermelon914
2023-08-06 00:42:55 +01:00
committed by GitHub
co-authored by Watermelon914
parent beb4a504de
commit a4435e5d71
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -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,