Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: now random item picking from uplink is working correctly (ss2…
Browse files Browse the repository at this point in the history
Vladisvell authored and Etrnlmelancholy committed Jan 3, 2024
1 parent e11dfd6 commit 516df77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/game/objects/items/devices/uplinks.dm
Original file line number Diff line number Diff line change
@@ -82,9 +82,11 @@ GLOBAL_LIST_EMPTY(world_uplinks)
var/list/random_items = list()

for(var/IR in uplink_items)
var/datum/uplink_item/UI = uplink_items[IR]
if(UI.cost <= uses && UI.limited_stock != 0)
random_items += UI
var/list/cat_items = uplink_items[IR]
for(var/uplink_item in cat_items)
var/datum/uplink_item/UI = uplink_item
if(UI.cost <= uses && UI.limited_stock != 0)
random_items += UI

return pick(random_items)

0 comments on commit 516df77

Please sign in to comment.